Four Wires
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
Four Wires
A module with four 1-bit inputs (`a`, `b`, `c`, `d`) and four 1-bit outputs (`w`, `x`, `y`, `z`).
Assign: `w=a`, `x=b`, `y=c`, `z=d`. No logic — pure wiring.
**Interface**
| Port | Direction | Description |
|------|-----------|-------------|
| `a,b,c,d` | input | Four signal inputs |
| `w,x,y,z` | output | Four signal outputs |
Constraints
- Use four separate assign statements.
- Each output tracks exactly one input.
Examples
Input: a=1,b=0,c=1,d=0
Output: w=1,x=0,y=1,z=0
Common questions
- What does the Four Wires problem ask you to build?
- Four Wires A module with four 1-bit inputs (`a`, `b`, `c`, `d`) and four 1-bit outputs (`w`, `x`, `y`, `z`). Assign: `w=a`, `x=b`, `y=c`, `z=d`. No logic — pure wiring.
- What constraints does Four Wires have?
- Use four separate assign statements.; Each output tracks exactly one input.
- What is an example input and output for Four Wires?
- Input a=1,b=0,c=1,d=0 gives output w=1,x=0,y=1,z=0.
- Which Verilog concepts does Four Wires practise?
- combinational, wire, ports, assign.