Docsity

Digital Design Lab - Practice Exam C Answer Sheet | ECE 2031, Exams of Electrical and Electronics Engineering

Toggle sidebar
bg1
ECE2031 In-Class Exam Spring 2007
ANSWER SHEET
Name __________________________ Section _______ Student No. ___________
Closed Books, Closed Notes, No computers or calculators.
Having read the Georgia Institute of Technology Academic Honor Code, I understand and accept my
responsibility as a member of the Georgia Tech Community to uphold the Honor Code at all times. In
addition, I understand my options for reporting honor violations as detailed in the code.
______________________________________________ ___________________
(Signature) (Date)
CIRCLE YOUR SELECTED ANSWERS OR FILL IN AS NEEDED
1. a b c d e (5 pts)
2. a b c d e (5 pts)
3. a b c d e (5 pts)
4. a b c d e (5 pts)
5. a b c (5 pts)
6. a b c d e (5 pts)
7. (15 pts)
CD
AB 00 01 11 10
00
01
11
10
Y=________________________________________________
(When writing your equation, be careful to separate any bars that you intend to be interpreted as
separated: YXXY toopposedas )
pf3
pf4
pf5
pf8

Partial preview of the text

Download Digital Design Lab - Practice Exam C Answer Sheet | ECE 2031 and more Exams Electrical and Electronics Engineering in PDF only on Docsity!

ECE2031 In-Class Exam Spring 2007

ANSWER SHEET

Name __________________________ Section _______ Student No. ___________ Closed Books, Closed Notes, No computers or calculators. Having read the Georgia Institute of Technology Academic Honor Code, I understand and accept my responsibility as a member of the Georgia Tech Community to uphold the Honor Code at all times. In addition, I understand my options for reporting honor violations as detailed in the code.

______________________________________________ ___________________

(Signature) (Date)

CIRCLE YOUR SELECTED ANSWERS OR FILL IN AS NEEDED

  1. a b c d e (5 pts)
  2. a b c d e (5 pts)
  3. a b c d e (5 pts)
  4. a b c d e (5 pts)
  5. a b c (5 pts)
  6. a b c d e (5 pts)
  7. (15 pts)

CD AB 00 01 11 10

00

01

11

10

Y=________________________________________________

(When writing your equation, be careful to separate any bars that you intend to be interpreted as separated: XY as opposedto X Y )

Questions 8-14: Write ONE letter in the range of โ€œaโ€ through โ€œkโ€ in each blank.

  1. ____ (2 pts)
  2. ____ (2 pts)
  3. ____ (2 pts)
  4. ____ (2 pts)
  5. ____ (2 pts)
  6. ____ (2 pts)
  7. ____ (2 pts)
  8. a b (4 pts)
  9. a b c (4 pts)
  10. a b (4 pts)
  11. a b (4 pts)
  12. Fill in the Next State and Z columns. The first row is filled in correctly as an example (15 pts) Present State X 1 X 0 Next State Z A 0 0 A 0 A 0 1 A 1 0 A 1 1 B 0 0 B 0 1 B 1 0 B 1 1 C 0 0 C 0 1 C 1 0 C 1 1 D 0 0 D 0 1 D 1 0 D 1 1
  13. a b c d e (5 pts)
  14. a b c d e (5 pts)

The following shows both the symbol and the VHDL source for PB_DIP, exactly as it appears in the downloadable top_scomp project that is the starting point for the final design project. The AND gate that drives CS is also shown. Questions 4, 5, and 6 refer to this information.

LIBRARY IEEE; LIBRARYUSE IEEE.STD_LOGIC_1164.ALL; LPM; USEUSE IEEE.STD_LOGIC_ARITH.ALL;IEEE.STD_LOGIC_UNSIGNED.ALL; USE LPM.LPM_COMPONENTS.ALL; ENTITYPORT( PB_DIP IS CLOCK_100HZRESETN :: ININ STD_LOGIC;STD_LOGIC; CSPB_SWC :: ININ STD_LOGIC;STD_LOGIC_VECTOR( 7 DOWNTO 0); );IO_DATA^ :^ INOUT^ STD_LOGIC_VECTOR(15^ DOWNTO^ 0) END PB_DIP; ARCHITECTURE a OF PB_DIP IS SIGNAL BPB_SWC : STD_LOGIC_VECTOR(7 DOWNTO 0); BEGINIO_BUS: lpm_bustri GENERIClpm_width MAP (=> 16 )PORT MAP ( dataenabledt =>=> (x"00"CS, & BPB_SWC), );tridata^ =>^ IO_DATA PROCESSBEGIN (CLOCK_100HZ, RESETN) IF (RESETN = '0') THEN ELSIFBPB_SWC (FALLING_EDGE(CLOCK_100HZ))^ <=^ x"00"; THEN ENDBPB_SWC IF;^ <=^ NOT(PB_SWC); END ENDa;^ PROCESS;

  1. (5 pts) When CS is asserted (high), and RESETN is not asserted (i.e., RESETN is also high), what is the best description of what happens on the lower 8 bits of IO_DATA? a) They are held in the tristate condition b) They show the current value of the switches c) They show the inverted value of the switches, as sampled within the last 0.01 sec d) They show the inverted, current value of the switches e) They show the value xโ€œ00โ€
  1. (5 pts) Still referring to the preceding figure and code, IO_BUS represents a device, and the PROCESS statement represents a device. These two devices are operating a) in parallel (concurrently) b) sequentially c) neither of the above
  2. (5 pts) Still referring to the preceding figure and code, and assuming that NIO_ADDR n is NOT(IO_ADDR n ) and NIO_WRITE is NOT(IO_WRITE), what does the 12-input AND do? a) Decodes an I/O address of 0x00, when IO_CYCLE is high and IO_WRITE is low b) Decodes an I/O address of 0xFF, when IO_CYCLE is high and IO_WRITE is low c) Decodes an I/O address of 0x00, when IO_CYCLE is low and IO_WRITE is high d) Decodes an I/O address of 0xFF, when IO_CYCLE is low and IO_WRITE is high e) Decodes an I/O address of 0xFF, when IO_CYCLE is high and IO_WRITE is high
  3. (15 points) Fill in the Karnaugh Map for the following truth table and solve it, circling the prime implicants and writing the minimal sum of products expression.

Questions 8-14 (2 pts each): Fill in the blanks in the following paragraph by selecting a choice from the list below for each numbered blank. For example, if you think the first blank should be filled in with โ€œEPC6โ€, enter the letter โ€œhโ€ for question 8. (Not all list items will be used.) (8) language code is assembled by (9) , producing (10) language code that is directly stored in a instance of the (11) Megafunction. The memory code is combined with FPGA (12) information in a(n) (13) file that is downloaded to the Cyclone chip by the Quartus (14) tool.

a) sof b) mif c) SCASM d) machine e) programming f) assembly g) SCOMP h) EPC6 i) altsyncram j) configuration k) simulator

  1. (15 points) Complete the transition table for the state machine that has the following equations. State A is when Q 1 Q 0 = 00, State B is when Q 1 Q 0 = 01, State C is when Q 1 Q 0 = 10, and State D is when Q 1 Q 0 = 11.

The table to the right may be

useful as a worksheet, but

you only get credit for what

appears in the table on the

answer sheet!!

For the next two questions, consider the following ASM code. Assume this has been assembled and run on SCOMP. Reminder: the SHIFT instruction shifts left if the operand is positive, and right if the operand is negative. ORG &H000 ;Begin program at x Start: LOAD A SHIFT 15 JNEG Neg LOAD PosSig JUMP Next Neg: LOAD NegSig Next: STORE B LOAD ZERO JZERO Done LOAD C Done: JUMP Done A: DW &H B: DW &H C: DW &H000C PosSig: DW &H000F NegSig: DW &HFFFF ZERO: EQU &H

  1. (5 points) What is stored in location โ€œBโ€ at the end of program (i.e., after it starts looping forever at โ€œDoneโ€)? a) &H b) &H000F c) &HFFFF d) &H e) Impossible to tell from the information given
  2. (5 points) Also at the end of the program, what is the value of the accumulator (AC)? a) &H b) &H c) &H000C d) Impossible to tell from the information given e) None of the above (the value can be determined, but it is not a, b, or c)