ECE 368 EXAM 2 Chris Edition Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What are the 3 concurrent statements?

A

1) WHEN
2) SELECT
3) GENERATE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the 4 sequential statements?

A

1) IF
2) WAIT
3) LOOP
4) CASE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the 3 kinds a sequential code?

A

1) PROCESS
2) FUNCTION
3) PROCEDURE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

(T/F) As a whole, a PROCESS or a subprogram call is a
concurrent statement.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

(T/F) VHDL is inherently sequential.

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Is a process sequential or concurrent

A

Sequential

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

(T/F) A process is located in the entity section of a VHDL program

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

(T/F) A process sensitivity list is mandatory

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

(T/F) A variable is optional prior to a process statement

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

When is a signal updated in sequential code?

A

After conclusion of the PROCESS statement

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Where can VARIABLE be declared and used?

A

Inside of a PROCESS or subprogram.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

When are variables updated?

A

Immediately.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

(Y/N) are multiple variable assignments allowed?

A

Yes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

How many ways can VHDL pass non-static values? what are they?

A

Two Ways.
- SIGNAL
- VARIABLE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

(Y/N) Can signals be global? Can variables be global?

A

Signals can, but a Variable can NEVER be global.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

How do you pass the value of a Variable out of a PROCESS?

A

Assign it to a signal

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

What are the 4 statements for Sequential code?

A

-IF
-WAIT
-LOOP
-CASE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

Where can sequential code statements be used?

A

inside of…
-PROCESS
-FUNCTION
-PROCEDURE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

What are the pure concurrent statements?

A

WHEN
SELECT
GENERATE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

What reserved words indicate that no action should take place?

A

unaffected
null

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

When can the PROCESS not have a sensitivity list?

A

When WAIT is Employed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

What are the three forms of WAIT?

A

WAIT UNTIL condition; – synthesis
WAIT ON sensitivity_list; – synthesis

WAIT FOR time_expression; – simulation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

What does WAIT UNTIL do?

A

This statement causes the process or subprogram
to hold until the expressed condition is fulfilled.

24
Q

Is WAIT UNTIL better for synchronous or asynchronous code?

A

it is better for synchronous code since it only accepts only one signal.

25
Q

What does WAIT ON do?

A

This statement causes the process or subprogram to hold
until any listed signal changes.

26
Q

Do WHEN and SELECT have sequential versions?

A

Yes, VHDL-2008 added these.

27
Q

where is CASE used?

A

Inside of PROCESS or subprogram

28
Q

what is the main use of CASE?

A

To enter truth tables into programs.

29
Q

is CASE similar to SELECT?

A

Yes, All permutations
must be tested, so the keyword OTHERS is often helpful.

30
Q

What is LOOP useful for?

A

Instantiating the same piece of code multiple times.

31
Q

What is LOOP the counterpart for?

A

GENERATE.

32
Q

What is GENERATE the counterpart for?

A

LOOP

33
Q

(T/F) Any circuit with memory is an infinite state
machine

A

False (FINITE!)

34
Q

What are the two types of state machines?

A

Mealy and Moore

35
Q

Moore is a function of:

A

The present state only

36
Q

Mealy is a function of:

A

The present state and it’s inputs

37
Q

What statement in VHDL best describes FSM?

A

PROCESS

38
Q

A process used to incorporate an FSM must be sensitive to:

A

Clock (possibly reset)

39
Q

(T/F) a Mealy machine has less flip-flops than a Moore machine

A

False (States, only sometimes flip-flops)

40
Q

(T/F) ASM diagrams are similar to FSM’s except they also contain implicit timing information

A

True

41
Q

What are the three basic elements of an ASM diagram?

A

1) State box
2) Decision box
3) Conditional output box

42
Q

What is the shape of a state box?

A

Rectangle

43
Q

What is the shape of a decision box?

A

Diamond/rhombus

44
Q

What is the shape of a conditional output box?

A

Oval/ellipse

45
Q

How many states can be active at a time in an ASM?

A

ONLY ONE!

46
Q

(T/F) Outputs for a mealy machine will be listed inside of a decision box

A

False (Moore)

47
Q

Where is the name for the state box listed?

A

Top left corner of the state

48
Q

How many entrance paths does a decision box have? Exit paths?

A

1, 2

49
Q

(T/F) Outputs for a mealy machine will be listed inside of a conditional output box

A

True

50
Q

Conditional output boxes are only needed when:

A

A mealy output is ‘1’.

51
Q

An ASM block consists of:

A

One state box and the tree of decision
boxes and corresponding conditional output boxes

52
Q

(T/F) Each exit path from an ASM block must connect to a state
box.

A

True

53
Q

What are the two primary “blocks” used to implement a Datapath?

A

1) Register file
2) Function unit

54
Q

The two “blocks” that make up the function unit are;

A

1) ALU
2) Shifter

55
Q

How long is the control word for the Datapath?

A

16 bits or 2 bytes