mirror of
				https://github.com/openhwgroup/cvw
				synced 2025-02-11 06:05:49 +00:00 
			
		
		
		
	adapt testbench to removal of signal
This commit is contained in:
		
							parent
							
								
									76be84fa92
								
							
						
					
					
						commit
						02de6014b2
					
				@ -453,8 +453,8 @@ module testbench();
 | 
			
		||||
  // Read Checker
 | 
			
		||||
  // ------------
 | 
			
		||||
  always @(negedge clk) begin
 | 
			
		||||
    //if (dut.hart.MemRWM[1] && ~dut.hart.StallM && ~dut.hart.FlushM && dut.hart.ieu.InstrValidM) begin <-- This doesn't work because ReadDataM can be used for other things (namely page table walking) while the pipeline is stalled, leaving it in a different state when the pipeline unstalls
 | 
			
		||||
    if (dut.hart.MemRWM[1] && dut.hart.lsu.dcache.ReadDataWEn) begin // <-- ReadDataWEn is a good indicator that the pipeline is using the current contents of ReadDataM
 | 
			
		||||
    if (dut.hart.MemRWM[1] && ~dut.hart.StallM && ~dut.hart.FlushM && dut.hart.ieu.InstrValidM) begin //<-- This doesn't work because ReadDataM can be used for other things (namely page table walking) while the pipeline is stalled, leaving it in a different state when the pipeline unstalls
 | 
			
		||||
    //if (dut.hart.MemRWM[1] && dut.hart.lsu.dcache.ReadDataWEn) begin // <-- ReadDataWEn is a good indicator that the pipeline is using the current contents of ReadDataM
 | 
			
		||||
      if($feof(data_file_memR)) begin
 | 
			
		||||
        $display("no more memR data to read");
 | 
			
		||||
        `ERROR
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user