Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

IHDL_FinalsDF

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

Which Verilog keyword is used in dataflow modeling?

a)

always

b)

assign

c)

case

d)

initial

2.

Dataflow modeling mainly describes circuits using:

a)

Logic gates

b)

Boolean equations

c)

Memory elements

d)

Flip-flops

3.

What type of circuit is best modeled with dataflow style?

a)

Sequential circuits

b)

Mixed-signal circuits

c)

Combinational circuits

d)

Microprocessors

4.

What does this line represent? assign Y = A | B;

a)

Behavioral modeling

b)

Gate-level modeling

c)

Dataflow modeling

d)

Sequential modeling

5.

The conditional operator ?: is used in dataflow modeling to implement:

a)

Flip-flops

b)

Multiplexers

c)

Counters

d)

Registers

6.

Which operator performs bit-by-bit OR?

a)

||

b)

|

c)

&

d)

==

7.

The expression assign S = A ^ B; implements:

a)

AND gate

b)

OR gate

c)

XOR gate

d)

NAND gate

8.

What is the output width of the expression A & B when A and B are 4 bits?

a)

1 bit

b)

2 bits

c)

4 bits

d)

8 bits

9.

Which operator reduces all bits of a vector to 1 value?

a)

&&

b)

|

c)

^

d)

& (reduction)

10.

The expression assign Y = &A; means:

a)

bitwise AND

b)

logical AND

c)

reduction AND

d)

case statement

11.

What is the result of assign Y = A && B; when A = 4'b0001 and B = 4'b1111?

a)

4'b0001

b)

4'b1111

c)

1

d)

0

12.

The conditional operator syntax is:

a)

condition ? value1 : value2

b)

if (condition) value1 else value2

c)

condition -> value1 | value2

d)

(condition || value1) && value2

13.

The following code implements a: assign Y = (A > B);

a)

Decoder

b)

Comparator

c)

Mux

d)

Gate

14.

Which of the following is TRUE for dataflow modeling?

a)

Uses procedural blocks

b)

Uses continuous assignment

c)

Best for sequential logic

d)

Requires clock signals

15.

What will this expression output when A = 3'b101? assign P = ^A;

a)

1

b)

0

c)

3

d)

101

16.

Which operator performs logical OR?

a)

|

b)

||

c)

&

d)

^

17.

What is the function of assign in Verilog?

a)

Defines a procedural block

b)

Declares a memory cell

c)

Continuously drives a signal

d)

Creates hardware registers

18.

What circuit does this represent? assign Y = (S == 0) ? A : B;

a)

Encoder

b)

Decoder

c)

Multiplexer

d)

Comparator

19.

For vector A = 4’b1101, what is |A (reduction OR)?

a)

0

b)

1

c)

1101

d)

1111

20.

The main advantage of dataflow modeling is:

a)

Describes circuits at gate level

b)

Allows complex algorithmic descriptions

c)

Very readable for combinational expressions

d)

Requires clocking