Sim/circuit10

From HDLBits

sim/circuit9Previous

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.


2030405060708090100110120130140150clkabqstate Inputs Outputs

Module Declaration

module top_module (
    input clk,
    input a,
    input b,
    output q,
    output state  );

Write your solution here

x
 
1
module top_module (
2
    input clk,
3
    input a,
4
    input b,
5
    output q,
6
    output state  );
7
8
endmodule
9
Upload a source file...