Notgate

2023. 6. 8. 22:51FPGA/HDLBits

728x90

Problem Statement

Create a module that implements a NOT gate.

 

module top_module( input in, output out );
	assign out = !in;
endmodule

 


This circuit is similar to wire , but with a slight difference. When making the connection from the wire in to the wire out we're going to implement an inverter (or "NOT-gate") instead of a plain wire.

Use an assign statement. The assign statement will continuously drive the inverse of in onto wire out.

 

'FPGA > HDLBits' 카테고리의 다른 글

Norgate  (0) 2023.06.08
Andgate  (0) 2023.06.08
Wire4  (0) 2023.06.08
Wire  (0) 2023.06.08
Zero  (0) 2023.06.08