2.4.2.A Programming Tutorial - Digital Electronics
Activity 2.4.2 Introduction to Programmable Logic Devices: Programming Tutorial (DLB/Xilinx 12.4)IntroductionWhen circuit designs become too large or complex to realistically breadboard, designers often use a Programmable Logic Device to (PLD) to prototype and test a circuit. A PLD is an integrated circuit whose logic function is user-configurable. Unlike discrete logic gates such as the AND, OR, NAND, and NOR gates, whose functionality is fixed when they are manufactured, a PLD must be programmed prior to being used.The first user-configurable PLD was introduced in 1978. This PLD was called a Programmable Array Logic (PAL), and it contained 24 user input/output signals. Over the three decades since the PAL was first introduced, the complexity of the devices and level of integration has increased significantly. The current state-of-the-art for PLDs is the Field Programmable Gate Array (FPGA). It contains 232 user input/output signals. In this activity you will learn how to use the Circuit Design Software (CDS) and the Xilinx Programming Software (XPS) to program the Field Programmable Gate Array (FPGA) on the Digital Logic Board (DLB).EquipmentThese instructions assume that all necessary software has been installed and configured by your teacher in the DE classroom. If you are not in a DE classroom environment, and you wish to install all software associated with the Digital Logic Board (DLB), please refer to the DMS Startup Instructions v2014.354901520066000 Digital Logic Board (DLB)Hardware Platform: Digital Logic Board (DLB)Circuit Design Software (CDS): Multisim 12.0.1Xilinx Programming Software (XPS): NI LabVIEW FPGA Xilinx 12.4 SP1 ToolsNote: Xilinx 12.4 is used to create a bit file and load it to the FPGA. It is not necessary to open Xilinx tools to load the FPGA using this process outlined in this document. See DMS Startup Instructions v2014 for full classroom install guide.Note: Xilinx does not currently support Windows 8.Digital Logic Board (DLB) Transfer → Export to PLD ProcessPart 1: Setting up the CDS (Multisim) in PLD Mode Start the CDS.Select: Options → Global Preferences.Select: Options → Global preferences → Paths → Miscellaneous → Xilinx tool path.Make sure the Xilinx tool path is set to C:\NIFPGA\programs\Xilinx12_4\ISENote: Your instructor may have a different path they wish you to navigate to.Select: Apply. Select: OK. Note: If your classroom supports both the Digital Logic Board (DLB) and Digital MiniSystem (DMS), you will need to check this path in Global Preferences to make sure the correct Xilinx Software is selected. See Page 8.Create a new folder and name it “Tutorial”. Make sure this folder is in a location students typically have access to if using a computer that does not have full admin rights. Select: File → New → PLD Design. This will open the PLD Wizard.New PLD Design – Step 1 of 3:Select: Use standard configuration Select: NI Digital Electronics FPGA BoardSelect: NextNew PLD Design – Step 2 of 3:PLD Design name: Name this file “Tutorial”. Note: Numbers, spaces, and some special characters are not accepted in file names by the XPS, which you will use later in this tutorial. Select: Next.New PLD Design – Step 3 of 3:For this example we will program a simple OR GATE. Select: “Uncheck all” and then individually select the desired connectors. Use BTN0, BTN1, and LED0. Select: Finish.The CDS will open a sheet in PLD mode with two port connectors on the left (the buttons) and one on the right (the LED). It is possible to change the port connectors after closing the PLD wizard. To remove a port connector, simply delete it. To add a port connector, select Place → Connector. Then choose the appropriate connector for the design. Port connector names and functions (Mode) can be changed by right-clicking a connector and choosing Properties. The error that follows a change can be ignored by selecting YES.Part 2: Simulating a PLD Mode Design in the CDS (Multisim)The PLD design mode possesses a different list of components; the components from one mode do not work in the other. You can however use the simulation feature within PLD Mode to test whether the circuit is working before programming the ponents are found and placed in PLD Mode the same way they were in Design Mode. The PLD logic components available are generic and therefore do not have part numbers. To place an OR gate: Select: PLD Logic → OR2To place inputs for simulation: Select: Sources → INTERACTIVE_DIGITAL_CONSTANT.To place an output for simulation: Select: Indicators → ProbeSave the circuit to the Tutorial project folder you created. Select: Simulation switch to run the simulation and test the circuit before exporting it to the PLD.Part 3: Exporting the Design to the PLD Module.Your DLB should be connected via USB to the computer and power supplied to it.Having verified your gate is working Select: Transfer → Export to PLD. As long as there are no errors, this will open the PLD Export dialog box. PLD Export – Step 1 of 2Select: Program the connected PLD. The save box should have a check mark in it.Select: NextPLD Export – Step 2 of 2Xilinx tool:Under the Xilinx tool drop down menu Select: Xilinx ISE Design Suite 12.4 32-Bit or Xilinx ISE Design Suite 12.4 64-Bit 3246120188785500171450042418000Programming file: Select: Browse. Set your location for the programming file if you are not already there.PLD part number: The PLD part number will auto-populate.Advance settings: Xilinx user constraint files (*.ufc): Under the advanced settings select the button on the right side “three dot box” of the Xilinx user constraint files row and set path to C:\Program Files\National Instruments\Circuit Design Suite 12.0\pldconfigSelect: “DEFB.ufc” from pldconfig folder.Select: Open Allow unmatched LOC constraints: Yes.Select: FinishIf errors occur, tell your teacher so that steps can be taken to check for proper installation of driver, Multisim, and Xilinx software.If the device is not found:check that the USB cable is connected.check user constraint path under PLD export Step 2.check the Xilinx tool path under Global Settings.check your Device Manager to see if “Digilent USB Device” is found.Exporting to the PLD will take several minutes. Test the OR GATE on the PLD.Classrooms Using Both Hardware Platforms (DMS and DLB)If your classroom is using both hardware platforms (The Digital MiniSystem and the Digital Logic Board), you will need to check that the CDS is pointing to the correct version of Xilinx, the correct drivers, and the correct user constraint file each time you “Transfer →Export to PLD”. The following is a summary of settings you should check if you are having trouble transferring the project to the PLD.If only using one hardware option you may disregard the optional information provided.Digital MiniSystem (DMS) OptionGlobal SettingsOptions → Global preferences → Paths → Miscellaneous → Xilinx tool pathC:\NIFPGA\programs\Xilinx14_4\ISETransfer →Export to PLS SettingsXilinx tool: “Xilinx ISE Design Suite 14.4 (32-bit or 64-bit) (Unsupported)”Xilinx user constraint file: “Digilent C-mod S6.ucf”Digital Logic Board (DLB) OptionGlobal SettingsOptions → Global preferences → Paths → Miscellaneous → Xilinx tool pathC:\NIFPGA\programs\Xilinx12_4\ISETransfer →Export to PLS Settings”Xilinx tool: “Xilinx ISE Design Suite 12.4 (32-bit or 64-bit)”Xilinx user constraint file: “DEFB.ucf”ConclusionLook up the names and definitions for the following programmable logic acronyms:PLD:PAL:GAL:CPLD:FPGA:The evolution of programmable logic devices from the simple PALs of the late 1970s to the FPGAs of today is a classic example of Moore’s Law. What is Moore’s Law? ................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related searches
- java programming tutorial for beginners
- java programming tutorial pdf
- java programming tutorial pdf free
- java programming tutorial pdf 2019
- beginner java programming tutorial pdf
- object oriented programming tutorial pdf
- int 1 x 2 4 2 dx
- visual basic programming tutorial pdf
- introduction to digital electronics pdf
- digital electronics textbook pdf
- digital electronics tutorials pdf
- digital electronics book pdf