- What does the Priority Encoder (4-to-2) problem ask you to build?
- Priority Encoder (4-to-2) Input: 4-bit `req[3:0]`. Output: 2-bit `grant[1:0]` encoding the index of the highest-priority active bit (MSB = highest priority). Output `valid` is high when any request is active.
- What constraints does Priority Encoder (4-to-2) have?
- Use casez inside always @(*).; Include a default branch.; req[3] has highest priority.
- What is an example input and output for Priority Encoder (4-to-2)?
- Input req=4'b1010 gives output grant=2, valid=1.
- Which Verilog concepts does Priority Encoder (4-to-2) practise?
- combinational, encoder, casez, interview, always.