mirror of
				https://github.com/openhwgroup/cvw
				synced 2025-02-11 06:05:49 +00:00 
			
		
		
		
	Passed Regression: Seems to work perfectly fine
This commit is contained in:
		
							parent
							
								
									ec7cdee0f3
								
							
						
					
					
						commit
						dc11066ff2
					
				| @ -133,9 +133,8 @@ module ahblite ( | ||||
|   assign #1 GrantData = (NextBusState == MEMREAD) | (NextBusState == MEMWRITE); | ||||
|   assign #1 AccessAddress = (GrantData) ? LSUBusAdr[31:0] : IFUBusAdr[31:0]; | ||||
|   assign #1 HADDR = AccessAddress; | ||||
|   // assign ISize = 3'b010; // 32 bit instructions for now; later improve for filling cache with full width; ignored on reads anyway
 | ||||
|   // assign HSIZE = (GrantData) ? {1'b0, LSUBusSize[1:0]} : ISize; // Commented out due to not using ISize.
 | ||||
|   assign HSIZE = (`XLEN == 64) ? 3'b011 : 3'b010; | ||||
|   assign ISize = 3'b010; // 32 bit instructions for now; later improve for filling cache with full width; ignored on reads anyway
 | ||||
|   assign HSIZE = (GrantData) ? {1'b0, LSUBusSize[1:0]} : ISize; | ||||
|   assign HBURST = (GrantData) ? LSUBurstType : IFUBurstType; // If doing memory accesses, use LSUburst, else use Instruction burst.
 | ||||
| 
 | ||||
|   /* Cache burst read/writes case statement (hopefully) WRAPS only have access to 4 wraps. X changes position based on HSIZE. | ||||
|  | ||||
| @ -145,7 +145,7 @@ module busfsm #(parameter integer   WordCountThreshold, | ||||
| 
 | ||||
|   assign LSUBurstType = (UnCachedRW) ? 3'b0 : LocalBurstType; // Don't want to use burst when doing an Uncached Access.
 | ||||
|   assign LSUTransComplete = (UnCachedRW) ? LSUBusAck : WordCountFlag & LSUBusAck; | ||||
|   assign LSUTransType = (|WordCount) & ~UnCachedRW ? 2'b11 : (LSUBusRead | LSUBusWrite) & (~WordCountFlag) ? 2'b10 : 2'b00;  | ||||
|   assign LSUTransType = (|WordCount) & ~UnCachedRW ? 2'b11 : (LSUBusRead | LSUBusWrite) & (~WordCountFlag | ~CACHE_ENABLED) ? 2'b10 : 2'b00;  | ||||
| 
 | ||||
|   assign CntReset = BusCurrState == STATE_BUS_READY; | ||||
|   assign BusStall = (BusCurrState == STATE_BUS_READY & ~IgnoreRequest & ((UnCachedAccess & (|LSURWM)) | DCacheFetchLine | DCacheWriteLine)) | | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user