add seq_detector_1011

This commit is contained in:
Elie Deletang
2026-11-29 10:34:26 +01:00
parent bc3ff55602
commit 796dd9e640
10 changed files with 829 additions and 93 deletions
+149
View File
@@ -0,0 +1,149 @@
$date
Sun Nov 29 10:29:28 2026
$end
$version
Icarus Verilog
$end
$timescale
1ps
$end
$scope module tb_seq_detector_1011 $end
$var wire 1 ! detected $end
$var reg 1 " clk $end
$var reg 1 # in $end
$var reg 1 $ rst $end
$scope module dut $end
$var wire 1 " clk $end
$var wire 1 # in $end
$var wire 1 $ rst $end
$var wire 1 ! detected $end
$var reg 3 % current_state [2:0] $end
$var reg 3 & next_state [2:0] $end
$upscope $end
$upscope $end
$enddefinitions $end
$comment Show the parameter values. $end
$dumpall
$end
#0
$dumpvars
b0 &
bx %
1$
0#
0"
x!
$end
#5000
0!
b0 %
1"
#10000
0"
#15000
1"
#20000
0"
#25000
b1 &
1#
0$
1"
#30000
0"
#35000
b10 &
0#
b1 %
1"
#40000
0"
#45000
b11 &
b10 %
1#
1"
#50000
0"
#55000
b100 &
b11 %
1"
#60000
0"
#65000
b10 &
1!
b100 %
0#
1"
#70000
0"
#75000
b11 &
1#
0!
b10 %
1"
#80000
0"
#85000
b100 &
b11 %
1"
#90000
0"
#95000
b10 &
0#
1!
b100 %
1"
#100000
0"
#105000
b11 &
0!
b10 %
1#
1"
#110000
0"
#115000
b10 &
0#
b11 %
1"
#120000
0"
#125000
b11 &
b10 %
1#
1"
#130000
0"
#135000
b100 &
b11 %
1"
#140000
0"
#145000
b10 &
1!
b100 %
0#
1"
#150000
0"
#155000
b0 &
0!
b10 %
1"
#160000
0"
#165000
b0 %
1"