Skip to content

Step_one

Problem Statement

We're going to start with a small bit of HDL to get familiar with the interface used by HDLBits. Here's the description of the circuit you need to build for this exercise:

Build a circuit with no inputs and one output. That output should always drive 1 (or logic high).

Tip

We want to assign 1 to the output one.

Official Solution

module top_module( output one );

    assign one = 1'b1;

endmodule

My Solution

module top_module( output one );

// Insert your code here
    assign one = 1;

endmodule

Note

  • 在赋值的时候可以写明数值的位宽、基数和常量,例如本题中用1'b1替换1