ECE 4110 - Sequential Logic Design Exam 2 Fall 2006, Exams of Electrical and Electronics Engineering

Information about a university exam in the field of sequential logic design. It includes instructions for the exam, three exam questions related to testing combinational circuits with simulation, vhdl code analysis, and designing a vhdl file. Students are expected to discuss simulation types, test small and large circuits, analyze vhdl code, and implement truth tables in vhdl.

Typology: Exams

Pre 2010

Uploaded on 07/30/2009

koofers-user-lfc
koofers-user-lfc 🇺🇸

5

(1)

10 documents

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
ECE 4110 - Sequential Logic Design
Exam 2 - Fall 2006
NOTES: Closed book, except one sheet of handwritten notes and the VHDL Quick
Reference Card are 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, with one problem per page. Clearly label all answers
with the problem number. Follow all the specified class formats, including VHDL.
1. [25 pts] Discuss the topic of testing a combinational circuit with simulation by
answering these questions. What are the names of the two major types of simulation?
What are the advantages and uses of each type? How do you test a small circuit (<5
inputs)? What is different about testing a larger circuit? How do you test the larger
circuit?
2. [25 pts] Analyze the following VHDL code and 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 thisone IS
PORT ( a, b, s : IN STD_LOGIC_VECTOR(1 DOWNTO 0) ;
c, d : IN STD_LOGIC ;
f : OUT STD_LOGIC ;
g : OUT STD_LOGIC_VECTOR(1 DOWNTO 0) ) ;
END thisone;
ARCHITECTURE behav OF thisone IS
BEGIN
PROCESS (s, a, b)
BEGIN
CASE s IS
WHEN "00" | "10" =>
f <= '1'; g <= a AND b ;
WHEN "01" =>
f <= c; g <= NOT a(0) & a(1) ;
WHEN OTHERS =>
f <= '0'; g <= "11" ;
END CASE ;
IF b(0) = '1' THEN f <= c OR d; ELSE f <= 'Z'; END IF;
END PROCESS ;
END behav ;
pf2

Partial preview of the text

Download ECE 4110 - Sequential Logic Design Exam 2 Fall 2006 and more Exams Electrical and Electronics Engineering in PDF only on Docsity!

ECE 4110 - Sequential Logic Design

Exam 2 - Fall 2006

NOTES: Closed book, except one sheet of handwritten notes and the VHDL Quick Reference Card are 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, with one problem per page. Clearly label all answers with the problem number. Follow all the specified class formats, including VHDL.

  1. [25 pts] Discuss the topic of testing a combinational circuit with simulation by answering these questions. What are the names of the two major types of simulation? What are the advantages and uses of each type? How do you test a small circuit (< inputs)? What is different about testing a larger circuit? How do you test the larger circuit?
  2. [25 pts] Analyze the following VHDL code and 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 thisone IS PORT ( a, b, s : IN STD_LOGIC_VECTOR(1 DOWNTO 0) ; c, d : IN STD_LOGIC ; f : OUT STD_LOGIC ; g : OUT STD_LOGIC_VECTOR(1 DOWNTO 0) ) ; END thisone;

ARCHITECTURE behav OF thisone IS BEGIN PROCESS (s, a, b) BEGIN CASE s IS WHEN "00" | "10" => f <= '1'; g <= a AND b ; WHEN "01" => f <= c; g <= NOT a(0) & a(1) ; WHEN OTHERS => f <= '0'; g <= "11" ; END CASE ; IF b(0) = '1' THEN f <= c OR d; ELSE f <= 'Z'; END IF; END PROCESS ; END behav ;

  1. [50 pts] Concisely write the minimal-complexity ARCHITECTURE portion of a VHDL file that has the following ENTITY portion. Also include any library and package declarations that are needed. Within this single architecture:
    • Implement truth table 1 in the dataflow style with a concurrent selected signal assignment statement.
    • Implement truth table 2 in the behavioral style with an If statement.
    • Implement output g as the logical AND of all the f and j bits in the structural style. Assume that a separate 3-input and gate entity, called MyAnd3, has already been created, with 3 input STD_LOGIC bits followed by a STD_LOGIC output bit in its port list. Do NOT write code for the MyAnd3 entity/architecture! Additional simple assignments may be used wherever necessary. In all truth tables, don’t cares are indicated as “x”. Plan your VHDL code structure before writing the final version to ensure that it is easily readable!

ENTITY prob3 IS PORT ( a, b : IN STD_LOGIC ; f, g : BUFFER STD_LOGIC ; j : BUFFER STD_LOGIC_VECTOR(1 DOWNTO 0) ) ; END prob3 ;

Truth Table 1: Truth Table 2:

a b | f a b | j ----|-- ----|--- 0 0 | 1 x 0 | 11 0 1 | x 0 1 | 01 1 x | 0 1 1 | 00