Home

SIS3150USB USB2.0 to VME Interface with optional TigerSHARC(s

image

Contents

1. VME offset TS2 Memory Space TS1 offset TS2 offset 0x03000000 Block 0 0x02000000 0x00000000 to 16 KLWord 64 KByte to to Ox0300fffc program code data 0x02003fff 0Ox00003fff 0x03010000 Block 0 0x02004000 0x00004000 to 48 KLWord 192 KByte Bo TO 0x0303fffc 0Ox0200ffff Ox0000ffff free user buffer 0x03200000 Block 1 0x02080000 0x00080000 to 16 KLWord 64 KByte to to 0x0320fffc program code data 0x02083fff 0x00083fff 0x03210000 Block 1 0x02084000 0x00084000 to 48 KLWord 192 KByte o re 0x0323fffc free user buffer 0x0208ffff 0Ox0008ffff 0x03400000 Block 2 0x02100000 0x00000000 to 16 KLWord 64 KByte to to 0x0340fffc 0x02103f ff 0Ox00003f ff program code data 0x03410000 Block 2 0x02104000 0x00004000 to 48 KLWord 192 KByte EO O 0x0343fffc free user buffer 0x0210ffff Ox0000ffff 7 3 SDRAM Memory Space VME offset Buffer TS1 offset TS2 offset 0x04000000 0x04000000 0x04000000 to 64Mbyte SDRAM tO ES 007fffffc Ox04FFFFFF Ox04FFFFFF Page 35 of 73 SIS Documentation SIS3150USB SIS GmbH USB2 0 to VME interface VME 8 Tiger SHARC Host Space The TS Host Space is defined from address 0x1000 0000 to Oxffff ffff 8 1 TigerSHARC VME Master Space The TS VME Space is defined from 0x1000 0000 to Ox1 fff ffff Access is D64 always A command is initiated by D64 write cycle The lower 32 data bits D31 0 hold the write datum don t care on read the upper 32 data bits D63 32 hol
2. Page 62 of 73 SIS Documentation SIS3150USB SIS GmbH USB2 0 to VME interface VME 14 9 Switch S80 Selection of VME Slave Address Mode and selection of reset features 12 345678 O 3 we OFF S80 1 Enable VME Slave A32 Addressing S80 2 reserved S80 3 Enable VME Slave Geographical Addressing S80 4 reserved S80 5 Enable ON or Disable OFF FPGA Watchdog S80 6 Enable ON VME SYSRESET output from power on cicuitry S80 7 Enable ON VME SYSRESET output from Bit 1 of VME master control register S80 8 connect ON VME SYSRESET to SIS3150 Reset Note 1 The diagram above illustrates the default setting at time of shipment The VME slave is disabled by default Note 2 A power up deadlock situation results from simultaneous ON position of switches S80 6 and S80 8 Page 63 of 73 SIS Documentation SIS3150USB SIS GmbH USB2 0 to VME interface VME 14 10 Switch S610 and S620 Selection of TigerSHARC Controls SIS3150 Default setting OFF S610 1 ON TSx_CONTRLIMPO S610 2 OFF TSx_CONTRLIMPI S610 3 OFF TSx_CONTRLIMP2 S610 4 OFF TSx_DSO S610 3 OFF TSx_DSI S610 6 OFF TSx_DS2 S610 7 ON TSI_BM_L S610 8 ON TS2 BML TSx_CONTRLIMP2 0 TSx_DS2 0 TS1_BM_L TS2_BM_L 620 1 ON TSx_LCLKRATO S620 2 ON TSx_LCLKRATI1 S620 3 OFF TSx_LCLKRAT2 S620 4 OFF TSx_BMS_L S620 5 ON TSI_TMROE S620 6 ON TS2_TMROE S620 7 ON TS1_L2DIR S620 8 ON TS2_L2DIR S620
3. close if no CMC1 card is installed JP_CMC1 CJ Page 60 of 73 SIS Documentation SIS3150USB SIS GmbH USB2 0 to VME interface VME 14 6 CON570 SIS3150 JTAG connector The SIS3150 on board logic can load its firmware from a serial PROMs The firmware can be upgraded through VME future option or the JTAG connector A list of firmware designs can be found under http www struck de sis3 150firm htm Hardware like the XILINX HW JTAG PC in connection with the appropriate software the XILINX WebPACK is furnished on the accompanying CDROM will be required for in field JTAG firmware upgrades through the JTAG connector The JTAG connector is a 9 pin single row 1 10 inch header the pin assignment on the connector can be found in the table below Pin Short hand Description 1 VCC Supply voltage 2 GND Ground 3 nc not connected cut to avoid polarity mismatch 4 TCK test clock 5 nc not connected 6 TDO test data out 7 TDI test data in 8 nc not connected 9 TMS test modus Note put S80 5 in OFF position to disable watchdog for firmware upgrade 14 7 CON580 CMC JTAG connector The CMC on board logic can load its firmware from a serial PROMs The firmware can be upgraded through VME future option or the JTAG connector Hardware like the XILINX HW JTAG PC in connection with the appropriate software the XILINX WebPACK is furnished on the accompanying CDROM will be
4. USB2 0 to VME interface VME 5 2 Register description The function of the individual registers is described in detail in this section The first line after the subsection header in Courier font like define SIS3150_CONTROL_STATUS 0x0 read write D32 refers to the sis3150 h header file 5 2 1 Control Status Register 0x write read define SIS3150_CONTROL_STATUS 0x0 read write D32 The control register is in charge of the control of some basic properties of the SIS3150 board like enabling test pulse generators It is implemented via a selective J K register a specific function is enabled by writing a 1 into the set enable bit the function is disabled by writing a 1 into the clear disable bit which location is 16 bit higher in the register An undefined toggle status will result from setting both the enable and disable bits for a specific function at the same time On read access the same register represents the status register Bit write Function read Function 31 Clear reserved control bit 15 0 22 la 21 Clear VME Slave LEMO Out 2 AN 20 Clear VME Slave LEMO Out 1 0 19 Clear reserved control bit 3 0 18 Clear reserved control bit 2 CMC reset pulse active 21ms 17 switch off user LED U2 CMC2 detect 16 switch off user LED U1 CMC 1 detect 15 Set reserved control bit 15 Status reserved control bit 15 6 ES d 5 Set VME Slave LE
5. USB2 0 to VME interface VME 10 2 FindAll_SIS3150USB_Devices A 44 103 handle EE 44 10 4 sis3150usb_load_dsp sis3150 usb Joad dep Dlepromn nenn 45 10 5 eeh 1 IDU VE Mt 45 10 6 sis3150usb_register_dma_write cecccceeesscceesececeeseneeeceeaeeccessaeeccesaeeeeeseaeeeceseaeeeeseeeeeeseaeeeeennees 46 10 7 sa il tusb register dma read 46 10 8 sis3 150usb_register sgl write EE 47 10 9 sis3150usb register sel EE 47 10 10 S183 lo 02tsbus dma Writes ese fesse EE 48 10 11 183 15 02 tSbUSsGMaz Tea Ge soe sath oxide conte NA 48 10 12 183 15 0 E EE 49 10 13 5183150 tSbUS ek reegen E a Peay Ee vealed Ehe See 49 10 14 VIN SHPO Ae e Be a a Fohed 50 10 15 VIN Gs MEN een En eebe Sec eee ck Soto eect ee chau eee co amos 50 10 16 VA EE EE 51 10 17 VINE AS e EECHER 51 10 18 A BEE EN 52 11 ETN UNK EE 53 ET RO 53 12 Y ME eelere Ee EE 54 12 1 Performance Sperd tests eieiei to iin ege deed Ae sde 54 1 3 Front Panel Elements irises brida iio tit 55 13 1 Front Panel ET RE 55 132 USB1 USB2 EI Distt Ct On dais 56 14 ee 57 14 1 J10 16 MHZ VME Sysclock n ueseseenseiestske tenesinsitusittaktitldasftnis hl 58 14 2 J770 and J771 Termination of LEMO Input 1 and le 58 14 3 JP570 SIS3150 FPGA JTAG source 59 14 4 JP580 CMG FPGA JTAG s ree deen RE ENEE bottoudbobehevidebeeeudbebebends 59 14 5 Jumper JP_CMC1 and TER CM ccc cscs ecageveedas Eder kuss kn men be ini ln IE 60 14 6 CONS570 SIS3150 JTAG COnmne ctor c
6. ke 1 2 3 4 5 6 7 8 We S610 TS 1 boot strap on IRQs disabled TS2 boot strap on IRQs disabled Control Impedance Selection Digital Drive Strength Selection Interrupt Enable Selection after Reset Interrupt Enable Selection after Reset TSx_LCLKRAT02 0 LCLK Ratio TSx_BMS_L LCLKRAT 2 0 Ratio CLK x 4 62 5 x 4 250 MHz TSx boot strap on boot from EPROM off reserved off reserved off reserved off reserved EPROM boot Selection LCLKRAT2 0 Ratio 000 2 001 2 5 010 3 011 3 5 100 4 101 5 110 6 111 Reserved Page 64 of 73 SIS Documentation SIS3150USB SIS GmbH USB2 0 to VME interface VME 15 SIS3150 Top Assembly Drawing Page 65 of 73 SIS Documentation SIS3150USB SIS GmbH USB2 0 to VME interface VME 16 Connector types The VME connectors and the front panel connectors used on the SIS3350are Connector Purpose Part Number 160 pin zabcd VME P1 P2 Harting 02 01 160 2101 90 PCB LEMO Digitial I O connectors LEMO EPL 00 250 NTN USB connector USB connector type A Tyco 292303 1 Page 66 of 73 SIS Documentation SIS3150USB SIS GmbH USB2 0 to VME interface VME 17 Appendix 17 1 Power Consumption Find below a table listing the currents Configur
7. ULONG dmabufs ULONG req_nof_data ULONG EXPORT sis3150Usb_TsBus_Single_Writ EXPORT sis3150Usb_TsBus_Dma_Write H VME Bus The Windows driver offers the following calls ine int EXPORT sis3150Usb_Vme_Single_Read EXPORT sis3150Usb_Vme_Dma_Read H U AND ULON ULON ULON ULON ULON el AN ULONG addr ULONG req_nof_data ULONG put_nof_data AN LO LO LO LO EN Di L G G G G G got_nof_data HANDLE usbDevice ULONG addr ULONG data DLE usbDevice ULONG dmabufs DLE usbDevice NG addr NG am NG size NG data usbDevice addr am size fifo_mode dmabufs ULONG req_nof_data ULONG got_nof_data Note req_nof_data and got_nof data are counted in longwords int ine EXPORT sis3150Usb_Vme_Dma_Write H ULONG addr ULONG am ULONG size ULONG fifo_mode ULONG ULONG req_nof_data ULONG put_nof_data EXPORT sis3150Usb_Vme_Single_Write AN UL UL UL UL DL HANDLE usbDevice addr am size data ONG ONG ONG ONG E usbDevice dmabufs Page 18 of 73 SIS Documentation SIS3150USB SIS GmbH USB2 0 to VME interface VME Not all combinations of the parameters are possible and allowed All supported VME cycles are defined in the include file sis3 150usb_vme_win_utils sis3 150usb_calls sis3150usb_
8. under control of the TigerSHARC DSP s Applications comprise but are not limited to e test benches e module acceptance testing e hard realtime readout systems e histogramming systems e data destination for other VME masters existing readout systems Page 6 of 73 SIS Documentation SIS3150USB SIS GmbH USB2 0 to VME interface VME 1 3 Block Diagram Find below a block diagram of the SIS3150USB to illustrate the data paths Used for USB TS VME CMC1 SIS9300 e g L II i Il SEN TSx_L3 TSx_L2 TSx_L1 TSx_LO Page 7 of 73 SIS Documentation SIS3150USB SIS GmbH USB2 0 to VME interface VME 4 USB device The SIS3150USB device USB peripheral is hotplugging The SIS3150USB device in combination with the drivers Win2K XP future option LINUX supports access to following spaces SIS3150 USB register space SIS3150 TS BUS internal TigerSHARC Bus VME Bus 4 1 SIS3150 USB Register space The driver offers the following calls int sis3150Usb_Register_Single_Read HANDLE usbDevice ULONG addr ULONG data int sis3150Usb_Register_Dma_Read HANDLE usbDevice ULONG addr ULONG dmabufs ULONG req_nof_data ULONG got_nof_data int sis3150Usb_Register_Sing
9. 20 Module Id Bit 4 19 Module Id Bit 3 18 Module Id Bit 2 0 17 Module Id Bit 1 16 Module Id Bit 0 15 Major Revision Bit 7 14 Major Revision Bit 6 13 Major Revision Bit 5 12 Major Revision Bit 4 11 Major Revision Bit 3 10 Major Revision Bit 2 9 Major Revision Bit 1 8 Major Revision Bit 0 7 Minor Revision Bit 7 6 Minor Revision Bit 6 5 Minor Revision Bit 5 4 Minor Revision Bit 4 3 Minor Revision Bit 3 2 Minor Revision Bit 2 1 Minor Revision Bit 1 0 Minor Revision Bit 0 5 2 2 1 Major revision numbers Find below a table with major revision numbers used reserved to date Major revision number Application user 0x01 Generic SIS3150 CMC SIS9920_ETH design Page 24 of 73 SIS Documentation SIS3150USB SIS GmbH USB2 0 to VME interface VME 5 2 3 Interrupt configuration register 0x8 define SIS3150_IRO_CONFIG 0x8 read write D32 In conjunction with the interrupt control register this read write register controls the VME interrupt behaviour of the SIS3150 Eight interrupt sources are foreseen for the time being four of them are associated with an interrupt condition the others are reserved for future use The interrupter type is DOS 5 2 4 IRQ mode In RORA release on register access mode the interrupt will be pending until the IRQ source is cleared by specific access to the corresponding disable VME IRQ source bit After the interrupt is serviced the sou
10. 9 1 2 Installation under XP As soon as a SIS3150USB is detected on a USB port for the first time you will be prompted by the hardware assistant under Windows XP while the driver will just be installed under Windows 2000 You will not want to connect to Windows Update uw CAE Rem macnn Assistent f r das Suchen neuer Hardware i Willkommen I Es wird nach aktueller und aktualisierter Software auf dem Computer auf der Hardwareinstallations CD oder auf der Windows Update Website mit Ihrer Erlaubnis gesucht Datenschutzrichtlinie anzeigen Soll eine Verbindung mit Windows Update hergestellt werden um nach Software zu suchen Ja nur diese eine Mal Ja und jedes Mal wenn ein Ger t angeschlossen wird Nein diesmal nicht Klicken Sie auf weiter um den Vorgang fortzusetzen lt Zur ck Abbrechen Page 39 of 73 SIS Documentation SIS3 150USB SIS GmbH USB2 0 to VME interface VME In the next step you select automatic installation Assistent fiir das Suchen neuer Hardware Mit diesem Assistenten konnen Sie Software fur die folgende Hardwarekomponente installieren Cypress EZ USB FX2 68613 5153150 USB YME Controller 15 12 2004 Falls die Hardwarekomponente mit einer CD oder Diskette geliefert wurde legen Sie diese jetzt ein Wie m chten Sie vorgehen Software automatisch installieren empfohlen Software von einer Liste oder bestimmten Que
11. D32 Control Status register 0x4 R D32 Module Id and firmware revision register 0x8 R W D32 Interrupt configuration register OxC R W D32 Interrupt control status register 0x10 R W D32 LEMO out selec register 0x20 R W XILINX JTAG_TEST JTAG_DATA_IN 0x24 W XILINX JTAG_CONTROL future use R W One wire Id register 0x400 KA D32 Key reset all 0x404 KA D32 Key CMC1 and CMC2 Hardware Reset pulse 20ms 0x408 KA D32 Key CMC1 Logic Reset 0x40C KA D32 Key CMC2 Logic Reset 0x410 KA D32 Key TigerSHARCs Reset pulse 2us The shorthand KA stands for key address Write access with arbitrary data to a key address initiates the specified function 5 1 1 2 Common Bus Address Space The common bus resources are addressed through VME as listed below Offset R W Mode Function Register 0x080 0000 to R W D32 Flashprom not yet implemented 0x09F FFFC 4Mbit gt 512Kbyte access only with D7 D0 gt 2Mbyte space 0x 100 0000 to R W D32 CMC Site 1 0x17F FFFC BLT32 MBLT64 0x180 0000 to R W D32 CMC Site 2 Ox 1 FF FFFC BLT32 MBLT64 0x200 0000 to R W D32 BLT32 MBLT64 TigerSHARC TS1 Ox2FF FFFC 0x300 0000 to R W D32 BLT32 MBLT64 TigerSHARC TS2 Ox3FF FFFC 0x400 0000 to R W D32 BLT32 MBLT64 SDRAM Ox7FF FFFC Note Access to the SDRAM is only allowed after the SDRAM Controller of the TigerSHARC TS1 is configured and enabled Page 22 of 73 SIS3150USB SIS Documentation SIS GmbH
12. VME_SYSRESET bit 4 Status VME_SYSRESET bit 0 no function 0 The power up value is 0x00000000 or 0x00010000 with system controller set Notes 3 is set if Jumper J10 1 2 is inserted or if VME System Controller Enable bit is set 4 if Switch S80 7 is ON and VME_SYSRESET bit is set then VME_SYSRESET is issued Page 14 of 73 SIS Documentation SIS3150USB SIS GmbH I USB2 0 to VME interface VME Explanation function of bit combinations SYSTEM VME BERR TIMER BIT1 SYSTEM VME BERR TIMER BITO VME Bus Error after 0 0 1 25 us default 0 1 6 25 us 1 0 12 5 us 1 1 100 us Note The default value of 1 25 us will be fine with most of VME slaves on the market there are peculiar cards which will respond to a VME cycle much slower however also The bus error code is 0x211 LONG TIMER BIT1 LONG TIMER BITO LONG Timeout after 0 0 1 ms default 0 1 10 ms 1 0 50 ms 1 1 200 ms LONG Timeout arbitration timeout no reply from current VME master or VME bus mastership not granted The arbitration timeout error code is 0x214 VME_REQ_ LEVEL BIT1 VME_REQ_ LEVEL BITO VME Bus Request Level 0 0 BR3 highest Level default 0 1 BR2 1 0 BRI 1 1 BRO VME REQUESTER TYPE BIT VME Bus Requester Type 0 Release when Done default 1 Release on Request Page 15 of 73 SIS Documentation SIS3150USB SIS GmbH USB2 0
13. required for in field JTAG firmware upgrades through the JTAG connector The JTAG connector is a 9 pin single row 1 10 inch header the pin assignment on the connector can be found in the table below Pin Short hand Description 1 VCC Supply voltage 2 GND Ground 3 nc not connected cut to avoid polarity mismatch 4 TCK test clock 5 nc not connected 6 TDO test data out 7 TDI test data in 8 nc not connected 9 TMS test modus Note disable watchdog on CMC card s for firmware upgrade close Jumper JP_CMC1 or JP_CMC2 of no CMC card is installed Page 61 of 73 SIS Documentation SIS3150USB SIS GmbH USB2 0 to VME interface VME 14 8 TS_JTAG TigerSHARCs JTAG Test Access Port connector Short hand Pin Pin Short hand Description GND 1 2 EMU Emulation output low activ GND 3 4 GND Ground GND 5 6 TMS Test Mode Select input GND 7 8 TCK Test Clock input GND 9 10 TRST Test Reset input low activ GND 11 12 TDI Test Data Input input GND 13 14 TDO Test Data Output output Note when the emulator is not connected to this connector place jumper 5 6 TMS 7 8 TCK 9 10 TRST and 11 12 TDI as shown below These jumpers hold the JTAG signals in the correct state to allow the DSP s to run free TS_JATG EMU GND TMS TCK TRST TDI TDO
14. to VME interface VME 4 2 6 USB VME Master Cycle Status read define SIS3150USB_VME_MASTER_CYCLE_STATUS 0x11 This register contains status information for the last VME Cycle D31 D16 DIS DO VME Cycle Error Register VME Transfer Byte Count Register VME Cycle Error Codes Ox110 USB Protocol Error invalid parameter Ox1ll USB Protocol Error USB write error 0x112 USB Protocol Error USB read error 0x113 USB Protocol Error USB read length error 0x211 VME Buserror 0x212 VME_RETRY_ERROR 0x214 VME Arbitration Timeout 4 2 7 USB VME Interrupt Status Register read define SIS3150USB_VME_INTERRUPT_STATUS 0x12 This register contains Status Information of the last VME Cycle In special cases the driver reads this Status Information register This register reflects the status of the VME IRQ lines Bit Function Reading 31 0 8 0 7 Status VME IRQ 7 on VME BUS 6 Status VME IRQ 6 on VME BUS 5 Status VME IRQ 5 on VME BUS 4 Status VME IRQ 4 on VME BUS 3 Status VME IRQ 3 on VME BUS 2 Status VME IRQ 2 on VME BUS 1 Status VME IRQ 1 on VME BUS 0 0 Page 16 of 73 SIS Documentation SIS3150USB SIS GmbH USB2 0 to VME interface VME 4 2 8 XILINX JTAG_TEST register define SIS3150_JTAG_TEST 0x20 write D32 4 This register is used in the firmware upgrade process over VME only A TCK is gen
15. 0 11 Disable IRQ source 3 0 0 10 Disable IRQ source 2 0 0 9 Disable IRQ source 1 0 0 8 Disable IRQ source 0 0 0 7 Enable IRQ source 7 Status enable source 7 read as 1 if enabled 0 if disabled 0 6 Enable IRQ source 6 Status enable source 6 read as 1 if enabled 0 if disabled 5 Enable IRQ source 5 Status enable source 5 read as 1 if enabled 0 if disabled 0 4 Enable IRQ source 4 Status enable source 4 read as 1 if enabled 0 if disabled 0 3 Enable IRQ source 3 Status enable source 3 read as 1 if enabled 0 if disabled 0 2 Enable IRQ source 2 Status enable source 2 read as 1 if enabled 0 if disabled 0 1 Enable IRQ source 1 Status enable source 1 read as 1 if enabled 0 if disabled 0 0 Enable IRQ source 0 Status enable source 0 read as 1 if enabled 0 if disabled 0 The power up default value reads 0x00000000 Note The clear IRQ source bits are relevant for edge sensitive IRQs only Page 26 of 73 SIS Documentation SIS3150USB SIS GmbH I USB2 0 to VME interface VME The generation of the status flags the IRQ flags and the actual IRQ is illustrated with the schematic below IRQ ACK cycle Status FLAG Source 0 Status IRQ Source 0 Source 0 Clear IRQ_Update IRQ ROAK case internal VME_IRQ o VME IRQ Status FLAG Source 7 IRQ RORA case Source 7 Clear Enable 7 5 2 5 1 Interrupt sources A short explanation of the implemented interr
16. 0 clear word count on each sequencer read 1 leave word count uncleared 20 VME ADDR_INC_DISABLE DMA 19 HOLD_VME_MASTER 18 DMA_CYCLE 17 SINGLE_CY CLE 16 VME_CYCLE not INTERNAL_CYCLE for VME_CYCLE for Internal_CYCLE 15 reserved 14 DMA_MODE Bit 1 13 DMA_MODE Bit 0 12 DMA read 11 reserved 10 VME AS HOLD 9 VME DSI Veto 8 VME DSO Veto 15 VME_IACK 14 VME_WRITE 13 VME_AMS 12 VME_AM4 11 VME_AM3 10 VME_AM2 VME_AMI VME_AMO Note Set address bit AO for D16 VME access corresponding to bit D32 of the D64 DSP write cycle Page 37 of 73 SIS Documentation SIS3150USB SIS GmbH USB2 0 to VME interface VME More detailed description of bits 19 16 ADDR_19 ADDR_18 ADDR_17 ADDR_16 HOLD_VME_ DMA_CYCLE SINGLE_CYCLE INTERN MASTER CYCLE x x x 1 internal Cycle 0 0 0 0 release VME MASTER_SHIP 1 0 0 0 VME Arbitration only and hold VME MASTER_SHIP 0 0 1 0 VME Single Cycle with Arbitration and release VME MASTER SHIP 1 0 1 0 VME Single Cycle with Arbitration and hold VME MASTER_SHIP 0 1 D 0 VME DMA Cycle with Arbitration and release VME MASTER_SHIP 1 1 x 0 VME DMA Cycle with Arbitration and hold VME MASTER_SHIP Page 38 of 73 SIS Documentation SIS3 150USB SIS GmbH USB2 0 to VME interface VME 9 Windows Driver 9 1 Installation 9 1 1 Setup Installation Scripts The setup installation scripts can be found on the SISCDROM as shown below
17. 0 LEMO NIM Input 1 terminated with 50 Ohm to GND if closed J771 LEMO NIM Input 2 terminated with 50 Ohm to GND if closed JTAG connector Function CON570 SIS3150 FPGA JTAG connector CON580 CMC FPGA JTAG connector TS_JTAG TigerSHARC JTAG connector Refer to the top layer assembly drawing see section 15 for jumper connector locations Page 57 of 73 SIS Documentation SIS3150USB SIS GmbH USB2 0 to VME interface VME 14 1 J10 16 MHz VME Sysclock The 16 MHz VME Sysclock can be enabled disabled with jumper J10 J10 16 MHz VME Sysclock closed jon open off Note a VME display like the VDIS e g can be used to check whether another master in a multi master VME setup generates Sysclock 14 2 J770 and J771 Termination of LEMO Input 1 and 2 The 50 Q input termination of the 2 NIM front panel inputs can be switched on off with the two jumpers J770 and J771 J770 Termination LEMO Input 1 closed terminated open unterminated J771 Termination LEMO Input 2 closed terminated open unterminated Schematic of the relevant section of the PCB Page 58 of 73 SIS Documentation SIS3150USB SIS GmbH USB2 0 to VME interface VME 14 3 JP570 SIS3150 FPGA JTAG source SIS3150 Firmware can be loaded to the XC18V04 serial PROM via a JTAG download cable XILINX JTAG PC4 e g or via the VME interface of the SIS3150 Pl
18. 01 or in error case SC_PROT CTL 0x23 SP 01 EC Page 70 of 73 SIS Documentation SIS3150USB USB2 0 to VME interface SIS GmbH VME 17 3 Glossary Term Explanation CMC Common Mezzanine Card IEEE 1386 DSP Digital Signal Processor SBC Single Board Computer Page 71 of 73 SIS Documentation SIS3150USB SIS GmbH USB2 0 to VME interface VME 18 Index 12V 67 5V 67 16 MHz 58 A32 51 63 address map 21 22 VME 22 address space 18 20 AM 50 applications 6 arbitration timeout 15 backplane 20 BERR timeout 15 block diagram 7 bus error 15 bus request level 15 closedriver 44 CMC 5 71 CON300 59 CON570 61 CONS80 61 connector types 66 CVI 42 CY7C68013 5 D16 with TigerSHARC 36 37 D32 51 DLL 43 DO8 25 Driver Windows 39 DSP 71 error codes 16 FindAll_SIS3150USB_Devices 44 firmware 61 front panel elements 55 Front Panel Layout 18 20 functionality 6 FX2 56 GA 20 GND 61 62 got_num_words 52 handle 44 handle gbl 44 Harting 66 input LEMO 58 installation 39 interrupt sources 27 interrupter mode 25 interrupter type 25 introduction 5 IRQ almost full 27 clock shadow 26 27 FIFO almost full 26 FIFO threshold 26 LNE 26 27 overflow 26 source 27 source 0 27 source 4 27 IRQ mode 25 ROAK 25 RORA 25 J1 20 J10 58 J770 58 J771 58 J90 61 JP570 59 JP580 59 JTAG 59 61 jumpers 57 L2 56 L4 56 Labview 43 LCLKRAT 6
19. 2 0 to VME interface VME Definition of SP 3 0 SP 3 0 Space 0 reserved 1 Register Space 2 TS BUS Space 3 reserved 4 VME Space 5 15 reserved Definition of CTRL 11 0 Bit 11 10 7 6 5 WR 0 read write request 1 write AUTO ADDRESS 0 auto address increment INCREMENT DISABLE 1 no address increment FIFO Access Address Increment offset address increment by 1 VME Byte f address increment by 2 VME 16 bit Word ME piata Rize address increment by 4 VME 32 bit Word address increment by 8 BYTE WORD SWAP reserved reserved reserved 11 reserved LIST Mode 0 no List Mode 1 List Mode TS BUS D64 access 0 D32 cycles on TS Bus 1 D64 cycles on TS Bus address and length must be 8 byte aligned Page 69 of 73 SIS Documentation SIS3 150USB SIS GmbH USB2 0 to VME interface VME 17 2 3 Block transfer Read Direct VME Bus Access CTLs 0x20 REQ and BT CTL 0x22 CONF and BT arbitrary WR and BT CIL 0x8 END and EOT arbitrary WR and BT Request from PCI Confirmation from SIS3100 Bit 31 Bit 0 Bit 31 Bit 0 SC_PROT CTL 0x20 SP 01 BE OF address modifier with CTL AM 1 only address A63 32 with CTL A64 1 only Start address A31 0 4 Byte aligned BC byte count 4 er steps 4 8 SC_PROT CTL 0x22 SP 01 datum 1 datum 2 datum n SC_PROT CTL 0x81 SP
20. 4 LED Color 55 error 50 front panel 55 user 12 13 14 23 28 42 user 1 10 user 2 10 LEMO 66 In 1 10 In 2 10 Out 1 10 Out2 10 LEMO input 58 LINUX 53 lsusb 53 master 5 mastership 15 mode FIFO 52 monostable 55 PCI to VME interface 54 Power Consumption 67 PROM 59 61 Protocol 67 realtime 5 register control 11 24 firmware revision 11 24 interrupt configuration 25 interrupt control 16 25 interrupt control status 26 JTAG_CONTROL 17 29 30 JTAG_DATA_IN 17 29 JTAG_TEST 17 29 LEMO out select 28 master control 63 Page 72 of 73 SIS Documentation SIS3150USB SIS GmbH USB2 0 to VME interface VME module Id 11 24 protocol status 68 USB control 10 USB LEMO Out 13 USB status 10 USB TS Link Connect 12 USB VME Master Status 14 VME Master Control 14 register space USB 8 register_dma_read 46 register_dma_write 45 46 register_sgl read 47 register_sgl_write 47 release on request 15 when done 15 req_num_data 52 request level 15 requester 15 return codes 16 ROAK 25 RORA 25 rotary switch 20 RTE 42 S610 64 S620 64 S80 63 SBC 71 SIS3150base 42 sis3150usb_load_dsp 45 sis3150usb_load_dsp_fileprompt 45 sis3150usb_version 45 SIS330x 54 slave 20 speed 54 SUSE 53 SW3 20 SW4 20 Sysclock 58 SYSRESET 63 TCK 61 62 TDI 17 29 61 62 TDO 61 62 termination 58 TigerSHARC 67 TigherSHARC 54 timeout arbitration 15 BERR 15 TMS 17 29 61 62 TS host space 36 links 33 VME addressing 31 VME maste
21. 6 LEMO Out Select Register Write read ccceeesscceesenceeeeeneeeeeeeneeeceeneeeceeeeeeeneaeeeesenaeeeeeeaaees 28 5 2 7 KINK RE EE 29 5 2 8 XILINX JTAG DATA IN register ccc esececcsseceseceseeeseeeeeeeeeeeeseeeeeeseeceeeseeseeeeeeneeeeeenes 29 5 2 9 XILINX JTAG_CONTROL repite oaaae en eana AK e n Aai 29 37 Common Bus deS le EE 30 5 3 1 CMG SIE isi fone esse A E EE ee 30 5 3 2 Teer RRE Ae EE wae AES cance ha weep E EE EE EE een 30 5 3 3 SDRAM cortina nodo nennen ihnen euch abs debateeadevadenuiebedountebed 30 A deer eege 31 6 1 TigerSHARC global Memory Map 31 6 2 TS Hardware Interrupts 242201 Reeg dibescasde us EEEE NENEA EEEE ENEKE 32 63 TS EL 33 7 TigerSHARC Internal Space Address Translation Table VME TigerSHARC 34 7 1 TigerSHARC TS1 Memory Space cesecesscccssseeesseecsseecsseecesaeecsseecseeceseecesaeecsaeesseessseeessaeeesaeers 34 7 2 TigerSHARC TS2 Memory Space occ ceeeessecsseecesseeeseecscecsseeceseeeesseecsaeecseecseecssaeeesaeecsaeesseeoens 35 7 3 SDRAM Memory Space ea idee dE Eden 35 8 Tiger SHARC e 36 8 1 TigerSHARC VME Master Space een edd 36 9 Windows Dieu A td eee 39 9 1 Installation sd o 39 9 1 1 Setup Installation Scripts da a a ind 39 9 1 2 Installation tinder XP A A a da es 39 9 2 lt SIS3 1SOUSB base program coca a A Ee E 42 10 Labview Windows Interface 43 10 1 NOS 44 Page 3 of 73 SIS Documentation SIS3150USB SIS GmbH
22. Be setup_w2k Datei Bearbeiten Ansicht Favoriten Extras Q ria r gt y y CR Suchen gt Ordner E Adresse siscd_170105 sis3150usb Driver Windows sis3150usb_windows sis3150usb_vme_win_utils setup_w2k Ordner siscd_170105 ES ezusb 27 KB Systemdatei 28 11 2001 17 31 E 515330x P ezusbw2k SKB Setup Informationen 28 11 2001 17 31 sis3150usb El readme 1KB Textdokument 07 12 2004 15 30 Doc Elsetup_winzk 2KB Stapelverarbeitung 15 12 2004 10 21 E D Driver E sis3150usb_setup_8051 bix 64KB BIX Datei 07 12 2004 17 19 5 Windows E sis3150usb_vme_win ZER LIB Datei 17 12 2004 08 11 S sis3150usb_vme_win dil 44 KB Programmbibliothek 17 12 2004 08 11 e sis3150usb_vme_win h SKB C Source File 15 12 2004 09 35 Cd sis3150usb_win 2KB Setup Informationen 15 12 2004 10 24 E sis_ezusb 27 KB Systemdatei 28 11 2001 17 31 O sis3150usb_wme_applications 5 sis3150usb_windows E sis3150usb_vme_win_utils setup_xp sis3150usb_calls 5 sis3150usb_lib sis3638xx El CH sis11003100 10 Objekte e Freier Speicherplatz 655 GB 180 KB E Lokales Intranet Run the setup_win2k or setup_winxp script in the corresponding directory The batch files will copy the required files to your c disk drive
23. H USB2 0 to VME interface VME 10 Labview Windows Interface The SIS3150USB Labview interface uses the same DLL as the standard Windows driver At this point in time the VIs are limited to one SIS3150USB interface The handle for this interface is passed to the VME access VIs as a global variable Copy the winlabview directory to your c drive fe 3150wintabview HS Datei Bearbeiten Ansicht Favoriten Extras zem gt T JO suchen E oae e K Adresse v siscd_1701054sis3150usb Driver Windows sis3150usb_vme_applications 3150 y Wechseln zu Ordner E siscd_170105 O sis3150vis 515330x El O sis3150usb Doc A sis3150usb_vme_win dl El Driver E E Windows E 1 sis3150usb_vme_applications E B 3150winlabyiew E sis3150vis gt 2 Objekte e Freier Speicherplatz 655 GB 56 0 KB Lokales Intranet The DLL is assumed to be in c sis3150winlabview sis3150usb_vme_win dll Library Name or Path Penn Goergen Function Name sis3150Usb_Vme_Single_Write z Reentrant z Error Calling Conventions E 7 m Parameter Feturn type E M Type Numeric Add a Parameter Before pl Data Type Unsigned 32 bit Integer z Add a Parameter After Delete this Parameter Function Prototype nsigned long sis3150Usb_Yme_Single_Write unsigned long handle unsigned long addr unsigned long am unsigned long size unsigned long data Page 43 of 73 SIS Documentation SIS3 150
24. MO Out 2 Status VME Slave LEMO Out 2 Bit 4 Set VME Slave LEMO Out 1 Status VME Slave LEMO Out 1 Bit 3 Set reserved control bit 3 Status reserved control bit 3 2 Set reserved control bit 2 Status reserved control bit 2 1 switch on user LED U2 Status User LED U2 0 switch on user LED U1 Status User LED U1 1 LED on 0 LED off denotes power up default setting i e the power up reading of the register is 0x0 the LEDs can be set from the USB side also see USB LEMO Out Select Register Page 23 of 73 SIS Documentation SIS3150USB SIS GmbH i USB2 0 to VME interface VME 5 2 2 Module Id and Firmware Revision Register 0x4 read define SIS3150_MODID 0x4 read only D32 This register reflects the module identification of the SIS3150 and its minor and major firmware revision levels The major revision level will be used to distinguish between substantial design differences and experiment specific designs while the minor revision level will be used to mark user specific adaptations Bit Function Reading 31 Module Id Bit 15 30 Module Id Bit 14 3 29 Module Id Bit 13 28 Module Id Bit 12 21 Module Id Bit 11 26 Module Id Bit 10 1 25 Module Id Bit 9 24 Module Id Bit 8 23 Module Id Bit 7 22 Module Id Bit 6 5 21 Module Id Bit 5
25. SIS Documentation SIS3150USB SIS GmbH USB2 0 to VME interface VME SIS3150USB USB2 0 to VME Interface with optional TigerSHARC s User Manual SIS GmbH Harksheider Str 102A 22399 Hamburg Germany Phone 49 0 40 60 87 305 0 Fax 49 0 40 60 87 305 20 email info struck de http www struck de Version sis3150usb M 0 1v130 as of 02 10 08 Page 1 of 73 SIS Documentation SIS3150USB USB2 0 to VME interface SIS GmbH VME Revision Table Revision Date Modification 0 01 25 12 04 Generation 1 00 14 01 01 First official release 1 01 09 02 05 S80 610 and 620 added 1 10 10 03 05 Block diagram USB resource access VME addressing 1 10a 10 05 05 Minor corrections 1 20 02 06 05 Firmware rev 0x2004 VME side LEMO out select register 1 21 26 10 05 lsusb screen shot with 3150 db entry 1 22 19 12 05 1 TS as option also 1 23 26 12 05 closedriver VI touch up 1 24 26 09 06 Bug fix in BERR timeout table default 1 25 us Retry Error added 1 25 28 03 07 LED table added 1 26 24 05 07 Power consumption added 1 27 06 12 07 Bug Fix in Arbiter Behaviour LWORD note 1 28 22 01 08 S80 6 and 7 explanation 1 29 28 03 08 Note on D16 VME access from TigerSHARC 1 30 02 10 08 Additional VIs require DLL version 20 01 08 or later Page 2 of 73 SIS Documentation SIS3150USB SIS GmbH USB2 0 to VME interface VME 1 T
26. SSOR ID 0 0x0010 0000 0x0240 0000 INTERNAL MEMORY BLOCKS PROCESSOR ID 1 0x0010 FFFF 0x0280 0000 RESERVED PROCESSOR ID 2 INTERNAL REGISTERS 70018 0000 0x02C0 0000 PROCESSOR ID 3 UREGS 0x0018 FFFF 0x0300 0000 PROCESSOR ID 4 0x0340 0000 PROCESSOR ID 5 0x0380 0000 PROCESSOR ID 6 RESERVED 0x03C0 0000 PROCESSOR ID 7 0x0400 0000 SDRAM 0x0800 0000 0x003F FFFF CMC Site 1 MEMORY BANK 0 0x0C00 0000 CMC Site 2 MEMORY BANK1 0x1000 0000 HOST OxFFFF FFFF Page 31 of 73 SIS Documentation SIS3150USB SIS GmbH USB2 0 to VME interface VME 6 2 TS Hardware Interrupts Each DSP supports four external hardware Interrupts IRQ3 0 The sources of the eight IRQs TS1_IRQ3 0 and TS2_IRQ3 0 are defined by the SIS3150 FPGA design The SIS3150 Firmware versions 31500101 and 31500102 supports the following assignments TSI_IRQO CMC Site 1 CMC_TS1_IRQ_ REQ TSIIRQOI CMC Site 2 CMC_TS1_IRQ_REO TSIIRQ2 USB Key Address TS1_IRQ3 leading edge NIM Input 1 TS2_IRQ0 CMC Site 1 CMC_TS1_IRQ_ REQ TS2_IRQ1 CMC Site 2 CMC_TS1_IRQ_ REQ TS2_IRQ2 USB Key Address TS2_IRQ3 leading edge NIM Input 1 Page 32 of 73 SIS Documentation SIS3 150USB SIS GmbH USB2 0 to VME interface VME 6 3 TS Links The TigerSHARC link ports provide an optional high speed communications channel that is useful for impl
27. TA_IN register define SIS3150_JTAG_DATA_IN 0x20 read D32 This register is used in the firmware upgrade process over VME only It is at the same address as the JTAG_TEST register and is used in read access It operates as a shift register for TDO The contents of the register is shifted to the right by one bit with every positive edge of TCK and the status of TDO is transferred to Bit 30 Bit 31 reflects the current value of TDO during a read access 5 2 9 XILINX JTAG_CONTROL register define SIS3150_JTAG_CONTROL 0x24 write only D32 This register is used in the firmware upgrade process over VME only Bit Function write 31 31 none 4 4 none 3 3 none 2 2 none 1 MUX_CMC_JTAG 0 SIS3150 JTAG control 1 CMC Sites JTAG control 0 JTAG_OUT_EN 0 Disable JTAG output 1 Enable JTAG output Page 29 of 73 SIS Documentation SIS3150USB SIS GmbH USB2 0 to VME interface VME 5 3 Common Bus description The function of the individual registers is described in detail in this section The first line after the subsection header in Courier font like define SIS3150_CMC1_BASE 0x01000000 define SIS3150_CMC2_BASE 0x01800000 define SIS3150_TS1_BASE 0x02000000 define SIS3150_TS2_BASE 0x03000000 define SIS3150_SDRAM_BASE 0x04000000 refers to the sis3150 h header file 5 3 1 CMC Site Only the data bits 35 0 of the common 64 bit data bus are connected to the CMC S
28. USB USB2 0 to VME interface 10 1 closedriver The closedriver VI is used to close the instance of the driver after powering off the VME crate eg Without closing the driver you will get a new device with every power cycle Ezusb 0 Ezusb 1 Ezusb 2 Ezusb 3 After Ezusb 3 you would have to restart Labview to start at Ezusb 0 again Please not that the closedriver VI needs the last valid handle as input parameter i e you can not use the global handle from a failed call to the FindAll_SIS3150USB_Devices VI to close the driver gt closedriver vi 10 2 FindAll_SIS3150USB_Devices This VI scans for SIS3150USB devices reports the number of found devices lists the first device opens a handle to the first device and downloads the code the Cypress FX USB controller chip Serial number and firmware revision of the first device are reported also The error and FX Download Error LEDs stay off upon successful completion FindAll_S153150U5B_Devices vi 10 3 handle gbl This handle holds the global variable handle that is used for VME access through the first found interface in the VME calls Page 44 of 73 SIS Documentation SIS3 150USB USB2 0 to VME interface 10 4 sis3150usb_load_dsp sis3150 usb_load_dsp_fileprompt These 2 VIs reset the DSP s open a loader file load the code to the DSP s and start the DSP s The filename is hardcoded to tigersharc ldr for sis3 150_load_dsp while you will be pro
29. UT 2 21 TS2 Flag 1 1 TS2 Flag 1 is ored to LEMO OUT 2 20 reserved No 19 reserved No 18 TS1 Flag2 1 TS1 Flag 2 is ored to LEMO OUT 2 17 TS1 Flag 1 1 TSI Flag 1 is ored to LEMO OUT 2 16 reserved No Bit meaning Function 15 reserved No 14 reserved No 13 VME Slave Lemo Out 1 1 VME Slave Control Bit LEMO Out 1 is ored to LEMO OUT 1 12 USB Lemo Out 1 1 USB Control Bit LEMO Out 1 is ored to LEMO OUT 1 11 reserved No 10 reserved No 9 reserved No 8 CMC 1 Trigger 1 CMC 1 Trigger is ored to LEMO OUT 1 7 reserved No 6 TS2 Flag 2 1 TS2 Flag 2 is ored to LEMO OUT 1 5 TS2 Flag 1 1 TS2 Flag 1 is ored to LEMO OUT 1 4 reserved No 3 reserved No 2 TS1 Flag 2 1 TSI Flag 2 is ored to LEMO OUT 1 1 TS1 Flag 1 1 TSI Flag 1 is ored to LEMO OUT 1 0 reserved No denotes power up default setting i e the power up reading of the register is 0x10001000 USB Lemo Out Bits are selected Note TS Flags are low active Page 28 of 73 SIS Documentation SIS3150USB SIS GmbH USB2 0 to VME interface VME 5 2 7 XILINX JTAG_TEST register define SIS3150_JTAG_TEST 0x20 write D32 This register is used in the firmware upgrade process over VME only A TCK is generated upon a write cycle to the register Bit write Function 31 none 4 none 3 none 2 none 1 TMS 0 TDI 5 2 8 XILINX JTAG_DA
30. able of contents l Pale EE 3 1 Introduction veian td eee ees 5 O EE 6 2 1 Application RIED a A A a N A 6 3 BLOCK DIAM en een 7 du NS BCC EE EE 8 4 1 SIS3 150 USB UA len hen ers Raa 8 4 1 1 USB Register Space Address Map 9 4 2 USB Register descHptien 2 arsch Bi Ei Ehe 10 4 2 1 USB Control Status Register write read 20022244004222sBnnennnnenesnnnneneennnnnennnnnee nennen nenn 10 4 2 2 Module Id and Firmware Revision Register read 11 4 2 3 USB TS Link Connect Regiatertownte zSiread nenn 12 4 2 4 USB LEMO Out Select Register wrtezSiread nenn 13 4 2 5 USB VME Master Status Control register readiwrte 14 4 2 6 USB VME Master Cycle Status read 16 4 2 7 USB VME Interrupt Status Register read 16 4 2 8 XILINX JTAG EE 17 4 2 9 XILINX ITAG DATA IN register aisiaren anirai EEE oei EKAA ER Ea 17 4 2 10 XILINX JTAG CONTROL register u ccesessenssenssnssnsnnsnnsnnnnnnsnnnnnonsnnsnnsnnnnnennsnnnann 17 4 3 TS BUS internal TigerSHARC Bush 18 AA VME BUS RN 18 SON i 20 5 1 KREE 20 5 1 1 VME Slave Address map of SIS3150 oo eee eeseccssceceseecesseeesaeecseecsseecsseeeesaeeesaeecsaeecseeeeneeeenaes 21 5 2 Register description A SERA een ee EES eege 23 5 2 1 Control Status Register Ox writeitead ono nnnnnn na nen 23 5 2 2 Module Id and Firmware Revision Register 0x4 read 24 5 2 3 Interrupt configuration register UH 25 5 2 4 TROT Od E 25 5 2 5 Interrupt Control Status register sc 26 5 2
31. ar to many Tundra Universe II based SBC s On the SIS3150 9921 single cycle performance can be enhanced in two ways e pipelining of several cycles e execution of VME transactions under control of the TigerSHARC DSP Especially with the 2 approach the USB2 0 to VME interface allow for the implementation of very demanding hard realtime applications in combination with the ease of use with your laptop computer The use of the 2 CMC site of the SIS3150 for a frontend card like the SIS9300 4 channel 100 MHz 14 bit digitizer board allows you to build efficient systems with and without making use of the VME bus A 4 channel ADC digitizer system of that type in a rackmount box is shown below Page 5 of 73 SIS Documentation SIS3150USB SIS GmbH USB2 0 to VME interface VME 2 Functionality The SIS3150USB interfaces the popular Universal Serial Bus USB to the VMEbus The modules functionality comprises USB2 0 and USB1 1 compliance VME master A16 A24 A32 D8 D16 D32 BLT32 MBLT64 VME slave A32 D32 BLT32 MBLT64 1 or 2 TS101 TigerSHARC DSP s as option 2 digital front panel inputs 2 outputs 64 MB SDRAM memory 1 available CMC site P2 access to lower CMC site 12 front panel LEDs 2 1 Applications The SIS3150 USB2 0 to VME interface is a good choice whenever a single cycle read write performance is not of top importance b good single cycle performance is required but single cycle transactions can be handled
32. ation 5V 12V Without TigerSHARC lt 15A lt 100 mA With one TigerSHARC lt 2 0A lt 100 mA Without two TigerSHARCs lt 2 5 A lt 100 mA 17 2 Protocol 17 2 1 Transfer Write Access Request from USB Bit 31 Bit 0 REQUEST SPACE CTRL Header OxAAAA 3 0 11 0 Address modifier BC VME only byte count max 32768 Start address A31 0 VME Byte Address Register and TS BUS LWORD Address Datum 1 Datum 2 datum n In case of no Error In case of Error Confirmation from SIS3150 to USB Bit 31 Bit 0 No Confirmation Read Request Length 0 PKTEND generated CONFIRM STATUS BC Header 7 0 byte count max 32768 OxEE 15 0 Page 67 of 73 SIS Documentation SIS3150USB SIS GmbH USB2 0 to VME interface VME 17 2 2 Transfer Read Access Request from USB Confirmation from SIS3150 to USB Bit 31 Bit 0 Bit 31 Bit 0 REQUEST SPACE CTRL Header OxAAAA 3 0 11 0 Address modifier BC VME only byte count max 32768 Start address A31 0 VME Byte Address else LWORD Address address 2 list address 3 address n datum 1 datum 2 datum n The protocol status register has to be read if the received number Got Nof Bytes does not match the number of requested Bytes Requested Nof Bytes Page 68 of 73 SIS Documentation SIS3150USB SIS GmbH USB
33. cceeccccccccccessseecccccscceesssseccccssceeeseeeccccssseeesseesccsssseueesesesesseeees 61 14 7 CONS80 CMG JTAG connector iii 61 148 TS_JTAG TigerSHARCs JTAG Test Access Port connector cooooooccnnnccccnnoncnccnonnnnnnnnnncnnonancnncnnnnnoos 62 ER We A EE eee SUE EE 63 14 10 Switch SO1Oand SO Di dan ele bee Da ee es ee EE 64 15 SISS1S0 Top Assembly Drawing susanne 65 16 Connector PES euer aa namen 66 17 Appenda EE 67 17 1 Power Eohsumplion zi se nal rail air 67 17 2 NS 67 17 2 1 Transfer Write ACCESS iss rss E een wees SAD San eae OTE a e EE 67 1722 Transfer Reads Access eege e RES 68 17 2 3 Block transfer Read Direct VME Bus Access cccoooooccccccnnnnnnnaniocncnnnnnnnnnnnorcconnnnnnnnnccnccnnnnonanininoss 70 17 3 GLOSS ALY o te ada 71 18 Tide A rm Ir an 72 Page 4 of 73 SIS Documentation SIS3150USB SIS GmbH USB2 0 to VME interface VME 1 Introduction The SIS3150 9921 USB2 0 to VME interface is a combination of two cards The actual VME master slave card is the SIS3150 dual CMC carrier board which can be equipped with up to 2 TigerSHARC Digital Signal Processors DSPs The SIS9921 is the interfacing CMC card which has the Cypress Semiconductor CY7C68013 USB2 0 controller chip While a USB to VME interface is slow for single cycle VME transactions typically 100 us compared to a PCI to VME interface SIS1100 3100 typically 5 us you can reach block transfer speeds in the 30 MByte s ballpark what is simil
34. d the VME address The TS address A27 A1 holds the address modifier for the cycle and so on Example VME write volatile unsigned long long var_long64_data volatile unsigned long long vme_space_long64_ pointer vme_space_long64_pointer unsigned long long host_start_addr vme_space_mode write var_long64_data __builtin_compose_64u vme_space_address vme_space_data D63 32 D31 0 vme_space_long64_pointer var_long64_data read var_long64_data vme_space_long64_pointer D63 32 holds the status register D31 0 holds the read datum for a single cycle read Data are passed over a link to the TS during a DMA Note Set address bit AO for D16 VME access corresponding to bit D32 of the D64 DSP write cycle Page 36 of 73 SIS Documentation SIS3150USB USB2 0 to VME interface SIS GmbH VME The function of the individual bits is given in the table below TS Addr Write Function Bit 27 Force VME AS Single cycle during DMA with constant Vme Addresses 26 reserved 25 reserved 24 reserved 23 READ_FIFO_DISABLE 0 VME read data will be pushed into FIFO 1 VME read data will be stored in register only 22 READ_FIFO_CLR_ DISABLE 0 VME read FIFO will be cleared at the beginning 1 VME read FIFO will not be cleared at the beginning 21 WORD_COUNT_CLR_ DISABLE
35. eared in the interrupt service routine The status internal IRQ flag can be used for tests without activating VME interrupt generation It is set whenever an interrupt would be generated if interrupting would be enabled in the interrupt configuration register fourth condition is reserved for future use Bit Function w 1 Default 31 1 Shot IRQ UPDATE Status IRQ source 7 CMC2_VME_IRQI1 reserved 0 30 unused Status IRQ source 6 CMC2_VME_IRQO reserved 0 29 unused Status IRQ source 5 CMC1_VME_IRQI1 reserved 0 28 unused Status IRQ source 4 CMC1_VME_IRQO reserved 0 27 unused Status IRQ source 3 TS2_VME_IRQI sensitive 0 26 unused Status IRQ source 2 TS2_VME_IRQO sensitive 0 25 unused Status IRQ source 1 TSI_VME_IRQI sensitive 0 24 unused Status IRQ source 0 TS1_VME_IRQO sensitive 0 23 Clear IRQ source 7 Status flag source 7 0 22 Clear IRQ source 6 Status flag source 6 0 21 Clear IRQ source 5 Status flag source 5 0 20 Clear IRQ source 4 Status flag source 4 0 19 Clear IRQ source 3 Status flag source 3 0 18 Clear IRQ source 2 Status flag source 2 0 17 Clear IRQ source 1 Status flag source 1 0 16 Clear IRQ source 0 Status flag source 0 0 15 Disable IRQ source 7 Status VME IRQ 0 14 Disable IRQ source 6 Status internal IRQ 0 13 Disable IRQ source 5 0 0 12 Disable IRQ source 4 0
36. ease note that errors during this process can render a module temporarily in non working condition JP570 has 3 pins The first pin of the jumper fields is marked by a square pin on the solder side and an extra frame on the silk screen of the component side Depending on whether pins 1 and 2 or 2 and 3 are closed the JTAG source is defined as listed below JP570 GD o 1 2 closed JTAG connector CON 570 JP570 2 3 closed VME 14 4 JP580 CMC FPGA JTAG source Firmware can be loaded to the XC18V04 serial PROM on the CMC s via a JTAG download cable XILINX JTAG PC4 e g or via the VME interface of the SIS3150 Please note that errors during this process can render a module temporarily in non working condition JP580 has 3 pins The first pin of the jumper fields is marked by a square pin on the solder side and an extra frame on the silk screen of the component side Depending on whether pins 1 and 2 or 2 and 3 are closed the JTAG source is defined as listed below JP580 GD o 1 2 closed JTAG connector CON 580 JP580 2 3 closed VME Page 59 of 73 SIS Documentation SIS3150USB SIS GmbH USB2 0 to VME interface VME 14 5 Jumper JP_CMC1 and JP_CMC2 This jumper s JP_CMC1 JP_CMC2 closes the CMC JTAG lines TDI and TDO of the installed CMC 1 CMC2 card JP_CMC2 open if CMC2 card is installed JP_CMC2 close if no CMC2 card is installed O open if CMC1 card is installed a 3
37. elow Torsten home lxuser lsusb Bus 005 Device 004 ID 1657 3150 Struck Innovative Systeme GmbH 5153150 USBZ 0 to VME interface Bus 005 Device 001 ID 0000 0000 Bus 004 Device 001 ID 0000 0000 Bus 003 Device 001 ID 0000 0000 Bus 002 Device 001 ID 0000 0000 Bus 001 Device 004 ID 413c 3200 Dell Computer Corp Bus 001 Device 003 ID 413c 2003 Dell Computer Corp Bus 001 Device 001 ID 0000 0000 Torsten home lxuser 4 Page 53 of 73 SIS Documentation SIS3150USB SIS GmbH USB2 0 to VME interface VME 12 VME Readout Speed While the nature of USB results in VME single cycle execution times in the order of 100 us compared to 5 us on a SIS1100 3100 PCI to VME interface you will reach decent block transfer performance as illustrated in the screendump below data as measured on a USB2 0 port of a 3 2 GHz P IV Siemens Fujitsu Scenic PC ex Cilsis3150usb_vme_applicationsWisualC_applicationsispeed_test_vmelReleaselspeed_test jol E 33 989 MByte sec loop counter 47 Delay for two seconds wme_A32D32_write 9 376 KByte sec cycle repetition time wme_A32D32_read 9 412 KByte sec cycle repetition time wme_AZ2DMA_D32_write 7 297 MByte sec vme_A32BLT32_ write 18 982 MByte sec ume_A32MBLT64_write 25 328 MByte sec ume_A32DMA_D32_read 7 158 MByte sec vme_A32BLT32_read 21 141 MByte sec vme_A32MBLT64_read 33 989 MByte sec loop counter 48 Delay for two seconds Single cycle execution time
38. ementing point to point communication without using the common data bus The DSP s core can write directly to a link port s transmit register and read from a receive register or the DMA controller can perform DMA transfers through the link port DMA channels Each TigerSHARC has four Link Ports TS1_LO TS1_L3 TS2_L0 TS2_L3 Each CMC side has two Link Ports The SIS3150 FPGA has four Link Ports also The SIS3150 onboard breakers open or close the connection s between these different Link Ports Following ten point to point connections are possible TSILO internal TSxLO connected with CMC Site 1 and SIS3150 FPGA TSILI internal TSxL1 connected with CMC Site 2 and SIS3150 FPGA TS1L2 internal TSxL2 connected with CMC Site 1 and SIS3150 FPGA TS1L3 internal TSxL3 connected with CMC Site 2 and SIS3150 FPGA TS2LO gt internal TSxLO connected with CMC Site 1 and SIS3150 FPGA TS2L1 gt internal TSxL1 connected with CMC Site 2 and SIS3150 FPGA TS2L2 internal TSxL2 connected with CMC Site 1 and SIS3150 FPGA TS2L3 internal TSxL3 connected with CMC Site 2 and SIS3150 FPGA TigerSHARC to TigerSHARC point to point connections TS1L2 TS2L3 TS1L3 lt TS2L2 In SIS3150 Firmware versions 31500101 and 31500102 the point to point connections are set by design In future Firmware versions it will be programmable by VME Slave register access The following point to point connections are closed
39. erated upon a write cycle to the register Bit write Function 31 none 4 none 3 none 2 none 1 TMS 0 TDI 4 2 9 XILINX JTAG_DATA_IN register define SIS3150_JTAG_DATA_IN 0x20 read D32 This register is used in the firmware upgrade process over VME only It is at the same address as the JTAG_TEST register and is used in read access It operates as a shift register for TDO The contents of the register is shifted to the right by one bit with every positive edge of TCK and the status of TDO is transferred to Bit 30 Bit 31 reflects the current value of TDO during a read access 4 2 10 XILINX JTAG_CONTROL register define SIS3150_JTAG_CONTROL 0x24 write only D32 This register is used in the firmware upgrade process over VME only Bit Function write 31 31 none 4 4 none 3 3 none 2 2 none 1 MUX_CMC_JTAG 0 SIS3150 JTAG control 1 CMC Sites JTAG control 0 JTAG_OUT_EN 0 Disable JTAG output 1 Enable JTAG output Page 17 of 73 SIS Documentation SIS3150USB USB2 0 to VME interface SIS GmbH y VME 4 3 TS BUS internal TigerSHARC Bus The Windows driver offers the following calls int int int ine 4 4 EXPORT EXPORT sis3150Usb_TsBus_Single_Read H sis3150Usb_TsBus_Dma_Read HAN ULONG addr U D ANDLE usbDevice LONG addr ULONG data E usbDevice
40. fixed 38000000 DR Page 51 of 73 SIS Documentation SIS3 150USB USB2 0 to VME interface 10 18 vme_dma_read This VI is the block transfer VME read cycle VI An array with size elements is initialized to the inivalue and req_num_data words are read from the specified address Address increment is switched of with fifo_mode 1 got_num_words displays the number of retrieved words and 4 array elements are displayed in destU32array You can request a large number of words and check got_num_words for the actual word count after a bus error after reading data from a SIS3820 multiscaler in FIFO mode e g 1e_dma_read vi Page 52 of 73 SIS Documentation SIS3150USB SIS GmbH USB2 0 to VME interface VME 11 LINUX LINUX support for the SIS3150USB is provided on the SIS CDROM We do not have feedback on LINUX driver based installations at this point in time however and are not working with the LINUX driver in house 11 1 Isusb The SIS3150USB will be seen as shown below linuxmki home ume lsusb Bus 002 Device 002 ID 1657 3150 Bus 002 Device 001 ID 0000 0000 Bus 001 Device 002 ID 045e 0040 Microsoft Corp Wheel Mouse Optical Bus 001 Device 001 ID 0000 0000 linuxmki home une Entry of the SIS GmbH USB vendor Id and the SIS3150 into later versions of the usb ids file was taken care of Ona SUSE 10 0 distribution kernel 2 6 13 15 smp e g you will get output in the form shown b
41. ie auf Fertig stellen um den Vorgang abzuschlie en lt Zur ck Fertig stellen Abbrechen Page 41 of 73 SIS Documentation SIS3 150USB USB2 0 to VME interface 9 2 SIS3150USB base program The SIS3150USB base program is a convenient tool to execute VME cycles with the USB to VME interface It has a graphical user interface and is based on National Instruments Labwindows CVI development environment The program with the CVI runtime engine RTE can be installed by running the setup executable in the cvidistkit directory EE SS Era 257 SE O cvidistkit sis3150_usb_base siscd_170105 sis3150usb Driver wind EA siscd_170105 7 EDistFile WinZip File 14 01 2005 09 50 DI a 15330x 1 460 KB Anwendung 14 01 2005 09 50 Ei a sis3150usb 1 470 KB Anwendung 14 01 2005 09 50 E a Doc 68KB Anwendung 14 01 2005 09 50 E Driver up 1KB Konfigurationseinst 14 01 2005 09 50 a a Windows 19 s1s3150 USB Base 2 300 KB Windows Installer P 14 01 2005 09 50 El sis3150usb_vme_applications El 3150winlabview E cvi_applications ED 5is3150_usb_base 5 cvibu 4 10000 QUIT Note The SIS3150 USB base program checks for USB devices in a cyclic manner as long as the USB Device check slide bar is set to On The scan resets the user LED on the SIS3150 in case it was set switched on with a control write Page 42 of 73 SIS Documentation SIS3150USB SIS Gmb
42. ile the minor revision level will be used to mark user specific adaptations Bit Function Reading 31 Module Id Bit 15 30 Module Id Bit 14 3 29 Module Id Bit 13 28 Module Id Bit 12 27 Module Id Bit 11 26 Module Id Bit 10 1 25 Module Id Bit 9 24 Module Id Bit 8 23 Module Id Bit 7 22 Module Id Bit 6 5 21 Module Id Bit 5 20 Module Id Bit 4 19 Module Id Bit 3 18 Module Id Bit 2 0 17 Module Id Bit 1 16 Module Id Bit 0 15 Major Revision Bit 7 14 Major Revision Bit 6 13 Major Revision Bit 5 12 Major Revision Bit 4 11 Major Revision Bit 3 10 Major Revision Bit 2 9 Major Revision Bit 1 8 Major Revision Bit 0 7 Minor Revision Bit 7 6 Minor Revision Bit 6 5 Minor Revision Bit 5 4 Minor Revision Bit 4 3 Minor Revision Bit 3 2 Minor Revision Bit 2 1 Minor Revision Bit 1 0 Minor Revision Bit 0 Major revision number Application user 0x20 Generic SIS3150USB design Page 11 of 73 SIS Documentation SIS3150USB USB2 0 to VME interface SIS GmbH VME 4 2 3 USB TS Link Connect Register write read define SIS3150USB_TS_LINK_CONN TS Link Breaker Enable Register See chapter TS LINKs not all bits ECT_REG 0x2 Bit meaning Functi
43. ites 5 3 2 TigerSHARC After Reset also Power Up Reset the TigerSHARC s External Data Port is configured in 32 bit Bus Width Mode Therefore at first the TS_REG_SYSCON has to be programmed 5 3 3 SDRAM Supported 32 bit and 64 bit access to SDRAM Note Access to the SDRAM is only allowed after the SDRAM Controller of the TigerSHARC TS1 is configured and enabled Page 30 of 73 SIS Documentation SIS3150USB SIS GmbH USB2 0 to VME interface VME 6 TigerSHARC The two TigerSHARCs the two CMC Sites and the SIS3150 FPGA VME interface use a common bus 32 bit address and 64 bit data on the SIS3150 Additional a 64 Mbyte SDRAM and a 512 Kbyte 8 bit Flashprom not yet supported are connected also to the common bus Each TigerSHARC has access to the CMC Sites to the other TigerSHARC to the SDRAM and to the Flashprom not yet supported The TigerSHARC TS1 has the processor ID 0 and the TigerSHARC TS2 has the pocessor ID 1 6 1 TigerSHARC global Memory Map The TigerSHARC DSP has an internal a multiprocessor space and an external space The internal space inside the DSP consisting of a set of registers and three Memory Blocks 6Mbit each 2Mbit INTERNAL SPACE GLOBAL SPACE 0x0000 0000 0x0000 0000 INTERNAL MEMORY LOSE INTERNAL SPACE 0x0000 FFFF 0x003F FFFF RESERVED RESERVED INTERNAL MEMORY 0x0008 0000 BROADCAST 0x01C0 0000 BLOCK 1 0x0008 FFFF 0x0200 0000 RESERVED PROCE
44. le_Write HANDLE usbDevice ULONG addr ULONG data int sis3150Usb_Register_Dma_Write HANDLE usbDevice ULONG addr ULONG dmabufs ULONG req_nof_data ULONG put_nof_data Page 8 of 73 SIS Documentation SIS3150USB USB2 0 to VME interface SIS GmbH VME 4 1 1 USB Register Space Address Map Offset R W Function Register 0x0 R W USB Control Status register 0x1 R Module Id and firmware revision register 0x2 R W USB TS Link Connect Register 0x3 R W USB LEMO Out Select Register 0x10 R W USB VME Master Status Control register 0x11 R USB VME Master Cycle Status Register 0x12 R USB VME Interrupt Status Register 0x20 R W USB XILINX JTAG_TEST JTAG_DATA_IN 0x21 W USB XILINX JTAG_CONTROL 0x40 R W Test Register 32 bit read write register 0x100 KA Key reset all 0x101 KA Key CMC1 Hardware Reset pulse 20ms 0x102 KA Key CMC Logic Reset 0x103 KA Key TigerSHARCs Reset pulse 2us 0x110 KA Key TigerSHARCs TS1 IRQ2 Request 0x111 KA Key TigerSHARCs TS2 IRQ2 Request Us 10000000 R USB Address Data Test space T Read Data Read Address 0x1 FFFFFF 0x20000000 R USB Speed Test space Read Data Speed Counter OxFFFFFFF The Speed Counter increments every L ns 62 5 MHz The shorthand KA stands for key address Write access with arbitrary data to a key address initiates the s
45. lle installieren f r fortgeschrittene Benutzer Klicken Sie auf weiter um den Yorgang fortzusetzen lt Zur ck Abbrechen The SIS3150 USB driver did not undergo the Windows Logo Test but you will want to continue installation anyway Assistent f r das Suchen neuer Hardware 5 Die Software wird installiert nn Y e Cypress EZ USB FX2 68613 5153150 USB VME Controller 15 12 2004 z Hardwareinstallation A Die Software die f r diese Hardware installiert wird Cypress EZ USB FX2 68613 5153150 USB YME Controller 15 12 2004 hat den W indows Logo Test nicht bestanden der die Kompatibilit t mit Windows XP berpr ft Warum ist dieser Test wichtig Das Fortsetzen der Installation dieser Software kann die korrekte Funktion des Systems direkt oder in Zukunft beeintrachtigen Microsoft empfiehlt strengstens die Installation jetzt abzubrechen und sich mit dem Hardwarehersteller f r Software die den Windows Logo Test bestanden hat in Verbindung zu setzen Installation fortsetzen Installation abbrechen In the last step you finish installation Page 40 of 73 SIS Documentation SIS3150USB SIS GmbH USB2 0 to VME interface VME Assistent f r das Suchen neuer Hardware Fertigstellen des Assistenten Sy Die Software fur die folgende Hardware wurde installiert Cypress EZ USB FX2 68613 5153150 USB VME ee Controller 15 12 2004 Klicken S
46. mpted for a filename with sis3 150usb_load_dsp_fileprompt The error code is 0 upon successful completion An error code of 4 indicates access to a non existing file as illustrated below b gt sis3150_load_dsp vi Front Panel 10 5 sis3150usb_version Returns the version of the used sis3150usb_vme_win DLL implemented January 20 of 2008 as shown in the screenshot below The format of the returned hex value is ddmmyy00 b gt sis3150usb_version vi Front Panel Note call implemented for the first time in DLL generated on January 20 of 2008 sis3 register_dma_write Page 45 of 73 SIS Documentation SIS3 150USB USB2 0 to VME interface 10 6 sis3150usb_register_dma_write Block transfer write to register address space 10 7 sis3150usb_register_dma_read Block transfer read from register address space sis3150_register_dma_read vi Front Panel Page 46 of 73 SIS Documentation SIS3 150USB USB2 0 to VME interface 10 8 sis3150usb_register_sgl_write Single word write to register space Used to control SIS3150 properties a write with datum 1 to address 0 as shown below will switch on user LED e g ES sis3150_register_sgl_write vi Front Panel Sn 5 10 9 sis3150usb_register_sgl_read Single word read from register space A read from address 1 will return the module Id and firmware revision as illustrated below e g is3150_register_sgl d vi Front Pa
47. nel Gester Mindo Page 47 of 73 SIS Documentation SIS3 150USB USB2 0 to VME interface 10 10 sis3150_tsbus_dma_write Block transfer write to the TigerSHARC address space Used to initialize SDRAM memory in the example below with 0x12341234 e g C TE E Eoo 10 11 sis3150_tsbus_dma_read Block transfer read from TigerSHARC address space Used to read chunks of data from SDRAM memory e g Page 48 of 73 SIS Documentation SIS3 150USB USB2 0 to VME interface 10 12 sis3150_tsbus_sgl_write Single word write to TigerSHARC space ES sis3150_tsbus_sgl_write vi Front Panel y Help 10 13 sis3150_tsbus_sgl_read Single word read from TigerSHARC space Page 49 of 73 SIS Documentation SIS3 150USB USB2 0 to VME interface 10 14 vme_read This VI allows the execution of VME single read cycles Input parameter are address AM address modifier and size 4 bytes 2 bytes or 1 byte Successful execution is flagged by a O error code with the error LED off 10 15 vme_write This VI is the single write counterpart to vme_read with the same parameter set Page 50 of 73 SIS Documentation SIS3 150USB USB2 0 to VME interface 10 16 vme_a32d32_read This VI is the A32 D32 version of the more general vme_read VI AM and size are fixed 10 17 vme_a32d32_write This VI is the A32 D32 version of the more general vme_writeVI AM and size are
48. on 31 no 0 12 no 0 11 no 0 10 no 0 9 TS1 Link3 gt TS2 Link2 Set clear 0 not connected 1 connected 8 TS 1 Link2 gt TS2 Link3 Set clear 0 not connected 1 connected 7 TS2 Link3 lt gt internal TSx Link3 0 always disabled reserved 6 TS2 Link2 lt gt internal TSx Link2 0 always disabled reserved 5 TS2 Link1 lt gt internal TSx Link1 0 always disabled reserved 4 TS2 Link0 lt gt internal TSx LinkO 0 always disabled reserved 3 TS1 Link3 lt gt internal TSx Link3 0 always disabled reserved 2 TS1 Link2 lt gt internal TSx Link2 0 always disabled reserved 1 TS1 Link1 lt 7 internal TSx Link1 1 always enabled connected with SIS3150 FPGA TS VME Master DMA 0 TS1 Link0 lt gt internal TSx Link0 1 always enabled connected with CMC 1 Link 1 Page 12 of 73 SIS Documentation SIS3 150USB USB2 0 to VME interface SIS GmbH VME 4 2 4 USB LEMO Out Select Register write read define SIS3150USB_LEMO_OUT_SELECT_REG 0x3 Bit meaning Function 31 reserved no 30 reserved no 29 VME Slave Lemo Out 2 1 VME Slave Control Bit LEMO Out 2 is ored to LEMO OUT 2 28 USB Lemo Out 2 1 USB Control Bit LEMO Out 2 is ored to LEMO OUT 2 27 reserved no 26 reserved no 25 reserved no 24 CMC 1 Trigger 1 CMC 1 T
49. pecified function Page 9 of 73 SIS3150USB USB2 0 to VME interface SIS Documentation SIS GmbH VME 4 2 USB Register description The function of the individual registers is described in detail in this section The first line after the subsection header in Courier font like define SIS3150_CONTROL_STATUS 0x0 refers to the sis3150usb h header file 4 2 1 USB Control Status Register write read define SIS3150USB_CONTROL_STATUS 0x0 The control register is in charge of the control of some basic properties of the SIS3150 board like enabling test pulse generators It is implemented via a selective J K register a specific function is enabled by writing a 1 into the set enable bit the function is disabled by writing a 1 into the clear disable bit which location is 16 bit higher in the register An undefined toggle status will result from setting both the enable and disable bits for a specific function at the same time On read access the same register represents the status register Bit write Function read Function 31 Clear reserved control bit 15 0 24 0 23 Status LEMO In 2 Latch 22 Status LEMO In 1 Latch 21 Clear USB LEMO Out 2 Status LEMO In 2 20 Clear USB LEMO Out 1 Status LEMO In 1 19 Clear USB LEMO Out control bit 0 18 Clear USB XILINX JTAG Control bit CMC reset pulse active 21ms 17 switch off user LED U2 0 16 swi
50. power up SIS9921 LED Function L1 Unused under FX2 control L2 USB1 USB2 distinction L3 Unused under FX2 control L4 FX2 setup USB activity Page 55 of 73 SIS Documentation SIS3150USB SIS GmbH USB2 0 to VME interface VME 13 2 USB1 USB2 0 Distinction After power up LEDs L2 and L4 are on unless a user program driver has initialized the USB controller on board of the SIS3150 right away The SIS3150 runs in USB1 mode if L2 is on and in USB2 0 mode if L2 is off after download of the FX2 setup file flagged by L4 off Note LED L4 is used to indicate USB activity also Page 56 of 73 SIS Documentation SIS3150USB SIS GmbH USB2 0 to VME interface VME 14 Jumpers connectors The SIS3150 has two rotary switches three 8 bit switches seven jumper fields and three JTAG connector Rotary Switch Function SW2 Selection of VME Slave Address A31 A28 SWI Selection of VME Slave Address A27 refer to section 5 1 8 bit Switch Function S80 Selection of VME Slave Address Mode and selection of Reset features S610 Selection of TigerSHARC Controls S620 Selection of TigerSHARC Controls Jumper field Function J10 VME System Controller 16 MHz Sysclock JP570 SIS3150 FPGA JTAG source JP580 CMC FPGA JTAG source JP_CMC1 CMC1 FPGA JTAG TDI TDO chain control JP_CMC2 CMC2 FPGA JTAG TDI TDO chain control J77
51. r space 36 TS hardware interrupts 32 TS_JTAG 62 TS BUS 8 tsbus_dma_read 48 tsbus_dma_write 48 tsbus_sgl_read 49 tsbus_sgl_write 49 Tundra 5 Tyco 66 USB 6 address map 9 device 8 register space 8 vendor Id 53 usb ids 53 USB1 56 USB2 0 56 user LED 23 VCC 61 62 VME 5 8 address 36 address map 22 base address 20 connector 66 readout speed 54 slave 20 63 slave address map 21 VME addressing 31 vme_a32d32 read 51 vme_a32d32_ write 51 vme_dma_read 52 vme_read 50 vme_write 50 VME64x 20 Windows Driver 39 XC18V04 59 Page 73 of 73
52. rce has to be activated with the enable VME IRQ source bit again In ROAK release on acknowledge mode the interrupt condition will be cleared and the IRQ source disabled as soon as the interrupt is acknowledged by the CPU After the interrupt is serviced the source has to be activated with the enable VME IRQ source bit again Bit Function Default 31 0 vi 0 16 0 15 0 14 0 13 0 12 RORA ROAK Mode 0 RORA 1 ROAK 0 11 VME IRQ Enable 0 IRQ disabled 1 IRQ enabled 0 10 VME IRQ Level Bit 2 0 9 VME IRQ Level Bit 1 0 8 VME IRQ Level Bit 0 0 H IRQ Vector Bit 7 placed on D7 during VME IRQ ACK cycle 0 6 IRQ Vector Bit 6 placed on D6 during VME IRQ ACK cycle 0 5 IRQ Vector Bit 5 placed on D5 during VME IRQ ACK cycle 0 4 IRQ Vector Bit 4 placed on D4 during VME IRQ ACK cycle 0 3 IRQ Vector Bit 3 placed on D3 during VME IRQ ACK cycle 0 2 IRQ Vector Bit 2 placed on D2 during VME IRQ ACK cycle 0 1 IRQ Vector Bit 1 placed on D1 during VME IRQ ACK cycle 0 0 IRQ Vector Bit 0 placed on DO during VME IRQ ACK cycle 0 The power up default value reads 0x00000000 Page 25 of 73 SIS Documentation SIS3150USB SIS GmbH USB2 0 to VME interface VME 5 2 5 Interrupt Control Status register OxC define SIS3150_IRO_CONTROL OxC read write D32 The interrupt sources are enabled with the interrupt control register The interrupt source is cl
53. rigger is ored to LEMO OUT 2 23 reserved no 22 TS2 Flag 2 1 TS2 Flag 2 is ored to LEMO OUT 2 21 TS2 Flag 1 1 TS2 Flag 1 is ored to LEMO OUT 2 20 reserved no 19 reserved no 18 TS1 Flag 2 1 TSI Flag 2 is ored to LEMO OUT 2 17 TS1 Flag 1 1 TSI Flag 1 is ored to LEMO OUT 2 16 reserved no Bit meaning Function 15 reserved no 14 reserved no 13 VME Slave Lemo Out 1 1 VME Slave Control Bit LEMO Out 1 is ored to LEMO OUT 1 12 USB Lemo Out 1 1 USB Control Bit LEMO Out 1 is ored to LEMO OUT 1 11 reserved no 10 reserved no 9 reserved no 8 CMC 1 Trigger 1 CMC 1 Trigger is ored to LEMO OUT 1 7 reserved no 6 TS2 Flag 2 1 TS2 Flag 2 is ored to LEMO OUT 1 5 TS2 Flag 1 1 TS2 Flag 1 is ored to LEMO OUT 1 4 reserved no 3 reserved no 2 TS1 Flag 2 1 TSI Flag 2 is ored to LEMO OUT 1 1 TS1 Flag 1 1 TSI Flag 1 is ored to LEMO OUT 1 0 reserved no denotes power up default setting i e the power up reading of the register is 0x10001000 USB Lemo Out Bits are selected Note TS Flags are low active Page 13 of 73 SIS Documentation SIS3150USB SIS GmbH i USB2 0 to VME interface VME 4 2 5 USB VME Master Status Control register read write define SIS3150USB_VME_MASTER_CONTROL_STATUS 0x10 The control register is in charge of the control of most of the basic properties of the SIS3150 board in write access It is implemented via a selecti
54. s well below 1 us can be accomplished with execution under control of the TigherSHARC 12 1 Performance speed test The readout speed on a particular PC can be measured with a VME memory Chrislin e g or a VME slave with memory SIS330x ADC e g with the Visual C program speed_test_vme Page 54 of 73 SIS Documentation SIS3150USB SIS GmbH USB2 0 to VME interface VME 13 Front Panel Elements The SIS3150USB has 12 front panel LEDs 2 LEMO 00 input 2 LEMO 00 ouput connectors and a type A USB connector 13 1 Front Panel LEDs The SIS3150 USB has 8 LEDs on the SIS3150 carrier card and 4 LEDs on the SIS9921 USB CMC card Designation LED Color Function A Access yellow Signals VME Slave access to the unit P Power red Flags presence of VME power R Ready green Signals configured logic U1 VME user LED green To be switched on off under user program control M VME Master yellow VME Master access T1 TS1_FLAG2 red Signals TS_FLAG2 of TigerSHARC 1 T2 TS2_FLAG2 green Signals TS_FLAG2 of TigerSHARC 2 U2 VME user LED green To be switched on off under user program control The LED locations are shown in the portion of the front panel drawing below AOOM POOT ROOT UID Que SIS3150 The Power and Ready LEDs reflect the current status the other LEDs are monostable i e the duration of the on phase is stretched for better visibility An LED test cycle is performed upon
55. tch off user LED U1 CMC detect 15 Set reserved control bit 15 Status reserved control bit 15 6 D A 5 Set USB LEMO Out 2 Status USB LEMO Out 2 Bit 4 Set USB LEMO Out 1 Status USB LEMO Out 1 Bit 3 Set USB LEMO Out control bit Status USB LEMO Out control bit 2 Set USB XILINX JTAG Control bit Status USB XILINX JTAG Control bit 1 switch on user LED U2 Status User LED U2 0 switch on user LED U1 Status User LED U1 1 LED on 0 LED off denotes power up default setting i e the power up reading of the register is 0x0 the LEDs could be also set from VME Slave side see USB LEMO Out Select Register LEMO In 1 2 Latch is set on the leading edge of LEMO In 1 2 gt 16ns and is cleared on read access if it was set USB LEMO Out Control bit 0 USB LEMO Out Control bit 1 USB XILINX JTAG Control bit 0 USB XILINX JTAG Control bit 1 VME Slave LEMO Out control USB LEMO Out control VME Slave XILINX JTAG control USB XILINX JTAG control Page 10 of 73 SIS Documentation SIS3150USB SIS GmbH USB2 0 to VME interface VME 4 2 2 Module Id and Firmware Revision Register read define SIS3150USB_MODID_VERSION 0x1 This register reflects the module identification of the SIS3150 SIS3150USB and its minor and major firmware revision levels The major revision level will be used to distinguish between substantial design differences and experiment specific designs wh
56. together TSILO lt gt internal TSxLO TS1L1 lt gt internal TSxL1 TS1L2 lt gt internal TSxL2 TS1L3 internal TSxL3 connected with CMC Site 1 connected with CMC Site 2 connected with CMC Site 1 connected with CMC Site 2 Page 33 of 73 SIS Documentation SIS3150USB USB2 0 to VME interface SIS GmbH VME 7 TigerSHARC Internal Space Address Translation Table VME TigerSHARC 7 1 TigerSHARC TS1 Memory Space VME offset TS1 Memory Space TS1 offset TS2 offset ry Sp 0x02000000 Block 0 0x00000000 0x02400000 tO 16 KLWord 64 KByte ES ES 0x0200fffc program code data 0Ox00003f ff 0x02403f ff 0x02010000 Block 0 0x00004000 0x02404000 ES 48 KLWord 192 KByte ES EO 0x0203fffc free user buffer Ox0000ffff 0x0240ffff 0x02200000 Block 1 0x00080000 0x02480000 to 16 KLWord 64 KByte to ES 0x0220fffc 0x00083f ff 0x02483fff program code data 0x02210000 Block 1 0x00084000 0x02484000 to 48 KLWord 192 KByte cO TO 0x0223fffc free user buffer 0Ox0008ffff 0x0248ffff 0x02400000 Block 2 0x00100000 0x02500000 to 16 KLWord 64 KByte to Se 0x0240fffc program code data 0Ox00103f ff 0Ox02503f ff 0x02410000 Block 2 0x00104000 0x02504000 to 48 KLWord 192 KByte ES EO 0x0243fffc free user buffer Ox0010ffff Ox0250ffff Page 34 of 73 SIS Documentation SIS3150USB USB2 0 to VME interface SIS GmbH I VME 7 2 TigerSHARC TS2 Memory Space
57. ttings if S80 1 ON S80 3 Bits 31 30 29 28 27 OFF SW2 SW1 zt loi Cl eat CH ON A ti E EECHER OIOIOIOIO if SW1 between 0 and 7 then address selectection if A27 0 if SW1 between 8 and F then address selectection if A27 1 Shorthand Explanation SW2 SW1 Setting of rotary switch SW2 or SW1 respective y don t care GAO GA4 _ Geographical address bit as defined by the VME64x P backplane Example S80 1 ON and S80 3 OFF SW2 and SW1 0 or 1 7 gt VME Base Address 0x 2000 0000 or SW2 9 and SWI 8 or9 F gt VME Base Address 0x 9800 0000 Page 20 of 73 SIS Documentation SIS3150USB USB2 0 to VME interface SIS GmbH VME 5 1 1 VME Slave Address map of SIS3150 Common Bus Space VME Slave Space REGISTER KEY ADDRESSES RESERVED FLASHPROM RESERVED CMC Site 1 CMC Site 2 TS1 TS2 SDRAM 0x0000 0x0000 0x0080 0x009F 0x0100 0x0180 0x0200 0x0300 0x0400 0x07FF 0000 OFFF 0000 FFFF 0000 0000 0000 0000 0000 FFFF Page 21 of 73 SIS Documentation SIS3150USB SIS GmbH i USB2 0 to VME interface VME 5 1 1 1 VME Register Space The implemented VME registers are listed in the table below Offset R W Mode Function Register 0x0 R W
58. upt sources is given in the following subsections IRQ Source 0 A high to low transition of the TS1_FLAGO will set the Status Flag 0 IRQ Source 1 A high to low transition of the TSI_FLAGI will set the Status Flag 1 IRQ Source 2 A high to low transition of the TS2_FLAGO will set the Status Flag 2 IRQ Source 3 A high to low transition of the TS2_FLAGI will set the Status Flag 3 IRQ Source 4 no source reserved for CMC1 IRQO IRQ Source 5 no source reserved for CMC1 IRQ1 IRQ Source 6 no source reserved for CMC2 IRQO IRQ Source 7 no source reserved for CMC2 IRQ1 Page 27 of 73 SIS Documentation USB2 0 to VME interface SIS3150USB SIS GmbH VME 5 2 6 LEMO Out Select Register write read define SIS3150_LEMO_OUT_SE I ECT _R EG 0x10 This register allows you to select the source s that are driving the LEMO outputs on the SIS3150 board Bit meaning Function 31 reserved No 30 reserved No 29 VME Slave Lemo Out 2 1 VME Slave Control Bit LEMO Out 2 is ored to LEMO OUT 2 28 USB Lemo Out 2 1 USB Control Bit LEMO Out 2 is ored to LEMO OUT 2 27 reserved No 26 reserved No 25 reserved No 24 CMC 1 Trigger 1 CMC 1 Trigger is ored to LEMO OUT 2 23 reserved No 22 TS2 Flag 2 1 TS2 Flag 2 is ored to LEMO O
59. ve J K register a specific function is enabled by writing a 1 into the set enable bit the function is disabled by writing a 1 into the clear disable bit which location is 16 bit higher in the register An undefined toggle status will result from setting both the enable and disable bits for a specific function at the same time Bit Write Function Read Function 31 Clear SYSTEM VME BERR TIMER BIT1 0 30 Clear SYSTEM VME BERR TIMER BITO 0 29 Clear LONG TIMER BIT1 0 28 Clear LONG TIMER BITO 0 27 no function 0 26 no function 0 25 no function 0 24 no function 0 23 no function 0 22 Clear VME REQUESTER TYPE BIT 0 21 Clear VME_REQ_ LEVEL BIT1 0 20 Clear VME_REQ_ LEVEL BITO 0 19 no function 0 18 no function 0 17 Clear VME_SYSRESET bit 0 16 no function Status VME System Controller 3 15 Set SYSTEM VME BERR TIMER BIT1 Status SYSTEM VME BERR TIMER BIT1 14 Set SYSTEM VME BERR TIMER BITO Status SYSTEM VME BERR TIMER BITO 13 Set LONG TIMER BIT1 Status LONG TIMER BIT1 12 Set LONG TIMER BITO Status LONG TIMER BITO 11 no function 0 10 no function 0 9 no function 0 8 no function 0 7 no function 0 6 Set VME REQUESTER TYPE BIT Status VME REQUESTER TYPE BIT 5 Set VME_REQ_ LEVEL BIT1 Status VME_REQ_ LEVEL BIT1 4 Set VME_REQ LEVEL BITO Status VME_REQ_ LEVEL BITO 3 no function 0 2 no function 0 1 Set
60. vme_calls h Examples int vme_A32D32_read HANDLE hxXDev u_int32 t vme_adr u_int32_ t vme_data int vme_A32MBLT64_read HANDLE hXDev u_int32_t vme_adr u_int32_t vme_data u_int32_t req_num_of u_int32_t got_no_of_ lwords lwords Note req_num_of_lwords and got_no_of_lwords are counted in longwords Page 19 of 73 SIS Documentation SIS3150USB SIS GmbH USB2 0 to VME interface VME 5 VME Slave 5 1 VME Slave Addressing The SIS3150 module occupies an address space of Ox 7FF FFFF Bytes i e 128 MBytes The SIS3150 firmware addressing concept is a pragmatic approach to combine standard rotary switch style settings with the use of VME64x backplane geographical addressing functionality The base address is defined by the selected addressing mode which is defined by DIP Switch S80 1 2 3 4 and possibly rotary switch SW2 and SW1 in non geographical mode 12 345678 S80 1 ON A32 addressing enabled o B S80 2 OFF reserved D EENEENE S80 3 OFF VME address compared with SW2 SW1 S80 4 OFF reserved OFF S80 1 S80 3 Description EN_A32 EN_GEO OFF OFF non A32 addressing reserved for future use OFF ON non A32 addressing reserved for future use ON OFF _ A32 addressing address compared with SW1 SW2 ON ON A32 addressing address compared with geographical address The table below illustrates the possible base address se

Download Pdf Manuals

image

Related Search

Related Contents

Christie Roadster HD12K DLP x3 User Guide Manual    MANUAL DE INSTRUCCIONES PARA SOLDADORA DE ARCO    取扱説明書 - Microsoft  電気は安全に 正しく使いましょう。  ECW-281B-945GSE Embedded System  

Copyright © All rights reserved.
Failed to retrieve file