Lecture 6 Flashcards

1
Q

reduction operators

A

Imply a multiple input gate acting on a single bus

VHDL does not have these

Can write an and8 module explicitly using your own entity and architecture statements

Provides the generate command to produce a variable amount of hardware depending on the value of a parameter

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

Conditional assignments

A

Select output from among alternatives based on an input called the condition

Useful for describing a multiplexer (MUX)

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

2:1 MUX

A

Can use conditional signal assignment to select one of two 4-bit inputs

  • sets y to d0 if s is 0
  • otherwise, sets y to d1
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Selected signal assignment statements

A

Provides a short hard when selecting from one of several possibilities

Case statement in place of multiple if/else statements

With a select y <=
… when others;

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

Full adder

A
S = A xor B xor Cin
Court = AB+ACin+BCin

Intermediate signals:

  • P = A xor B
  • G = AB
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Full adder with intermediate signals

A
S = P xor Cin
Court = G+PCin
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Internal variables

A

Neither inputs nor outputs but are used only internal to the module

Similar to local variables in programming

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

HDL assignment statements

A

Take place concurrently

Order does not matter

Are evaluated any time the inputs (signals on the right hand side) change their value regardless or order

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

VHDL signals

A

Used to represent internal variables whose values are defined by concurrent signal assign statements

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

VHDL Precedence

A

Highest:
Not
*, /, mod, rem
+, -, &

Lowest:
Rol, ror, srl, sll, sra, sla
=, /=, , >=
And, or, nand, nor, xor

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

In VHDL, STD_LOGIC numbers are written in

A

Binary and enclosed in single quotes: ‘0’ and ‘1’

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

STD_LOGIC_VECTOR numbers

A

Binary or hexadecimal

Double quotation marks

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

“101”

A

3 bits

Base 2

Val = 5

Stored - 101

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

B”101”

A

3 bits

Base 2

Val = 3

Stored - 101

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

X”AB”

A

Bits - 8

Base 16

Val = 161

Stored - 10101011

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

HDL’s use Z to indicate a

A

Floating value (high impedance)

17
Q

Tri-state buffer

A

Output floats when the enable is 0

18
Q

If the buffer is enabled

A

The output is the same as the input

19
Q

If the buffer is disabled

A

The output is assigned a floating value (z)

20
Q

HDLs use X to indicate

A

An invalid logic level

21
Q

VHDL uses u to indicate

A

An unknown state

22
Q

U’s

A

Helpful to track errors caused by forgetting to reset

At start of simulation, state nodes such as flip-flop outputs are initialized to an unknown state

23
Q

‘S

A

If a bus is simultaneously driven to 0 and 1 by 2 enabled tristate buffers, the result is x

If a gate receives a floating input, it may produce an x output if it can’t determine the correct output value

24
Q

Seeing X or U values in simulation is usually an indication of

A

A bug or bad coding practice

25
Q

VHDL delays

A

The after clause

Helpful during simulation to predict how fast a circuit will work

Use for debugging purposes to understand cause and effect

Ignored during synthesis

26
Q

Logical simulation

A

Tests a system on a computer before it is turned into HW

27
Q

Logical synthesis

A

Converts HDL code into digital logic circuits

28
Q

Schematic

A

A diagram of a digital circuit showing the elements and wires that connect them together