A simple iverilog program to implement Ring
and Johnsons
Counter
- In each folder there are 2 .v (Verilog files) i.e.
tb.v
andmd.v
which are the execution and declaration files respectively. - On execution, we can get to see the Clocking Diagram (GUI mode) of both the Counters in GTK wave.
- Can work both on
Windows
andLinux
systems.
- Please install
iverilog
andGTKwave
if not done. Then follow the remaining steps.
- First open a terminal in
JOHNSONS COUNTER
and run the following.
iverilog -o jc tb.v md.v
vvp jc
- At this stage we get the output in console. To see the GUI Clocking diagram, execute the following :-
gtkwave JOHNSON_COUNTER.vcd
- First open a terminal in
RING COUNTER
and run the following.
iverilog -o rc tb.v md.v
vvp rc
- At this stage we get the output in console. To see the GUI Clocking diagram, execute the following :-
gtkwave RING_COUNTER.vcd
- So, this was the simple project about!