Академический Документы
Профессиональный Документы
Культура Документы
SPRING 2020
HW 1
# Statement T/F
Synthesis is the process of generating a logic circuit from schematics or
1
code written in HDL
2 A full-adder is used to add 2 bits while a half-adder is used to add 3 bits
4 Functional Simulation and Timing Simulation refer to the same design step
6 PLA and PAL are useful to implement relatively small digital circuits
PART2
Each of the following may have only one correct answer. Indicate the correct answers. Your answer should
be clear otherwise no grade will be granted. Put your answers in the corresponding table on the next page.
4. A CPLD is based on
a) PLA blocks with interconnections
b) PAL blocks with interconnections
c) LUTs with interconnections
d) None of the above
Question # Answer
1
2
3
a) 𝑓1 = 𝑥1 𝑥2 + ̅̅̅𝑥
𝑥1 2 4
b) 𝑓1 = 𝑥1 𝑥2 + 𝑥1 𝑥2 5
c) 𝑓1 = ̅̅̅
𝑥1 ̅̅̅
𝑥2 + 𝑥1 𝑥2 6
d) None of the above
7
6. A 6-input LUT requires 8
a) 16 storage cells
b) 32 storage cells
9
c) 64 storage cells
d) 128 storage cells
8. Which of the following languages can describe the hardware of logic circuits?
a) C
b) C++
c) JAVA
d) VERILOG
9. A _____________ adder has the highest complexity but is the fastest among all adders
a) Hierarchical Carry-Lookahead
b) Carry-Lookahead
2/6
c) Ripple-Carry
d) All of the above give the same gate delay
1. Implement f using one 3-input LUT. Show the truth table implemented inside each LUT
2. Implement f using one 4-input LUT. Show the truth table implemented inside each LUT
3. Implement 𝒇 using only five two-input LUTs. Factorize in terms of w2. Show the truth table
implemented inside each LUT.
4. Redraw this circuit using only two two-input LUTs. Show the truth table implemented inside each
LUT.
3/6
2. Consider the following circuit. Find its gate delay assuming the delay of each gate type as stated in
following table.
3. Consider the below FPGA on the next page to which we connect 4 inputs A, B, C and D and 2
outputs F and G. Show on this FPGA diagram the cells values of the different LUTs and the
different connections needed to build F and G where
a. F = F1 AND F2
b. G = F1 OR F2
c. F1 = A XOR C
d. F2 = B NAND D
G F
F1
F2
4/6
Question 4: Combinational circuits and VHDL
1. Consider the following VHDL code representing a digital circuit named mylogicfunc. Draw the
corresponding logic circuit.
LIBRARY ieee ;
USE ieee.STD_LOGIC_1164.all ;
ENTITY mylogicfunc IS
PORT ( A, B, C, D, E : IN STD_LOGIC ;
f : OUT STD_LOGIC ) ;
END mylogicfunc;
2. Consider two Boolean functions F and G as below. Write the behavioral VHDL code that
implements both functions in the same entity. The entity name should be myfunctions.
𝐺 (𝐴, 𝐵, 𝐶, 𝐷) = ̅̅̅̅̅̅̅̅̅̅̅̅̅
A+B ̅ + D + (𝐴⨁𝐶 ) + 𝐴𝐶̅ 𝐷
5/6
6/6