




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





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
CD AB 00 01 11 10
00
01
11
10
(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.
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;
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
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