BitFlow

Inverter (NOT Gate)

beginner · combinational · 25 XP

Sign in to write your solution, run it in the simulator and submit it for grading.

Sign in or create a free account →

Problem

Inverter (NOT Gate) Implement a NOT gate: one 1-bit input `in`, one 1-bit output `out`. Output is always the complement of the input. **Truth Table** | in | out | |----|-----| | 0 | 1 | | 1 | 0 | **Notes** - Use the bitwise complement operator `~`. - This represents a real physical inverter (two stacked CMOS transistors).

Constraints

  • Use a single assign statement with the ~ operator.

Examples

Input: in=0

Output: out=1

Input: in=1

Output: out=0

Common questions

What does the Inverter (NOT Gate) problem ask you to build?
Inverter (NOT Gate) Implement a NOT gate: one 1-bit input `in`, one 1-bit output `out`. Output is always the complement of the input. **Truth Table** | in | out | |----|-----| | 0 | 1 | | 1 | 0 | **Notes** - Use the bitwise complement operator `~`.
What constraints does Inverter (NOT Gate) have?
Use a single assign statement with the ~ operator.
What is an example input and output for Inverter (NOT Gate)?
Input in=0 gives output out=1.
Which Verilog concepts does Inverter (NOT Gate) practise?
combinational, gates, assign.