mirror of
				https://github.com/openhwgroup/cvw
				synced 2025-02-11 06:05:49 +00:00 
			
		
		
		
	Added some clearity to lsuvirtmem.sv.
This commit is contained in:
		
							parent
							
								
									ca59778c5a
								
							
						
					
					
						commit
						3a29504279
					
				| @ -100,11 +100,11 @@ module lsuvirtmem( | |||||||
|   mux2 #(7) funct7mux(Funct7M, 7'b0, SelHPTW, LSUFunct7M);     |   mux2 #(7) funct7mux(Funct7M, 7'b0, SelHPTW, LSUFunct7M);     | ||||||
|   mux2 #(2) atomicmux(AtomicM, 2'b00, SelHPTW, LSUAtomicM); |   mux2 #(2) atomicmux(AtomicM, 2'b00, SelHPTW, LSUAtomicM); | ||||||
|   mux2 #(12) adremux(IEUAdrE[11:0], HPTWAdr[11:0], SelHPTW, PreLSUAdrE); |   mux2 #(12) adremux(IEUAdrE[11:0], HPTWAdr[11:0], SelHPTW, PreLSUAdrE); | ||||||
|   mux2 #(12) replaymux(PreLSUAdrE, IEUAdrExtM[11:0], SelReplayCPURequest, LSUAdrE); // replay cpu request after hptw.  *** redudant with mux in cache.
 |  | ||||||
|   mux2 #(`PA_BITS) lsupadrmux(IEUAdrExtM[`PA_BITS-1:0], HPTWAdr, SelHPTW, PreLSUPAdrM); |   mux2 #(`PA_BITS) lsupadrmux(IEUAdrExtM[`PA_BITS-1:0], HPTWAdr, SelHPTW, PreLSUPAdrM); | ||||||
|   if(`HPTW_WRITES_SUPPORTED) |   if(`HPTW_WRITES_SUPPORTED) | ||||||
|     mux2 #(`XLEN) lsuwritedatamux(WriteDataM, PTE, SelHPTW, LSUWriteDataM); |     mux2 #(`XLEN) lsuwritedatamux(WriteDataM, PTE, SelHPTW, LSUWriteDataM); | ||||||
|   else assign LSUWriteDataM = WriteDataM; |   else assign LSUWriteDataM = WriteDataM; | ||||||
|  |   mux2 #(12) replaymux(PreLSUAdrE, IEUAdrExtM[11:0], SelReplayCPURequest, LSUAdrE); // replay cpu request after hptw.  *** redudant with mux in cache.
 | ||||||
| 
 | 
 | ||||||
|   // always block interrupts when using the hardware page table walker.
 |   // always block interrupts when using the hardware page table walker.
 | ||||||
|   assign CPUBusy = StallW & ~SelHPTW; |   assign CPUBusy = StallW & ~SelHPTW; | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user