Skip to question
asic.fyi
DesignVerificationSystemVerilogFirmwareArchitectureInterviews
asic.fyi/Interview questions/Resolve an indexed part-select from a base

Hardware interview practice

Resolve an indexed part-select from a base

EasySystemVerilogSystemVerilog

Given logic [31:0] word = 32'h89AB_CDEF and int base = 8, what range does word[base +: 8] select?

Try it in the question bankReason first. Then compare.

Keep this exact question selected while you check your answer and review the full solution.

Practice this question →
Starting point

Question code

logic [31:0] word = 32'h89AB_CDEF;
int base = 8;
logic [7:0] slice = word[base +: 8];
Choose one

Answer choices

  1. A. word[8:1]
  2. B. word[23:16]
  3. C. word[8:15] as a reversed vector
  4. D. word[15:8]
asic.fyi · Learn silicon end to end.info@asic.fyi