aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGravatar Peter McGoron 2023-04-20 16:23:23 +0000
committerGravatar Peter McGoron 2023-04-20 16:23:23 +0000
commit2119ec275bf51fbc393f352618e1aa3d23f4104f (patch)
treeb39d2f504ab06a94d96f6c95c936e788b26f227c /tests
parentmetastability comment (diff)
add ready_to_arm to indiciate when the module can accept another command
Diffstat (limited to 'tests')
-rwxr-xr-xtests/mk.sh1
-rw-r--r--tests/simtop.v6
2 files changed, 5 insertions, 2 deletions
diff --git a/tests/mk.sh b/tests/mk.sh
index 417bd3a..707b753 100755
--- a/tests/mk.sh
+++ b/tests/mk.sh
@@ -19,6 +19,7 @@ run_test() {
-GWID_LEN=$WIDLEN \
-DSPI_MASTER_TYPE=$MASTER_TYPE -DSPI_SLAVE_TYPE=$SLAVE_TYPE \
-DVCDFILE="\"$DIR.fst\"" \
+ -DSIMULATION \
--Mdir $DIR \
$EXTARG \
simtop.v write_read.cpp $MODS \
diff --git a/tests/simtop.v b/tests/simtop.v
index a1461bc..71981a8 100644
--- a/tests/simtop.v
+++ b/tests/simtop.v
@@ -26,6 +26,7 @@ module simtop
`endif
input rdy,
output master_finished,
+ output ready_to_arm,
output err
);
@@ -74,6 +75,7 @@ reg slave_error;
`endif
.sck_wire(sck),
.finished(master_finished),
+ .ready_to_arm(ready_to_arm),
.arm(activate)
);
@@ -99,11 +101,11 @@ reg slave_error;
.err(err)
);
-/*
+`ifdef SIMULATION
initial begin
$dumpfile(`VCDFILE);
$dumpvars;
end
-*/
+`endif
endmodule