2022-02-23 19:01:54 +01:00
|
|
|
watchall
|
2022-02-25 19:16:40 +01:00
|
|
|
system "echo '[0] code starts'"
|
2022-02-24 16:47:24 +01:00
|
|
|
set t.in1.r 0
|
|
|
|
set t.in2.r 0
|
|
|
|
set t.out.a 0
|
2022-02-28 11:11:30 +01:00
|
|
|
set Reset 0
|
2022-02-23 19:01:54 +01:00
|
|
|
cycle
|
|
|
|
status X
|
|
|
|
mode run
|
2022-02-28 11:11:30 +01:00
|
|
|
set Reset 1
|
|
|
|
cycle
|
2022-02-25 19:16:40 +01:00
|
|
|
system "echo '[1] reset done'"
|
|
|
|
system "echo '----------------------------------------------------------------------------------------------------'"
|
2022-02-24 16:47:24 +01:00
|
|
|
set t.in1.r 1
|
2022-02-28 11:11:30 +01:00
|
|
|
set t.in2.r 1
|
2022-02-24 16:47:24 +01:00
|
|
|
cycle
|
|
|
|
assert t.out.r 1
|
|
|
|
set t.out.a 1
|
2022-02-24 19:02:37 +01:00
|
|
|
system "echo '----------------------------------------------------------------------------------------------------'"
|
2022-02-28 11:11:30 +01:00
|
|
|
system "echo '[2] 1 bit processed by the arbiter'"
|
|
|
|
cycle
|
2022-02-24 16:47:24 +01:00
|
|
|
set t.out.a 0
|
|
|
|
cycle
|
2022-02-28 11:11:30 +01:00
|
|
|
assert t.out.r 1
|
|
|
|
set t.out.a 1
|
|
|
|
set t.in1.r 0
|
|
|
|
set t.in2.r 0
|
2022-02-25 19:16:40 +01:00
|
|
|
system "echo '----------------------------------------------------------------------------------------------------'"
|
2022-02-28 11:11:30 +01:00
|
|
|
system "echo '[3] 2 bit processed by the arbiter'"
|
|
|
|
cycle
|
|
|
|
set t.out.a 0
|
|
|
|
set t.in1.r 1
|
2022-02-25 19:16:40 +01:00
|
|
|
set t.in2.r 1
|
|
|
|
cycle
|
|
|
|
assert t.out.r 1
|
|
|
|
set t.out.a 1
|
|
|
|
system "echo '----------------------------------------------------------------------------------------------------'"
|
2022-02-28 11:11:30 +01:00
|
|
|
system "echo '[4] 3 bit processed by the arbiter'"
|
|
|
|
cycle
|
2022-02-25 19:16:40 +01:00
|
|
|
set t.out.a 0
|
|
|
|
cycle
|
2022-02-28 11:11:30 +01:00
|
|
|
assert t.out.r 1
|
|
|
|
set t.out.a 1
|
2022-02-25 19:16:40 +01:00
|
|
|
system "echo '----------------------------------------------------------------------------------------------------'"
|
2022-02-28 11:11:30 +01:00
|
|
|
system "echo '[5] 4 bit processed by the arbiter'"
|