slowly more buildroot progress

This commit is contained in:
Noah Boorstin 2021-04-18 18:18:07 -04:00
parent 9bb1233433
commit 2af4e2f4ac

View File

@ -194,7 +194,9 @@ module testbench_busybear();
import ahbliteState::*;
always @(dut.HRDATA) begin
#2;
if (dut.hart.MemRWM[1] && ~HWRITE && dut.hart.ebu.BusState == MEMREAD && dut.HRDATA !== {64{1'bx}}) begin
if (dut.hart.MemRWM[1]
&& (dut.hart.ebu.BusState == MEMREAD || dut.hart.ebu.BusState == ATOMICREAD)
&& dut.HRDATA !== {64{1'bx}}) begin
//$display("%0t", $time);
if($feof(data_file_memR)) begin
$display("no more memR data to read");