A toggle is a 1-output circuit that changes state at every cycle. Design a toggle circuit that starts with the output being 0 and generates an alternating sequence of 1’s and 0’s, i.e., 010101010101…
module toggle (t, clk, rst);
input clk, rst;
output t;
clk is the clock signal.
rst is the synchronous reset signal.
t is the output that toggles at every
cycle.