LAB 3 Finite State Machines On XilinxOVERVIEWThings to do before labCopy Lab 2Xilinx IODebounce CircuitThe Debounce CircuitThe interface has been done for youTA library suggestionImplementationImplementaion TipDownloading CircuitCommunication ProblemsTest CircuitMore Test CircuitLAB 3Finite State Machines On XilinxMike LoweyOVERVIEW Schematics capture and simulation (lab 2) Add IO interface components Map netlists to implementation Download circuits to Xilinx board DebuggingThings to do before lab Have a working version of lab 2 Make sure that the necessary signals are in BUS form. Finish the prelab questions for lab 3Copy Lab 2 Open Lab 2 Go to FILE->COPY PROJECT and resave Lab 2 as Lab 3 Open the new Lab3 project Now you can build on it.Xilinx IO Interface components IPAD OPAD BUFG OBUF IBUF Debounce circuit ensures ENTER and RESET go high for exactly one clock cycleDebounce Circuit After pressing a mechanical switch once, without debouncing the arcing between the two contacts might “make or break” the connection several times before it settles into the desired position. This can result in erratic behavior in the circuit.The Debounce CircuitThe interface has been done for you You DO NOT need to do you own interface for lab 3You DO need to add the library under u:\cs150 to your projectsThe name of the library is “Library”A macro called IO contains all of he interface components you need for the lab.TA library suggestion PROBLEM: When you try to access the library there are access problems This happens when too many people try to access the file at onceYou should COPY the library to your own directory BEFORE you add it.Implementation Open the project window and click on implementation If implementation is successful, the PROGRAMMING block turns black.Implementaion Tip If you want to reimplement, it is a good idea to clear the implementaion data from the last implementation. This is done in PROJECT->CLEAR IMPLEMENTATION DATA on the Project Manager screen.Downloading Circuit Power up the board Attach the Xchecker cable Be careful of the orientation of the cable and the delicate pinsClick on the programming box in the Project Manager (below implementation) When the window pops up, choose Hardware DebuggerCommunication Problems Make sure that the board has power Make sure that the Xchecker is hooked up correctly Make sure that the cable is configured correctly. It should be Xchecker on Com1.Test Circuit The NUMLED on the right displays the state of the FSM NUMLED displays the state in hex State only has 3 bits, but hex needs 4 bits. State3 (MSB) is wired to ground.More Test Circuit Make sure that sw4-7 is closed. Start the clock in the Hardware Debugger Watch the internal signals in the Hardware
View Full Document