ECE 368 EXAM 1 Chris Edition Flashcards
(178 cards)
How do you convert a binary number to two’s compliment (assuming a negative value is desired)?
Change all 0’s to 1’s and all 1’s to 0’s, then add 1 to the final result
How do you convert a binary number to a hexadecimal number?
Take groups of four bits starting from the right of the binary number and transform them to the corresponding.
How do you convert a binary number to one’s compliment (assuming a negative value is desired)?
Change all 0’s to 1’s and all 1’s to 0’s
What does VHDL stand for?
VHSIC (Very High Speed Integrated Circuit) Hardware
Description Language
What is the main purpose for using VHDL?
Circuit synthesis and implementation with an FPGA
What is synthesis in VHDL?
The translation of source code into a hardware
structure that implements the intended functionality
What is simulation in VHDL
A testing procedure to ensure that such
functionality is indeed achieved by the synthesized circuit
Are all constructs in VHDL able to be simulated?
Yes
Are all constructs in VHDL able to be synthesized?
No
Are statements in VHDL (With exception of process) executed in parallel or series?
Parallel
Is VHDL case sensitive?
No (With a single exception)
How do you trigger comments in VHDL?
By using a ‘- -‘ (Double dash)
How do you terminate a statement in VHDL?
By using a ‘;’
Identifiers in VHDL must always start with:
An alphabetic letter
Identifiers in VHDL can contain:
Letters, digits, and the ‘_’ character
Can a VHDL identifier end with ‘_’?
No
Can a VHDL identifier contain successive ‘_’ characters (ex: ‘__’) ?
No
Are the following identifiers valid?
1) A
2) X0
3) last@value
4) Next_Value
5) 5bit_counter
6) _A0
7 ) A0_
8) Clock__Pulse
1) Yes
2) Yes
3) No (Can’t have ‘@’)
4) Yes
5) No (Can’t start with ‘5’)
6) No (Can’t start with ‘_’)
7) No (Can’t end with ‘_’)
8) No (Can’t contain '__’)
What are the 3 fundamental VHDL code sections?
1) Library Declarations
2) Entity
3) Architecture
What does the Library Declarations section of VHDL code consist of?
Lists all libraries and respective packages needed in the design
What does the Entity section of VHDL code consist of?
Specifies the I/O ports of the circuit, plus (optional) generic constants
What does the Architecture section of VHDL code consist of?
Describes how the circuit behaves, from which a compliant hardware is inferred.
What are the three different VHDL architectures?
1) Structural
2) Behavioral
3) Dataflow
How does the dataflow architecture work?
Describes how the data flows from the inputs to the output most often using NOT, AND and OR operations.