Class Note for ECE 480 with Professor Jackson at UA-Digital Systems Design
Class Note for ECE 480 with Professor Jackson at UA-Digital Systems Design
Popular in Course
Popular in Department
This 3 page Class Notes was uploaded by an elite notetaker on Friday February 6, 2015. The Class Notes belongs to a course at University of Alabama - Tuscaloosa taught by a professor in Fall. Since its upload, it has received 27 views.
Reviews for Class Note for ECE 480 with Professor Jackson at UA-Digital Systems Design
Report this Material
What is Karma?
Karma is the currency of StudySoup.
You can buy or earn more Karma at anytime and redeem it for class notes, study guides, flashcards, and more!
Date Created: 02/06/15
Digital Systems Design SOPC Builder and NIOS ll Hardware Development Electrical amp Computer Engineering Dr D J Jackson Lecture 14 1 Architecture of SOPC Builder Systems An SOPC Builder component is a design module that SOPC Builder recognizes and can automatically integrate into a system SOPC Builder connects multiple components together to create a toplevel HDL file called the system module SOPC Builder generates Avaon switch fabric that contains logic to manage the connectivity of all components in the system Electrical amp Computer Engineering Dr D J Jackson Lecture 14 2 Example of a System Module Generated by SOPC Builder Ethernet PHY Chip Ethernet MAB 32bit master component System Module Processor 32bit master component oustnrn Logic 64bit master componen Avalon Swilan Fahrii Flash SRAM SDFlAM RS232 Chip Chip Chip Electrical amp Computer Engineering Dr D J Jackson Lecture 14 3 Avalon Switch Fabric Block Diagram Example m Processor Conliol Instruction Data DMA Conlrnller W 7 Read Write 4 WI l 4 Avalon Mtlx 1 SWilEIl f 9 Fabric i ohm Wm T T V TVISlala arms 8 iii 5 r 1 Inxlmulloii oala SDHAM y y Mumorv Marnan cnntrniiar a s Etnrrmet Flash Mmuv Memory snip cup SDFIAM Chip gt Wnle Dara amp Control Signals Avalon MES PM gt Read Data gt intenace to DNrChlp strce 3390 Slave P0quot Electrical amp Computer Engineering Dr D J Jackson Lecture 14 4 SOPC Builder Components SOPC Builder components are the building blocks of the system module SOPC Builder components use the Avalon interface for the physical connection of components SOPC Builder is used to connect any logical device either onchip or offchip that has an Avalon interface The Avalon interface uses an addressmapped readwrite protocol that allows master components to read andor write any slave component Electrical amp Computer Engineering Dr D J Jackson Lecture 14 5 SOPC Builder Components continued A component can be a logical device that is entirely contained within the system module such as a processor A component can act as an interface to an offchip device such as an SRAM interface component In addition to the Avalon interface a component can have other signals that connect to logic outside the system module NonAvalon signals can provide a specialpurpose interface to the system module such as the Ethernet MAC Electrical amp Computer Engineering Dr D J Jackson Lecture 14 6 User Defined Components SOPC Builder provides a method to develop and connect userde ned components With the Avalon interface userde ned logic need only adhere to a simple interface based on address data read enable and writeenable signals Design ow to integrate custom logic into an SOPC Builder system 7 Defme tne lnterface to tne usersdefll39led component 7 lftne component loglc resldes onschlp wnte HDL flles descnplng tne component m eltner yenlog HDL or VHDL 7 Use tne SOPC Bullder component edllorwlzard to speclfytne mterface and optlonally package your HDL flles lnto an SOPC Bullder component 7 lnstantlate your component ll l tne same manneras otner SOPC BulldefReady components zlaonca AcomvmerEnglnaerlng Dr D J Jackson La urelAT Avalon Switch Fabric The Avalon switch fabric is the glue that binds SOPC Buildergenerated systems together The Avalon switch fabric is the collection of signals and logic that connects master and slave components including address decoding datapath multiplexing waitstate generation arbitration interrupt controller and datawidth matching SOPC Builder generates the Avalon switch fabric automatically so that you do not have to manually perform the tedious errorprone task of connecting hardware modules acctnca AcumvmaEnglnasrlng Dr D J Jansen La urelAB Functions of SOPC Builder Defining amp Generating the System Hardware GUIbased Creating a Memory Map for Software Development Creating a Simulation Model amp Testbench zlaonca AcomvmerEnglnaerlng Dr D J Jackson La urelAS Defining amp Generating System Hardware SOPC Builder GUI allows for defining the structure of a hardware system and generating the system The GUI is designed for the tasks of adding components to a system configuring the components and specifying how they connect together SOPC Builder generates the Avalon switch fabric and output the HDL files that describe the system acctnca AcumvmaEnglnasrlng Dr D J Jansen La urem 1D Defining amp Generating System Hardware continued During system generation SOPC Builder outputs the following items 7 Arl HDL flle for tne topslevel system module and foreacn component ll l tne system 7 A Block Symbol Flle bsf representatlon oftne topslevel system module foruse ll l Quartus ll Block Dlagram Flles bdf s Optlonal Software flles forempedded software development sucn as a memorysmap neader flle and component dnyers s OptlonalTestpencn for tne system module slmulatlon protect flles After you generate the system module it can be compiled directly by the Quartus II software or instantiated in a larger FPGA design zlaonca AcomvmerEnglnaerlng Dr D J Jackson La urelAM Creating a Memory Map for Software Development For each microprocessor in the system SOPC Builder optionally generates a header le that de nes the address of each slave component In addition each slave component can provide software drivers and other software functions and libraries for the processor The process forwriting so ware forthe system depends heavily on the nature ofthe processor in the system 7 Forekample NlOS ll processor systems use NlOS ll processors speclflc software development tools 7 Tnese tools are separate from SOPC Bullder but tney do use tne output ofSOPc Bullderas tne foundatlon for software development Dr D J Jansen Lecturele acctnca c conoua Enonoonng SOPC Builder Getting Started One of the easiest ways to get started using SOPC Builder is to read the NIOS ll Hardware Development Tutorial Stepbystep guide for building a microprocessor system including CPU memory and peripherals Electrical amp Computer Engineering Dr D J Jackson Lecture 14 13 Starting SOPC Builder Each SOPC Builder system is associated with one Quartus II project Therefore to launch SOPC Builder you must first open a project in the Quartus II software Create a new Quartus II project rpds17 for example Create a top level BDF file for the design rpds17bdf Import pin assignments from de2qsf from the DVD If an SOPC Builder system does not exist in the current Quartus II project directory SOPC Builder will display the Create New System dialog and prompt you to specify A name for the new SOPC Builder system nios32 for example Target HDL This setting determines the output language of the system module Electrical ampComputer Engineering Dr D J Jackson Lecture 14 14 Starting SOPC Builder SOPC Builder saves files in the same directory as the Quartus II project Each SOPC Builder system is represented by a file named ltsystem module namegtsopc which describes the structure of the system and other systemspecific details In a purely mechanical sense the SOPC Builder GUI is a sopc file editor Elements of the SPOC Builder System Target Create new component NM P EEEEEE 7 Device may Eyflone u Electrical amp Computer Engineering Dr D J Jackson Lecture 14 15 Electrical ampComputer Engineering Dr D J Jackson Lecture 14 16 Device Programming After System Generation the output HDL files must be Compiled into a programming file pof or sof or Integrated into a larger design for subsequent compilation 0 This is the approach Hamblen uses in textbook examples 0 A bsf file describing the system NIOS II in our case is integrated with other symbols in a schematic design file for compilation and subsequent download to the device Other typical components to include would be a PLL component Portspins IN and OUT for device pin assignments Electrical amp Computer Engineering Dr D J Jackson Lecture 14 17
Are you sure you want to buy this material for
You're already Subscribed!
Looks like you've already subscribed to StudySoup, you won't need to purchase another subscription to get this material. To access this material simply click 'View Full Document'