The 7458 Chip
beginner · combinational · 35 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 7458 Chip
The 7458 is a real IC containing two AND-OR gate structures. Implement exactly:
- `p1y = (p1a & p1b) | (p1c & p1d)` — two 2-input ANDs feeding an OR
- `p2y = (p2a & p2b) | (p2c & p2d & p2e)` — 2-AND and 3-AND feeding an OR
All inputs and both outputs are explicit ports. This mirrors a real datasheet.
**Interface**
| Port | Direction | Description |
|------|-----------|-------------|
| `p1a,p1b,p1c,p1d` | input | Part 1 inputs |
| `p2a,p2b,p2c,p2d,p2e` | input | Part 2 inputs |
| `p1y` | output | Part 1 result |
| `p2y` | output | Part 2 result |
Constraints
- Use two assign statements — one per output.
- No always blocks.
Examples
Input: p1a=1,p1b=1,p1c=0,p1d=0
Output: p1y=1
Input: p2a=1,p2b=1,p2c=1,p2d=1,p2e=1
Output: p2y=1
Common questions
- What does the The 7458 Chip problem ask you to build?
- The 7458 Chip The 7458 is a real IC containing two AND-OR gate structures. Implement exactly: - `p1y = (p1a & p1b) | (p1c & p1d)` — two 2-input ANDs feeding an OR - `p2y = (p2a & p2b) | (p2c & p2d & p2e)` — 2-AND and 3-AND feeding an OR All inputs and both outputs are explicit ports.
- What constraints does The 7458 Chip have?
- Use two assign statements — one per output.; No always blocks.
- What is an example input and output for The 7458 Chip?
- Input p1a=1,p1b=1,p1c=0,p1d=0 gives output p1y=1.
- Which Verilog concepts does The 7458 Chip practise?
- combinational, gates, datasheet.