ECE 368 EXAM 2 Chris Edition Flashcards

(55 cards)

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
What does WAIT ON do?
This statement causes the process or subprogram to hold until any listed signal changes.
26
Do WHEN and SELECT have sequential versions?
Yes, VHDL-2008 added these.
27
where is CASE used?
Inside of PROCESS or subprogram
28
what is the main use of CASE?
To enter truth tables into programs.
29
is CASE similar to SELECT?
Yes, All permutations must be tested, so the keyword OTHERS is often helpful.
30
What is LOOP useful for?
Instantiating the same piece of code multiple times.
31
What is LOOP the counterpart for?
GENERATE.
32
What is GENERATE the counterpart for?
LOOP
33
(T/F) Any circuit with memory is an infinite state machine
False (FINITE!)
34
What are the two types of state machines?
Mealy and Moore
35
Moore is a function of:
The present state only
36
Mealy is a function of:
The present state and it's inputs
37
What statement in VHDL best describes FSM?
PROCESS
38
A process used to incorporate an FSM must be sensitive to:
Clock (possibly reset)
39
(T/F) a Mealy machine has less flip-flops than a Moore machine
False (States, only sometimes flip-flops)
40
(T/F) ASM diagrams are similar to FSM's except they also contain implicit timing information
True
41
What are the three basic elements of an ASM diagram?
1) State box 2) Decision box 3) Conditional output box
42
What is the shape of a state box?
Rectangle
43
What is the shape of a decision box?
Diamond/rhombus
44
What is the shape of a conditional output box?
Oval/ellipse
45
How many states can be active at a time in an ASM?
ONLY ONE!
46
(T/F) Outputs for a mealy machine will be listed inside of a decision box
False (Moore)
47
Where is the name for the state box listed?
Top left corner of the state
48
How many entrance paths does a decision box have? Exit paths?
1, 2
49
(T/F) Outputs for a mealy machine will be listed inside of a conditional output box
True
50
Conditional output boxes are only needed when:
A mealy output is '1'.
51
An ASM block consists of:
One state box and the tree of decision boxes and corresponding conditional output boxes
52
(T/F) Each exit path from an ASM block must connect to a state box.
True
53
What are the two primary "blocks" used to implement a Datapath?
1) Register file 2) Function unit
54
The two "blocks" that make up the function unit are;
1) ALU 2) Shifter
55
How long is the control word for the Datapath?
16 bits or 2 bytes