Dynamic Selection

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/37

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 5:04 AM on 8/11/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

38 Terms

1
New cards

Constant Bit-Select

A vector selection using a fixed index, such as in[5], that always selects the same predetermined bit.

2
New cards

Variable Bit-Select

A vector selection using a runtime signal as the index, such as in[sel], allowing the selected bit to change while the hardware operates.

3
New cards

What does in[sel] mean?

Select the bit of in whose index is given by the current value of sel.

4
New cards

What happens to out in assign out = in[sel]; when sel changes?

out reflects the bit at the newly selected position of in.

5
New cards

Constant Index vs Variable Index

A constant index selects one predetermined position, while a variable index selects a position determined by a runtime signal.

6
New cards

What hardware behavior can in[sel] infer?

Multiplexer-like hardware that selects one bit from multiple possible input bits.

7
New cards

Multiplexer Inference

When an HDL description causes synthesis to recognize and implement the required selection behavior using mux-like hardware.

8
New cards

What role does sel have in assign out = in[sel];?

sel is the selection control that determines which bit of in appears at out.

9
New cards

Does sel become part of the output data in out = in[sel]?

No. sel identifies which input position is selected; the selected bit itself becomes out.

10
New cards

How many choices can an N-bit selector represent?

Up to 2^N different choices.

11
New cards

How many choices can an 8-bit selector represent?

256 choices, corresponding to values 0 through 255.

12
New cards

What mux behavior is described by a 256-bit in, an 8-bit sel, and out = in[sel]?

A 256-to-1, 1-bit-wide multiplexer.

13
New cards

What does 256-to-1 mean for a multiplexer?

There are 256 possible input choices and one of them is selected for the output.

14
New cards

What does 1-bit-wide mean in a 256-to-1, 1-bit-wide mux?

Each selectable input contains one bit.

15
New cards

Selector Width

The number of bits in the selection control; it determines how many distinct choices can be addressed.

16
New cards

Data Width

The number of bits contained in each selectable data item.

17
New cards

Does selector width determine the width of each selected data item?

No. Selector width determines the number of addressable choices, while data width determines the size of each choice.

18
New cards

Dynamic Word Selection

Selecting one fixed-width multi-bit word from several packed words according to a runtime selector.

19
New cards

What is the new Session 3 idea in in[sel*4 +: 4]?

The base of an already-known fixed-width indexed part-select is controlled by a runtime selector, producing dynamic 4-bit word selection.

20
New cards

What does sel represent in in[sel*4 +: 4]?

The number of the 4-bit word to select.

21
New cards

Why is sel multiplied by 4 in in[sel*4 +: 4]?

Each word is 4 bits wide, so multiplying the word number by 4 gives that word's starting bit position.

22
New cards

What does in[sel*4 +: 4] select when sel = 0?

in[3:0].

23
New cards

What does in[sel*4 +: 4] select when sel = 1?

in[7:4].

24
New cards

What does in[sel*4 +: 4] select when sel = 2?

in[11:8].

25
New cards

What remains fixed in in[sel*4 +: 4] even though sel changes?

The selection width remains 4 bits.

26
New cards

How many packed bits are required to hold 256 four-bit words?

1024 bits, because 256 × 4 = 1024.

27
New cards

How can a 1024-bit packed vector be interpreted for this mux application?

As 256 consecutive 4-bit words.

28
New cards

What mux behavior is described by out = in[sel*4 +: 4] with 256 four-bit words and an 8-bit sel?

A 256-to-1, 4-bit-wide multiplexer.

29
New cards

What does 4-bit-wide mean in a 256-to-1, 4-bit-wide mux?

Each of the 256 selectable inputs is a complete 4-bit word.

30
New cards

How can a 4-bit-wide mux be viewed internally?

As four parallel selection paths sharing the same selector, one for each output bit.

31
New cards

Word Number vs Bit Number

In dynamic word selection, sel identifies a word, while sel multiplied by the word width gives that word's starting bit index.

32
New cards

What is the general starting-index relationship for packed words of width W?

starting index = selector × W.

33
New cards

Does variable indexing create new hardware whenever sel changes?

No. The selection hardware already exists; sel only controls which existing input path influences the output.

34
New cards

Runtime Selection

A selection made while the circuit is operating according to the current value of a signal such as sel.

35
New cards

Variable Indexing vs Generate Selection

Variable indexing performs runtime selection through existing hardware, while generate constructs determine hardware structure during elaboration.

36
New cards

Why can assign out = in[sel]; describe much more hardware than the source line suggests?

A short HDL expression can specify selection among many inputs, requiring a potentially large mux network after synthesis.

37
New cards

What is the key hardware question to ask when seeing in[sel]?

Which one of the available input bits must the hardware select according to sel?

38
New cards

What is the key hardware question to ask when seeing in[sel*4 +: 4]?

Which fixed-width word must the hardware select according to sel?