Home

True PCI User`s Manual

image

Contents

1. Table 3 7 LED assignment LED No Spartan 3 Pin LED1 P155 LED2 P154 LED3 P152 LED4 P150 Note DONE s LED monitors status in configuration process While Spartan 3 is configured DONE s LED should be bright When configuration Spartan 3 complete DONE s LED should be off 3 8 72 GPIOs True PCI provides 3 GPIO connectors CON6 CON7 and CONB8 and each connector have 24 bit GPIO pins Users can use all GPIOs both input and output All GP Os connect directly to Spartan lll and each GPIO pin supports only 3 3V tolerant input Users must carefully connecting GPIO pin to user s board The following table shows pin assignment from each GPIO connector to Spartan 3 True PCI User s Manual 9 PD0402 6 00 02E DESIGN GATEWAY Company Limited Table 3 8 Pin assignment at GPIO connector CON6 Pin No Spartan 3 Pin Pin No Spartan 3 Pin 1 5V 2 5V 3 P161 4 P162 5 P165 6 P166 7 P167 8 P168 9 P169 10 P171 11 P172 12 P175 13 P176 14 P178 15 GND 16 GND 17 P180 18 P181 19 P182 20 P185 21 P187 22 P189 23 P190 24 P191 25 P194 26 P196 27 P198 28 P199 29 GND 30 GND Table 3 9 Pin assignment at GPIO connector CON7 Pin No Spartan 3 Pin Pin No Spartan 3 Pin 1 5V 2 5V 3 P147 4 P146 5 P144 6 P143 7 P141 8 P140 9 P139 10 P138 11 P137 12 P135 13 P133 14 P132 15 GND 16 GND 17 P131 18 P130 1
2. PD0402 6 00 02E DESIGN GATEWAY Company Limited Table 3 3 Reset signal on True PCI Reset Signal Spartan 3 Pin PCI Reset P183 Reset Circuit P156 3 5 DIP switch SW1 True PCI provides 8 position DIP switch input This switch can set to a low or high logic level Table 3 4 shows logic level on 8 position DIP switch and table 3 5 shows pin assignment from 8 position DIP switch to Spartan 3 Table 3 4 Logic level defines on 8 position DIP switch DIP switch setting Logic Level ON Low OFF High Table 3 5 8 position DIP switch assignment Signal Name Spartan 3 Pin Description DIP8 P115 DIP switch input 8 DIP7 P114 DIP switch input 7 DIP6 P113 DIP switch input 6 DIP5 P111 DIP switch input 5 DIP4 P109 DIP switch input 4 DIP3 P108 DIP switch input 3 DIP2 P107 DIP switch input 2 DIP1 P106 DIP switch input 1 3 6 Push Button Switch PB1 and PB2 True PCI provides two push button switches to Spartan 3 Each push button switch generates active low signal The following table shows pin assignment from push button to Spartan 3 True PCI User s Manual PD0402 6 00 02E DESIGN GATEWAY Table 3 6 Push button switch assignment Push Button Spartan 3 Pin PB1 P149 PB2 P148 3 7 LE True PCI provides 4 LEDs for users Each LED is active low The following table shows pin assignment from LED to Spartan 3
3. 30 Ground True PCI User s Manual 20 PD0402 6 00 02E DESIGN GATEWAY Company Limited Table 4 4 Pin assignment on connectors CON7 Pin no Spartan 3 Pin UserInterface signal Description 1 5V 2 5V 3 P147 ExtData 23 External Data Bus bit 23 4 P146 ExtData 22 External Data Bus bit 22 5 P144 ExtData 21 External Data Bus bit 21 6 P143 ExtData 20 External Data Bus bit 20 7 P141 ExtData 19 External Data Bus bit 19 8 P140 ExtData 18 External Data Bus bit 18 9 P139 ExtData 17 External Data Bus bit 17 10 P138 ExtData 16 External Data Bus bit 16 11 P137 ExtData 15 External Data Bus bit 15 12 P135 ExtData 14 External Data Bus bit 14 13 P133 ExtData 13 External Data Bus bit 13 14 P132 ExtData 12 External Data Bus bit 12 15 3 Ground 16 Ground 17 P131 ExtData 11 External Data Bus bit 11 18 P130 ExtData 10 External Data Bus bit 10 19 P128 ExtData 9 External Data Bus bit 9 20 P126 ExtData 8 External Data Bus bit 8 21 P125 ExtData 7 External Data Bus bit 7 22 P124 ExtData 6 External Data Bus bit 6 23 P123 ExtData 5 External Data Bus bit 5 24 P122 ExtData 4 External Data Bus bit 4 25 P120 ExtData 3 External Data Bus bit 3 26 P119 ExtData 2 External Data Bus bit 2 27 P117 ExtData 1 External Data Bus bit 1 28 P116 ExtData 0 External Data Bus bit
4. 0 29 Ground 30 Ground True PCI User s Manual e212 PD0402 6 00 02E DESIGN GATEWAY Company Limited Table 4 5 Pin assignment on connectors CON8 Pin no Spartan 3 Pin UserInterface signal Description 1 5V 2 z 5V 3 P102 ExtGPIO 0 General Purpose Input Output bit 0 4 P101 ExtGPIO 1 General Purpose Input Output bit 1 5 P100 ExtGPIO 2 General Purpose Input Output bit 2 6 P97 ExtGPIO 3 General Purpose Input Output bit 3 7 P96 ExtGPIO 4 General Purpose Input Output bit 4 8 P95 ExtGPIO 5 General Purpose Input Output bit 5 9 P94 ExtGPIO 6 General Purpose Input Output bit 6 10 P93 ExtGPIO 7 General Purpose Input Output bit 7 11 P90 ExtGPIO 8 General Purpose Input Output bit 8 12 P87 ExtGPIO 9 General Purpose Input Output bit 9 13 P86 ExtGPIO 10 General Purpose Input Output bit 10 14 P85 ExtGPIO 11 General Purpose Input Output bit 11 15 Ground 16 7 Ground 17 P80 ExtGPIO 12 General Purpose Input Output bit 12 18 P81 ExtGPIO 13 General Purpose Input Output bit 13 19 P78 ExtGPIO 14 General Purpose Input Output bit 14 20 P77 ExtGPIO 15 General Purpose Input Output bit 15 21 P76 ExtCsB External Chip select signal active low level 22 P74 23 P72 24 P71 25 P68 26 P67 27 P65 28 P64 29 Ground 30 Ground Note When use
5. Pin No PCI Signal Name Spartan 3 Pin 1 INTA P197 2 INTB NC 3 INTD NC 4 INTC NC 5 PRSNT1 NC 6 PRSNT2 NC 7 RST P183 8 CLK P184 9 GNT P200 10 REQ P203 11 AD 31 P204 12 AD 30 P205 13 AD 29 P2 14 AD 28 P3 15 AD 27 P4 16 AD 26 P5 17 AD 25 P7 18 AD 24 P9 19 C BE 3 P10 20 IDSEL P11 21 AD 23 P12 22 AD 22 P13 True PCI User s Manual 5 PD0402 6 00 02E DESIGN GATEWAY Company Limited Table 3 1 Pin assignment on PCI connector CON2 continued Pin No PCI Signal Name Spartan 3 Pin Pin No PCI Signal Name Spartan 3 Pin 23 AD 21 P15 24 AD 20 P16 25 AD 19 P18 26 AD 18 P19 27 AD 17 P20 28 AD 16 P21 29 C BE 2 P22 30 FRAME P24 31 IRDY P26 32 TRDY P27 33 DEVSEL P28 34 STOP P29 35 LOCK NC 36 PERR NC 37 SDONE P31 38 SBO P33 39 SERR P34 40 PAR P35 41 C BE 1 P36 42 AD 15 P37 43 AD 14 P39 44 AD 13 P40 45 AD 12 P42 46 AD 11 P43 47 AD 10 P44 48 AD 9 P45 49 AD 8 P46 50 C BE 0 P48 51 AD 7 P50 52 AD 6 P51 53 AD 5 P52 54 AD 4 P57 55 AD 3 P58 56 AD 2 P61 57 AD 1 P62 58 AD 0 P63 NC this pin does not connect to Xilinx Spartan 3 Note 1 ACK64 and REQ64 signal use for 64 bit PCI slot 2 JTAG signal TRST TCK TMS TDO TDI from PCI slot do not connect to JTAG Connector 3 3 Clock Generator True PCI card can receive clock from 2 sources PCI Clock This clock
6. design with True PCI core 4 2 1 Userlnterface Block diagram Design Gateway Co Ltd provide example VHDL design with True PCI core This example VHDL is Userlnterface The following figure shown block diagram of example VHDL design Top Level TruePCl vhd LBAddr 14 2 PCI slot TruePClI core Userlnterface pciif382 ngc UserlInterface vhd ExtAddr 14 2 ExtData 31 0 ExtCsB ExtRdB ExtWrB ExtPBInt ExtUserInt ExtGPIO WriteLED 3 0 ReadDIP 7 0 Figure 4 5 Example VHDL Design Block Diagram Userlnterface is example VHDL design connecting with True PCI core This module manages signal between True PCI core and external signal The external signals are mapping to connector CON6 CON7 and CON8 and detail of external signals is True PCI User s Manual 16 PD0402 6 00 02E DESIGN GATEWAY Company Limited External Address ExtAddr 14 2 This external address bus is the same signal as local bus address External Data ExtData 31 0 This external data bus is bidirection Userlnterface control external data bus direction When read process Userlnterface reads data from external data bus ExtData and sends data to local bus input data LBDataln When write process Userlnterface write data from local bus output data LBDataOut to external data bus ExtData External Chip Select ExtCsB This external chip select is the same si
7. files before simulating the simulation model of PCI core 9 Synthesis PCI core On True PCl s CD there are example source codes of how to use PCI core The example codes are composed of TruePCl vhd and Userlnterface vhd TruePCl vhd is a top level module Userlnterface vhnd is a module that interfaces with PCI core These two source files show the example of how to use PCI core Users can modify both TruePCl vhd and Userlnterface vhd Anyway Design Gateway Co Ltd recommends modifying only Userlnterface vnd because it is more convenient for users True PCI User s Manual 30 PD0402 6 00 02E DESIGN GATEWAY Company Limited Note True PCI User s Manual 31 PD0402 6 00 02E DESIGN s GATEWAY Company Limited 54 BB Building 13 Floor Room No 1302 Sukhumvit 21 Rd Asoke Klongtoey Nua Wattana Bangkok 10110 Thailand Tel 662 261 2277 Fax 662 261 2290 www design gateway com
8. to address 0x0008 and use from bit O to bit 15 This registers uses with GPIO direction If GPIO direction set to input users can read 16 bit data True PCI User s Manual 18 PD0402 6 00 02E DESIGN GATEWAY Company Limited from GPIO pin at this register And if GPIO direction set to output users can write 16 bit data to GPIO pin at this register Each GPIO pins do not depend on each other Users can freely control each GPIO pin 4 DIP Switch registers These registers are established on the address 0x000C From LSB to MSB registers they are used to read the value of DIP Switch on the True PCl In example VHDL code Design Gateway provides source code and configuration file Users can use them without any modification FPGA folder in CD ROM contains Userlnterface vhd TruePCl vhd and Memory vhd is example source code file truepci ucf is pin assignment file truepci bit is configuration file for Soartan 3 XC3S200 PQ208 truepci mcs is configuration file for PROMs XCF01S PkTbPCIIF32 vhd PkTestBench vhd PkTestPattern vhd and ToTruePCl vhd is Test Bench file for simulation pciif32 vhd is True PCI core for simulation pciif32 ngc is True PCI core for synthesis and implement Both configuration files are map signal to connector CON6 CON7 and CON8 The following table shows pin assignment on connector CON6 CON7 and CON8 True PCI User s Manual 19 PD0402 6 00 02E DESIGN GATEWAY Company L
9. 9 P128 20 P126 True PCI User s Manual 10 PD0402 6 00 02E DESIGN GATEWAY Company Limited Table 3 9 Pin assignment at GPIO connector CON7 continued Pin No Spartan 3 Pin Pin No Spartan 3 Pin 21 P125 22 P124 23 P123 24 P122 25 P120 26 P119 27 P117 28 P116 29 GND 30 GND Table 3 10 Pin assignment at GPIO connector CON8 Pin No Spartan 3 Pin Pin No Spartan 3 Pin 1 5V 2 5V 3 P102 4 P101 5 P100 6 P97 7 P96 8 P95 9 P94 10 P93 11 P90 12 P87 13 P86 14 P85 15 GND 16 GND 17 P80 18 P81 19 P78 20 PY 21 P76 22 P74 23 P72 24 P71 25 P68 26 P67 27 P65 28 P64 29 GND 30 GND VCCO for connector CON6 and CON8 are fixed at 3 3V so output voltage from GPIO pin at connector CON6 and CONS is 3 3V VCCO for connector CON7 users can select from JP3 between 2 5V and 3 3V The following table shows VCCO jumper setting True PCI User s Manual 11 PD0402 6 00 02E DESIGN GATEWAY Table 3 11 VCCO jumper setting JP3 VCCO for JP3 CON7 1 2 2 3 2 5V Open Closed 3 3V Closed Open 3 9 JTAG Port True PCI provides JTAG connector that programs the on board PROM XCF01S and configures Spartan 3 XC3S200 Users can use download cable from Xilinx to program PROM and configure Spartan 3 In addition to download cable users can use JtagLink or Universal Download Cable from Design G
10. NG FligInterrestBit Interest bit Flag ULONG MskOffset Interrupt Mask Register s offset ULONG MskVal Interrupt Mask value UCHAR ClearFlagMode Clear interrupt flag mode UCHAR MaskMode Interrupt mask register mode ULONG CBFn PVOID PVOID PVOID Call back function for interrupt Return Value PVOID hHANDLE Device s handle Can open device Note In initial device function all parameter use with initial PCI system Design Gateway Co Ltd recommend users do not change this parameter If application can not access to True PCI card the return value equals NULL On the other hand if application can access to True PCI card the return value does not equal NULL True PCI User s Manual 26 PD0402 6 00 02E DESIGN GATEWAY Company Limited 2 Check Device Count Format UCHAR ChkDeviceCnt PCHAR pDevName Function Number of True PCI card Parameter PCHAR pDevName Device name want to check Return Value UCHAR Number of True PCI card In check device count function pDevName is InStepPciDrv Users do not change this name because this name is fixed 3 Read Register Format ULONG reg_read PVOID hHANDLE ULONG offset Function Read data from True PCI card Parameter PVOID hHANDLE Device s handle that returned from InitDevice ULONG offset Offset address Return Value ULONG Data value 4 Write Register Format VOID reg_wr
11. True PCI User s Manual Design Gateway Co Ltd Rev 1 1 PD0402 6 00 2E Please read this manual carefully before using True PCI DESIGN GATEWAY Company Limited Revision Date Revision History Detail of change 1 0 11 February 2005 1 1 6 May 2005 True PCI User s Manual Initial Release To update user interface code is able to read the DIP Switch s value and is able to display the output data on LED PD0402 6 00 02E DESIGN s GATEWAY Company Limited Table of Contents Tee ADO GUCTIONs cocine a E EA 1 1 SUMMARY FEALUlC neaei AN ER 1 2 Minimum System Requirement 0 ccc eeeceeteeeeeeeeeeeeteeeeeeeeetees 1 3 Software REQUIFEMEN Gini sicicccscecncededsvacavcdterodecnssbassaaccecadedatveaseunteceeds 1 4 Warranty PONCY srasni a i aa ogedeuaceustaabas anaes 1 5 Customer SUpPOSt ceceececee cece eeeeecneceeeeeeeeeeccneeeeeeeeeeeesnnsaeeeeees 2 TRUER E ESVE aE d ccctadates E E E hdag Beads E ne 3 Marware DescriplOn scissasussiicnaaemtetiiier a EEan 3 1 True PCL Startrt Kit DESCRIPUOM sssi 3 2 PC COMMECIOR vic aie actuate E a A A A ASE 3 3 COCK GENGatON sicierecattattsauedchoiehicd anise hectic 3 4 RESEUGCINCUIL date tig et face anda E dane cote tesa ea E EN 35 DIP GWAC SWI sascrsnsrcsndacacananeotcnacesacaas e ERES 3 6 Push Button Switch PB1 and PB2 sseeserieriiersererrirrreeserre S WED eee sa satas Coun seeeettate e E E E BO 72 GPI OS ceesr
12. ateway Co Ltd The following table shows JTAG connector pin assignment Table 3 12 JTAG pin assignment Pin No JTAG Signal Pin No JTAG Signal 1 TCK 2 GND 3 TDO 4 3 3V 5 TMS 6 7 DONE Optional 8 9 TDI 10 GND Note DONE signal on pin 7 is optional signal that is for JtagLink only not for other download cable JTAG Port a XC3S200 TDI Figure 3 4 True PCI JTAG Chain True PCI User s Manual 12 PD0402 6 00 02E DESIGN GATEWAY Company Limited 4 Firmware Description 4 1 True PCI Core Design Gateway Co Ltd provides 32 bit PCI core interface for Spartan 3 FPGA on True PCI card This PCI core manages signal between PC side PCI slot and users side local bus Figure 4 1 shows block diagram of PCI core PCI Slot PCI Signal True PCI Local Bus User s Design Core XC3S200 PQ208 Figure 4 1 Block Diagram of PCI Core True PCI core provides Local Bus that is standard memory interface So users do not need to know PCI protocol Users need to Know only local bus timing that provides in this manual Figure 4 2 shows signal s direction in local bus interface Spartan 3 XC3S200 13 bit Address Bus 32 bit Output Data Bus 32 bit Input Data Bus Chip select signal PCI Core User s Design Read signal ngc file Figure 4 2 Local Bus Interface True PCI User s Manual 13 PD0402 6 00 02E DESIGN GATEWAY Company Limited 13 bit A
13. consists of software and hardware Software is application True PCI DLL InstepPciDIl dll and Device Driver InstepPciDrv inf and InstepPciDrv sys Hardware is PCI core pciif32 ngc and user s design UserInterface vhd Design Gateway Co Ltd recommends users do not change DLL Device Driver and PCI core For application and FPGA user s design Users can design new one by reference from TruePCl exe and Userlnterface vhd True PCI User s Manual 3 PD0402 6 00 02E DESIGN GATEWAY Company Limited 3 Hardware Description Figure 3 1 shows True PCI starter kit and its feature JTAG Reset DONE 4 LED 2 Push Button DIP Switch External Port Switch LED Oscillator ta 3 GPIO Connector PCI Slot Spartan 3 FPGA Figure 3 1 True PCI Card 3 1 True PCI Startrt Kit Description A high level block diagram of True PCI Starter kit is shown in Figure 3 2 followed by a brief description of each section True PCI User s Manual 4 PD0402 6 00 02E DESIGN GATEWAY PCI Connector PCI Slot on PC 72 GPIOs Spartan lll XC3S200 4PQ208 LED External Oscillator Figure 3 2 Block Diagram of True PCI Starter Kit Push Button DIP Switch 3 2 PCl Connector This connector CON2 shows all signals from PCI slot The following table shows pin assignment on PCI connector Table 3 1 Pin assignment on PCI connector CON2 Pin No PCI Signal Name Spartan 3 Pin
14. d truepci mcs Test Bench PKTbPCIIF32 vhd PkTestBench vhd PkTestPattern vhd and ToTruePCl vhd Schematic TruePCIRev1_2 pdf Demo Application TruePCl exe Dynamic Link Library for Demo Application InStepPciDIl dll Application Source Code Device Driver InStepPciDrv inf and InStepPciDrv sys User s Manual PCI is a development PCI starter kit that provides a complete solution for design and application based on Xilinx Spartan 3 family The kit is suitable for users who is not familiar with PCI protocol but would like to connect user s board to PCI slot on computer True PCI utilizes 200 000 system gates Spartan 3 device XC3S200 High gate density and large number of GPIOs allow complete solutions to be implemented in advance design on FPGA True PCI card provides 72 I Os for general purpose input output GPIO This GPIO support both 2 5V and 3 3V input True PCI card has 4 LEDs 2 push buttons and an 8 Bit DIP Switch for general purpose 1 1 Summary Feature 1 Spartan 3 device 200 000 system gates XC3S200 a FR wo N 3 3V 32 bits 33MHz PCI Interface for PC slot based development JTAG configuration 72 General Purpose I O 4 LEDs indicator 2 Push Buttons switch and 1 8 bit DIP Switch True PCI User s Manual 1 PD0402 6 00 02E DESIGN GATEWAY Company Limited 1 2 Minimum System Requirement 1 Pentium Il or compatible processor recommend Pentium III RAM 128 MB recommend 256 MB W
15. ddress signal lbaddr 14 2 This is PCI address True PCI core provides PCI address from bit 2 to bit 14 because PCI data bus is 32 bit access When users access one time users can get 4 byte data 32 bit Input Data signal lbdatain 31 0 32 bit Output Data signal lbdataout 31 0 Read signal active low level lbrdb Write signal active low level lbwrb Chip Select signal active low level lbcsb Interrupt signal active high level Ibint Vender ID signal default value OxFOFO Device ID signal default value OxFOFO Local bus timing is shown in figure 4 3 and 4 4 In figure 4 3 a and b show local bus read timing and figure 4 4 a and b show local bus write timing Local Bus m e Ibaddr Ibdatain Ibdataout a Ibesb M Ibwrb Ibint Local Bus GR Ibaddr 0004 0008 Ge Ibdatain 000 fe lbdataout Ibesb Ibywrb Send Address Read Falling Edge 5 S Read Rising Edge 15675 ns Figure 4 3 Local Bus Read Timing True PCI User s Manual 14 PD0402 6 00 02E DESIGN GATEWAY Company Limited Local Bus Read Process Figure 4 3 shows read process at address 0x000C 0000 0000 0000 1100 In local bus address should be show address 0x0003 000 0000 0000 11 True PCI core send address 0x0003 to local bus address lbaddr after that 30 ns True PCI core force chip select signal and read signal to low level and hold at low level 60 ns before force chip select s
16. e Ie O OSS TARA iaaa E Peas ee 29 JTAG FOM erene ee E E ETa I E T e 4 FiimWare DESCIPUON eminin aE 4T Trie PCC ORG risvitac fanecitur sity eats hee vis sete betes a aaa 4 2 Example VHDL design with True PCI Core ccceceeeeecteeeeeeeetees 4 3 Vender ID and Device ID Changing c cccccececeteetetteeeteteetnnees 5 true PCl Demo Applicaton cennsa needelet ies 6 Function in Dynamic Link Library DL iis scscesactenitinecancandtuindsataannnedea Ol True PCI FUNCION scizcscsessvdrscccscnccseasaqadedicegssestsseladacaseaencaedaeneantecenes 6 2 Interrupt PrOCSSS isi axtacivsasestns fo naino aiarad ie iaia anria e ei 7 How to install Device Driver s essssssssessssssssssresreessreerererreererrerrrrerreren 8 Simulation model of PCI COG sisscscieciescdecsveraegevapnatlaainevend waranalasiesscaaeaens 9 Synthesis POICO Eieren A A NETE A A E True PCI User s Manual Il PD0402 6 00 02E DESIGN GATEWAY Company Limited 1 Introduction Thank you very much for purchasing True PCI Starter Kit Please check that all the following items are in the box If anything is missing or damaged contact your distributor or Design Gateway Co Ltd 1 True PCI Card 2 Users Manual 3 CDROM contains True True PCI core pciif82 ngc and pciif32 vhd Example VHDL source code Userlnterface vhd TruePCl vhd and Memory vhd Pin Assignment for example VHDL source code truepci ucf Configuration file truepci bit an
17. gnal as local bus chip select LBCsB External Read ExtRdB This external read signal is the same signal as local bus read signal LBRdB External Write ExtWrB This external write signal is the same signal as local bus write signal LBWrB External Push Button Interrupt ExtPBInt active low level This is an interrupt signal from push button PB2 External User s Interrupt active low level This interrupt signal receives from user s board by pin 23 on CONE External GPIO ExtGPIO 15 0 This is GPIO signal Users can read or write data to each GPIO that is free from others GPIO signal uses address 0x0004 to control GPIO direction and address 0x0008 for read write data Write LED WriteLED 3 0 These are signals used to control LED1 to LED 4 of True PCI Card Users are able to control them which writing the 4 last LSB the address 0x000C are defined for control data Read DIP Switch DIP Switch 7 0 These are reading signal used to read the input of DIP Switch Users are able to read the DIP Switch values through the address Ox000C Users can change VenderlD and DevicelD in this code While operate system both of ID must be fix value 4 2 2 Internal Register in Userlnterface In Userlnterface has 3 control register True PCI User s Manual 17 PD0402 6 00 02E DESIGN s GATEWAY Company Limited 1 Interrupt register This register maps to address Ox0000 in user s space In address 0x0000 Bi
18. ignal lbcsb and read signal lbrdb to high level again After chip select signal lbscb and read signal lbrdb hold in low level 30 ns True PCI core get data from Input Data Bus Ibdatain So it is mean data from users must be stable within 30 ns after chip select signal lbscb and read signal lbrdb go to low level Local Bus Ge ibaddr OOOO yo002 a A Ge Ibdatain 000000 00000000 m lbdataout iit mw lbcsb M Ibwrb Ibrdb bint Local Bus og Kaddi 0005 MA lbdatain O0 fe lbdataout mw ibcsb Ibwb lbrdb M bint Now Send ddress Send Data Write Falling Edge Write Rising Edge Figure 4 4 Local Bus Writes Timing Local Bus Write Process Figure 4 4 shown writes process at address Ox000C by value 0x00007777 True PCI core sends address 0x0003 to local bus address lbaddr and after 1 ns sends data 0x00007777 to local output data bus lbdataout after 29 ns True PCI core force chip select signal lbcsb and write signal lbwrb to low level and hold at low level 60 ns before force chip select signal lbcsb and write signal True PCI User s Manual 15 PD0402 6 00 02E DESIGN GATEWAY Company Limited lowrb to high level again Users can get data while chip select signal Ibcsb and write signal lbwrb stay at low level Design Gateway Co Ltd provides True PCI core in ngc file pciif82 ngc in CD ROM This file can be added into ISE software from Xilinx 4 2 Example VHDL
19. imited Table 4 3 Pin assignment on connectors CON6 Pin no Spartan 3 Pin UserInterface signal Description 1 5V 2 5V 3 P161 ExtData 31 External Data Bus bit 31 4 P162 ExtData 30 External Data Bus bit 30 5 P165 ExtData 29 External Data Bus bit 29 6 P166 ExtData 28 External Data Bus bit 28 7 P167 ExtData 27 External Data Bus bit 27 8 P168 ExtData 26 External Data Bus bit 26 9 P169 ExtData 25 External Data Bus bit 25 10 P171 ExtData 24 External Data Bus bit 24 11 P172 ExtRdB External Read signal active low level 12 P175 ExtWrB External Write signal active low level 13 P176 ExtAddr 14 External Address Bus bit 14 14 P178 ExtAddr 13 External Address Bus bit 13 15 Ground 16 z Ground 17 P180 ExtAddr 12 External Address Bus bit 12 18 P181 ExtAddr 11 External Address Bus bit 11 19 P182 ExtAddr 10 External Address Bus bit 10 20 P185 ExtAddr 9 External Address Bus bit 9 21 P187 ExtAddr 8 External Address Bus bit 8 22 P189 ExtAddr 7 External Address Bus bit 7 23 P190 ExtUserlnt External User Interrupt active low level 24 P191 ExtAddr 6 External Address Bus bit 6 25 P194 ExtAddr 5 External Address Bus bit 5 26 P196 ExtAddr 4 External Address Bus bit 4 27 P198 ExtAddr 3 External Address Bus bit 3 28 P199 ExtAddr 2 External Address Bus bit 2 29 Ground
20. indows XP or Windows 2000 gt A N 3 3V 32 bits 33MHz PCI slot 1 3 Software Requirement 1 Xilinx ISE webpack for FPGA designer 2 Model Sim for FPGA designer 3 Microsoft Visual Studio NET Visual C NET for application designer 1 4 Warranty Policy 1 Product warranty is valid for 6 months from purchasing date 2 Warranty is void if any modification has been made to this product and any incorrect operation from this manual or warranty sticker is torn or damaged 3 In order to claim for product exchange or technical support within warranty period official receipt is required for unregistered customer as an evidence of purchasing whereas official receipt is unnecessary for registered customer please fill up registration card attached herewith the product and send back to Design Gateway Co Ltd 1 5 Customer Support Customer can contact to support design gateway com for support of any problem about True PCI or visit our website at www design gateway com True PCI User s Manual 2 PD0402 6 00 02E DESIGN s GATEWAY Company Limited 2 TruePCl System Application TruePCl exe DLL InstepPciDIl dll Device Driver InstepPciDrv inf InstepPciDrv sys Software Ba EET EEA ey ee ag et ee E E PCI slot Hardware Kuebe ee PCI Core pciif32 ngc User design User nterface vhd ee ee Hardware Use s board Figure 2 1 True PCI System From above flowchart True PCI system
21. is generated from PC via PCI slot It is running at 33 MHz External Clock On True PCI card provide oscillator socket OSC1 Users can use both half size and full size oscillator This socket support only 3 3V oscillator True PCI User s Manual 6 PD0402 6 00 02E DESIGN GATEWAY Company Limited The following table shows master clock assignment on True PCI card Table 3 2 Masters clock assignment on True PCI card Clock Generator Spartan 3 pin PCI Clock P184 External Clock P79 3 4 Reset Circuit True PCI can receive reset signal from 2 sources PCI Reset This reset signal is generated from PC via PCI slot Normally this signal is reset when turn on PC External Reset This reset signal is generated from external reset circuit The reset circuit will monitor 3 3V on True PCI When the 3 3V falls below 2 7V this circuit will assert reset signal low logic level to Spartan 3 In addition to monitoring 3 3V the reset circuit can generate reset pulse by press reset button on True PCI The reset signal is a fixed 230 ms active low pulse The following figure shows reset signal timing diagram Voltage A Supply Voltage 4 Detector Voltage Manual Reset Reset Button Reset Signal gt Time 230 ms Figure 3 3 Reset Signal Timing Diagram True PCI User s Manual
22. ite PVOID hHANDLE ULONG offset ULONG val Function Write data to True PCI card Parameter PVOID hHANDLE Device s handle that returned from InitDevice ULONG offset Offset address ULONG val Data value Return Value 5 Exit Device Format VOID ExitDevice PVOID hHANDLE Function Disconnect to True PCI card Parameter Return Value True PCI User s Manual 27 PD0402 6 00 02E DESIGN s GATEWAY Company Limited 6 2 Interrupt Process After users enable external interrupt write data 0x00000002 to address 0x0000 True PCI core will wait for external interrupt signal When external interrupt occurred True PCI core will set interrupt flag address Ox0000 bitO After windows detect interrupt flag that was be set Windows will create interrupt event sent to application and clear interrupt flag in True PCI core When application receives interrupt event it will call CallbackFunction Which means CallbackFunction is interrupt service routine In example code CallbackFunction counts number of interrupt occurred and shows number at Interrupt Count 7 How to install Device Driver Please follow these steps to install True PCI device driver 1 Turn off PC and then install True PCI card into PCI slot 2 After turn on PC Found New Hardware Wizard dialog figure 7 1 will be occurs Please select Install from a list or specific location Advanced and click at Nex
23. l Studio NET Figure 5 1 shows True PCI demo application True PCI User s Manual 23 PD0402 6 00 02E DESIGN GATEWAY Company Limited i Truer lx m Checking Device Count Device Count 0 Interrupt Count 0 m Initialize Close Device Device Name InStepPciDry 1 OpenDev GloseDey m Read Write Register Offset Hex 0000 Read Write Value Hex Figure 5 1 True PCI Demo Application True PCI demo application has 3 main controls 1 Checking Device Count Users can check how many True PCI card do install on user s PC by press ChkDevCnt button and True PCI demo application will display count number of True PCI card on Device Count And Interrupt Count use for count external interrupt Initialize Close Device This main control use for open device and close device Users should open device press OpenDev button before access True PCI card and close device press CloseDev button before closing demo application If users do not open device users can not access True PCI card Read Write Register This main control reads or writes register Offset means offset address from PCI base address normally BIOS controls base address by itself On True PCI card Users can use address 0x0000 to Ox 7FFF For address Ox8000 to OxFFFF reserve for PCI system register Design Gateway Co Ltd do not guarantee any problem If use
24. oftware you are installing for this hardware InStep PCI Driver has not passed Windows Logo testing to verify its compatibility with Windows XP Tell me why this testing is important Continuing your installation of this software may impair or destabilize the correct operation of your system either immediately or in the future Microsoft strongly recommends that you stop this installation now and contact the hardware vendor for software that has passed Windows Logo testing STOP Installation Figure 7 3 Click at Continue Anyway 5 In finish dialog figure 7 4 please click at Finish to complete install device driver process Found New Hardware Wizard Completing the Found New Hardware Wizard The wizard has finished installing the software for InStep PCI Driver A Click Finish to close the wizard lt Back ish a Cancel Figure 7 4 Finish install device driver True PCI User s Manual 29 PD0402 6 00 02E DESIGN GATEWAY Company Limited 8 Simulation model of PCI core For simulating the simulation model of PCI core this requires simprim library For Xilinx ISE Webpack version 6 3 the source files of simprim library are located at C Xxilinx vhdl src simprims The source files are composed of simprim_Vpackage_mti vhd simprim_Vcomponents_mti vhd simprim_VITAL_mti vhd Please create library simprim and compile these source
25. rs access address in this range In read access Users can fill offset address to Offset Hex and press Read button True PCI demo application read data from address and show data in Value Hex In write access Users can fill offset address to Offset Hex and fill data to Value Hex after that press Write button True PCI demo application will send data to address True PCI User s Manual 24 PD0402 6 00 02E DESIGN GATEWAY Company Limited Note True PCI demo application supports access True PCI only 1 card If users installs True PCI more than 1 card this application will not support additional cards True PCI User s Manual 25 PD0402 6 00 02E DESIGN GATEWAY Company Limited 6 Function in Dynamic Link Library DLL Design Gateway Co Ltd provides function library in DLL module InStepPciDIl dll Users can include DLL module to user s project and develop application based on example application 6 1 True PCI Function 1 Initial Device Format InitDevice PCHAR pDevName UCHAR DevNo ULONG FlagOffset ULONG FlglInterrestBit ULONG MskOffset ULONG MskvVal UCHAR ClearFlagMode UCHAR MaskMode ULONG CBFn PVOID PVOID PVOID Function Initial True PCI card Parameter PCHAR pDevName Device name UCHAR DevNo Device number ULONG FlagOffset Interrupt Flag Register s offset ULO
26. rs use GPIO JP3 should be set to 3 3V recommended True PCI User s Manual A PD0402 6 00 02E DESIGN GATEWAY Company Limited 4 3 Vender ID and Device ID Changing Vender ID and Device ID of True PCI are fixed to OxFOFO however users can change both of them If users want to change Vender ID and Device ID users must change in Userlnterface vhd near Output Assignment and in InStepPciDrv inf in this line InStepPciDrv InStepPciDrv Install PCI VEN_FOFO amp DEV_FOFO Vender ID Device ID in InStepPciDrv inf and Vender ID Device ID in Userlnterface vhd must have same value If these values are not the same application can not access to True PCI core 4 4 The True PCI configuration For the FPGA configuration on True PCI it directly impacts to the Base address of the True PCI card which its configuration is disappeared From this event True PCI software is unable to read or to write the data from True PCI Card therefore users necessitates to restart the machine after reconfiguration 5 True PCI Demo Application TruePCl exe is demonstration application to access read write data to True PCI card Users can use this application without modification of application On the other hand users can develop new application with reference from True PCI demo application This application is developed on Visual C NET So Design Gateway Co Ltd recommends users to develop application on Microsoft Visua
27. t Found New Hardware Wizard Welcome to the Found New Hardware Wizard This wizard helps you install software for InStep PCI Driver If your hardware came with an installation CD lt gt or floppy disk insert it now What do you want the wizard to do Install the software automatically Recommended Click Next to continue Figure 7 1 Found New Hardware Wizard dialog 3 In select location of device driver dialog figure 7 2 please select X DeviceDriver X is CDROM drive and click at Next True PCI User s Manual 28 PD0402 6 00 02E DESIGN GATEWAY Company Limited Found New Hardware Wizard Please choose your search and installation options Nans g Search for the best driver in these locations Use the check boxes below to limit or expand the default search which includes local paths and removable media The best driver found will be installed I Search removable media floppy CD ROM JV Include this location in the search JENDeviceD river v Browse C Dont search will choose the driver to install Choose this option to select the device driver from a list Windows does not guarantee that the driver you choose will be the best match for your hardware ea E cs Figure 7 2 Select location of device driver 4 In warning dialog figure 7 3 please click at Continue Anyway Hardware Installation A The s
28. t 1 is interrupt enable bit O is interrupt flag and another bit do not use The following table shown description of interrupt register Table 4 1 Interrupt Register Bit Logic Level Descriptions 0 disable external interrupt 1 enable external interrupt 0 no external interrupt occurred 1 external interrupt occurred Users can enable interrupt register by writing data 0x00000002 to address 0x0000 On the other hand users can disable interrupt register by writing data 0x00000000 to address 0x0000 When external interrupt occurred bit O at address 0x0000 is set to high level logic 1 Users can clear this interrupt by writing data 0x00000002 to address 0x0000 Note Users can clear external interrupt all time although external interrupt is disable Design Gateway Co Ltd recommends users to use address 0x0000 for interrupt register because in device driver map address Ox0000 for external interrupt When external interrupt occurred device driver will automatically get and clear external interrupt Userlnterface receives external interrupt from 2 sources External Push Button Interrupt ExtPBlInt and External User s Interrupt ExtUserInt 2 GPIO direction register This register maps to address 0x0004 and use from bit 0 to bit 15 The following table shows GPIO direction Table 4 2 GPIO Direction Logic Direction 0 Input 1 Output 3 GPIO data register This register maps

Download Pdf Manuals

image

Related Search

Related Contents

Thomson 40E91NF32 40" Full HD Black LCD TV    PREPARATION  DE 00 Einband - Triumph Needle Ltd    CP-X2530WN/CP-X3030WN  User Manual - Glasgow Experimental Particle Physics Internal  GDR  ガンコなシミや腐食の原因になります。  HP LaserJet 3800dtn Printer  

Copyright © All rights reserved.
Failed to retrieve file