Bit-Select & Part-Select
beginner · combinational · 40 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
Bit-Select & Part-Select
Input: 8-bit `data[7:0]`. Output: upper nibble `hi[3:0] = data[7:4]` and lower nibble `lo[3:0] = data[3:0]`.
**Notes**
- Part-select syntax: `data[7:4]` extracts bits 7 down to 4.
- Do **not** use arithmetic — slice notation only.
**Example:** `data=8'hA5 → hi=4'hA, lo=4'h5`
Constraints
- Use slice notation only — no arithmetic or shifts.
Examples
Input: data=8'hA5
Output: hi=4'hA, lo=4'h5
Common questions
- What does the Bit-Select & Part-Select problem ask you to build?
- Bit-Select & Part-Select Input: 8-bit `data[7:0]`. Output: upper nibble `hi[3:0] = data[7:4]` and lower nibble `lo[3:0] = data[3:0]`. **Notes** - Part-select syntax: `data[7:4]` extracts bits 7 down to 4. - Do **not** use arithmetic — slice notation only. **Example:** `data=8'hA5 → hi=4'hA, lo=4'h5`
- What constraints does Bit-Select & Part-Select have?
- Use slice notation only — no arithmetic or shifts.
- What is an example input and output for Bit-Select & Part-Select?
- Input data=8'hA5 gives output hi=4'hA, lo=4'h5.
- Which Verilog concepts does Bit-Select & Part-Select practise?
- combinational, vectors, part-select, assign.