The First Wire
beginner · combinational · 20 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
The First Wire
Write a module with one 1-bit input `in` and one 1-bit output `out`. Connect them with a single `assign` statement. No logic — just pass the signal through.
**Interface**
| Port | Direction | Width | Description |
|-------|-----------|-------|--------------|
| `in` | input | 1 | Input signal |
| `out` | output | 1 | Output signal |
**Notes**
- A `wire` has no memory — it carries whatever is driven onto it at all times.
- The `assign` statement creates a continuous connection.
Constraints
- Use a single assign statement.
- No logic operators.
Examples
Input: in=0
Output: out=0
Input: in=1
Output: out=1
Common questions
- What does the The First Wire problem ask you to build?
- The First Wire Write a module with one 1-bit input `in` and one 1-bit output `out`. Connect them with a single `assign` statement. No logic — just pass the signal through.
- What constraints does The First Wire have?
- Use a single assign statement.; No logic operators.
- What is an example input and output for The First Wire?
- Input in=0 gives output out=0.
- Which Verilog concepts does The First Wire practise?
- combinational, wire, module, assign, ports.