Skip to the selected question
ASIC.FYI

ASIC Question Bank

1,000+ hardware interview questions
DescriptionQ186
Page ↗
Q186DVDesignASIC interview problem

Resolve an indexed part-select from a base

TechniquesDesignDVSystemVerilogVector slicing
DifficultyEasy
TopicSV
LanguageSystemVerilog
Format4 choices
01

Problem

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

Starting declarationSystemVerilog
logic [31:0] word = 32'h89AB_CDEF;
int base = 8;
logic [7:0] slice = word[base +: 8];
02

Answer choices (4)