pushing register

This commit is contained in:
2022-03-30 15:01:50 +02:00
parent af2cedf54d
commit fbcd679b4c
13 changed files with 2628 additions and 2101 deletions

View File

@@ -1,29 +1,51 @@
watchall
system "echo '[0] start test'"
set Reset 0
set t.d 0
set t.clk 0
set t.clk 1
cycle
status X
mode run
assert t.q 0
cycle
assert t.q 0
system "echo '[1] reset completed'"
set t.clk 1
cycle
assert t.q 0
system "echo '[2] tested d = 0, clk rise'"
set t.clk 0
set t.d 1
cycle
set t.clk 1
cycle
set t.d 0
cycle
assert t.q 1
set t.clk 0
cycle
assert t.q 0
set t.d 0
set t.clk 0
cycle
assert t.q 0
set t.d 1
cycle
set t.clk 1
cycle
set t.d 0
assert t.q 0
system "echo '[3] tested d = 1, clk rise and fall'"
set t.d 1
cycle
set t.clk 0
cycle
assert t.q 1
system "echo '[3] tested d = 1, clk rise and fall'"
set t.d 0
cycle
assert t.q 1