Sim/circuit10
From HDLBits
sim/circuit9Previous
Nexttb/clock
This is a sequential circuit. The circuit consists of combinational logic and one bit of memory (i.e., one flip-flop). The output of the flip-flop has been made observable through the output state.
Read the simulation waveforms to determine what the circuit does, then implement it.
Module Declaration
module top_module ( input clk, input a, input b, output q, output state );
sim/circuit9Previous
Nexttb/clock