mirror of
				https://github.com/openhwgroup/cvw
				synced 2025-02-11 06:05:49 +00:00 
			
		
		
		
	cleanup of signal names.
This commit is contained in:
		
							parent
							
								
									6dc12b4968
								
							
						
					
					
						commit
						71ed49bf2b
					
				| @ -200,7 +200,7 @@ module ifu ( | ||||
|           .DCacheFetchLine(ICacheFetchLine), | ||||
|           .DCacheWriteLine(1'b0), .DCacheBusAck(ICacheBusAck),  | ||||
|           .DCacheBusWriteData(ICacheBusWriteData), .LSUPAdrM(PCPF), | ||||
|           .FinalAMOWriteDataM(), .ReadDataWordM(FinalInstrRawF), .ReadDataWordMuxM(AllInstrRawF[31:0]),  | ||||
|           .FinalWriteDataM(), .ReadDataWordM(FinalInstrRawF), .ReadDataWordMuxM(AllInstrRawF[31:0]),  | ||||
|           .IgnoreRequest(ITLBMissF), .LSURWM(2'b10), .CPUBusy, .CacheableM(CacheableF), | ||||
|           .BusStall, .BusCommittedM()); | ||||
| 
 | ||||
|  | ||||
| @ -56,7 +56,7 @@ module busdp #(parameter WORDSPERLINE, LINELEN, WORDLEN, LOGWPL, LSU=0) | ||||
|   | ||||
|   // lsu interface
 | ||||
|   input logic [`PA_BITS-1:0]  LSUPAdrM, | ||||
|   input logic [`XLEN-1:0]     FinalAMOWriteDataM, | ||||
|   input logic [`XLEN-1:0]     FinalWriteDataM, | ||||
|   input logic [WORDLEN-1:0]   ReadDataWordM, | ||||
|   output logic [WORDLEN-1:0]  ReadDataWordMuxM, | ||||
|   input logic                 IgnoreRequest, | ||||
| @ -83,7 +83,7 @@ module busdp #(parameter WORDSPERLINE, LINELEN, WORDLEN, LOGWPL, LSU=0) | ||||
| 
 | ||||
|   mux2 #(`PA_BITS) localadrmux(DCacheBusAdr, LSUPAdrM, SelUncachedAdr, LocalLSUBusAdr); | ||||
|   assign LSUBusAdr = ({{`PA_BITS-LOGWPL{1'b0}}, WordCount} << $clog2(`XLEN/8)) + LocalLSUBusAdr; | ||||
|   if(LSU == 1) mux2 #(`XLEN) lsubushwdatamux( .d0(ReadDataWordM), .d1(FinalAMOWriteDataM), | ||||
|   if(LSU == 1) mux2 #(`XLEN) lsubushwdatamux( .d0(ReadDataWordM), .d1(FinalWriteDataM), | ||||
|                  .s(SelUncachedAdr), .y(LSUBusHWDATA)); | ||||
|   else assign LSUBusHWDATA = '0; | ||||
|    mux2 #(3) lsubussizemux(.d0(`XLEN == 32 ? 3'b010 : 3'b011), .d1(LSUFunct3M),  | ||||
|  | ||||
| @ -200,7 +200,7 @@ module lsu ( | ||||
|       .LSUBusHRDATA, .LSUBusHWDATA, .LSUBusAck, .LSUBusWrite, .LSUBusRead, .LSUBusSize, | ||||
|       .WordCount, .LSUBusWriteCrit, | ||||
|       .LSUFunct3M, .LSUBusAdr, .DCacheBusAdr, .DCacheFetchLine, | ||||
|       .DCacheWriteLine, .DCacheBusAck, .DCacheBusWriteData, .LSUPAdrM, .FinalAMOWriteDataM(FinalWriteDataM), | ||||
|       .DCacheWriteLine, .DCacheBusAck, .DCacheBusWriteData, .LSUPAdrM, .FinalWriteDataM, | ||||
|       .ReadDataWordM, .ReadDataWordMuxM, .IgnoreRequest, .LSURWM, .CPUBusy, .CacheableM, | ||||
|       .BusStall, .BusCommittedM); | ||||
| 
 | ||||
| @ -234,11 +234,13 @@ module lsu ( | ||||
|   subwordread subwordread(.ReadDataWordMuxM, .LSUPAdrM(LSUPAdrM[2:0]), | ||||
| 		.Funct3M(LSUFunct3M), .ReadDataM); | ||||
| 
 | ||||
|   if(`DMEM != `MEM_BUS) | ||||
|     subwordwrite subwordwrite(.HRDATA(CacheableM ? ReadDataWordM : '0), .HADDRD(LSUPAdrM[2:0]), | ||||
|   if(`DMEM != `MEM_BUS) begin | ||||
|     logic [`XLEN-1:0] ReadDataWordMaskedM; | ||||
|     assign ReadDataWordMaskedM = CacheableM ? ReadDataWordM : '0; | ||||
|     subwordwrite subwordwrite(.HRDATA(ReadDataWordMaskedM), .HADDRD(LSUPAdrM[2:0]), | ||||
|       .HSIZED({LSUFunct3M[2], 1'b0, LSUFunct3M[1:0]}), | ||||
| 	  .HWDATAIN(FinalAMOWriteDataM), .HWDATA(FinalWriteDataM)); | ||||
|   else  | ||||
|   end else  | ||||
|     assign FinalWriteDataM = FinalAMOWriteDataM; | ||||
| 
 | ||||
|   /////////////////////////////////////////////////////////////////////////////////////////////
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user