Docsity

Fall 2007 Exam 2a: Testing Combinational Circuits with Simulation, Exams of Electrical and Electronics Engineering

Toggle sidebar
bg1
ECE 4110 - Sequential Logic Design
Exam 2a - Fall 2007
NOTES: Closed book, except one sheet of handwritten notes is allowed. Show ALL your
work for full credit. Please draw and write NEATLY (If I cannot read it, I must mark it
WRONG). Do all work in pencil and put all answers on your engineering paper. Clearly
label all answers with the problem number and part label. Follow all the specified class
formats for VHDL, truth tables, and logic diagrams. 50 points, 30 minutes.
1. [10 pts] Consider the topic of testing a combinational circuit with simulation in a CAD
tool such as Quartus by answering these questions.
a) What are the names of the two major types of simulation?
b) What are the basic requirements that must be met when creating a complete
simulation?
c) What simplifying shortcuts can you take when testing some LARGE circuits
(many inputs) in a complete simulation?
2. [10 pts] When do you need to include the line "USE ieee.std_logic_signed.ALL;" in a
VHDL file? What new capabilities does it provide? Be very precise.
3. [30 pts] Analyze the following VHDL code and
a) Derive the corresponding truth table. Label the columns as: a1 a0 b c f_.
b) Draw the logic diagram directly implied by the VHDL code in terms of gates
and standard MSI functions, without any simplification. Assume all the
appropriate libraries and packages have been included.
ENTITY problem IS
PORT ( a : IN STD_LOGIC_VECTOR(1 DOWNTO 0) ;
b, c : IN STD_LOGIC ;
f : OUT STD_LOGIC ) ;
END problem ;
ARCHITECTURE behav OF problem IS
BEGIN
PROCESS (a, b, c)
BEGIN
f <= c;
IF (a >= "10") THEN f <= c XNOR b ;
ELSIF (b /= '0') THEN f <= NOT c ;
END IF ;
END PROCESS ;
END behav ;

Partial preview of the text

Download Fall 2007 Exam 2a: Testing Combinational Circuits with Simulation and more Exams Electrical and Electronics Engineering in PDF only on Docsity!

ECE 4110 - Sequential Logic Design

Exam 2a - Fall 2007

NOTES: Closed book, except one sheet of handwritten notes is allowed. Show ALL your

work for full credit. Please draw and write NEATLY (If I cannot read it, I must mark it

WRONG). Do all work in pencil and put all answers on your engineering paper. Clearly

label all answers with the problem number and part label. Follow all the specified class

formats for VHDL, truth tables, and logic diagrams. 50 points, 30 minutes.

1. [10 pts] Consider the topic of testing a combinational circuit with simulation in a CAD

tool such as Quartus by answering these questions.

a) What are the names of the two major types of simulation?

b) What are the basic requirements that must be met when creating a complete

simulation?

c) What simplifying shortcuts can you take when testing some LARGE circuits

(many inputs) in a complete simulation?

2. [10 pts] When do you need to include the line "USE ieee.std_logic_signed.ALL;" in a

VHDL file? What new capabilities does it provide? Be very precise.

3. [30 pts] Analyze the following VHDL code and

a) Derive the corresponding truth table. Label the columns as: a 1 a 0 b c f_.

b) Draw the logic diagram directly implied by the VHDL code in terms of gates

and standard MSI functions, without any simplification. Assume all the

appropriate libraries and packages have been included.

ENTITY problem IS PORT ( a : IN STD_LOGIC_VECTOR(1 DOWNTO 0) ; b, c : IN STD_LOGIC ; f : OUT STD_LOGIC ) ; END problem ; ARCHITECTURE behav OF problem IS BEGIN PROCESS (a, b, c) BEGIN f <= c; IF (a >= "10") THEN f <= c XNOR b ; ELSIF (b /= '0') THEN f <= NOT c ; END IF ; END PROCESS ; END behav ;