天天看点

HDLBits(2) Basics

Build a circuit with no inputs and one output that outputs a constant 0

Now that you’ve worked through the previous problem, let’s see if you can do a simple problem without the hints.

建立一个没有输入只有输出常数0的电路。

module top_module ( output zero );
	
	assign zero = 1'b0;
	
endmodule
           

Warning (13024): Output pins are stuck at VCC or GND

Warning (13410): Pin “zero” is stuck at GND File: /home/h/work/hdlbits.1766045/top_module.v Line: 1

HDLBits(2) Basics