Figure 4 : Local Bus to DSP Connectivity..................................................................27
Figure 5 : DSP Transfer via the Local Aperture 0......................................................30
Figure 6 : Timing diagram for DSP local bus access.................................................32
Figure 7 : SMT310 to PCI Interrupts..........................................................................34
Figure 8 : PCI to SMT310 Interrupts..........................................................................35
Figure 9 : Jumper Finder Diagram.............................................................................50
Page 7 of 50 SMT310 User Manual V1.6
Table Of Abbreviations
BAR Base Address Region
DMA Direct Memory Access
EPLD Electrically Programmable Logic Device
PCI Peripheral Component Interconnect
SDB Sundance Digital Bus
SRAM Static Random Access Memory
TBC Test Bus Controller
TIM Texas Instruments Module
Table 1 : Table of Abbreviations
1 Introduction
The SMT310 is a single site module carrier board that provides access to a TIM
module over the PCI bus.
An on-board JTAG controller allows systems to be debugged using Code Composer
Studio. This JTAG controller also has buffered outputs that can be accessed using
connectors on the carrier’s back panel. This allows off-board devices to be connected
into the JTAG chain.
A single buffered ComPort with conflict protection is also available on the chassis
back panel. This will have the versatility to access any of four ComPorts on the TIM.
The main connection to the PCI bus is via the module Global Bus. A single ComPort
is also be mapped to the PCI bus providing support for application boot and data
transfer.
A 1 MB of SRAM is mapped on to the Global Bus and can be accessed by the TIM as
a global resource or by the PCI Bridge.
The board requires a 3.3 volt supply that is taken from the PCI edge connector and is
made available at the fixing pillars for the module.
An ‘on-board’ SDB interface to the PCI Bridge allows the card to be interfaced to SDB
standard modules.
The PCI interface connects to a Quick Logic EPC363 Bridge device. It has a 32-bit
33MHz PCI interface that supports I2C control, mailbox register access, and direct
memory reads and writes. The PCI bus is translated to a Local PCI bus, which is
connected to the following devices:
• Shared SRAM 1MB
• Control EPLD that manages ComPort access and the SDB interface
• JTAG controller
• Module Global Bus
• PCI Bridge device
An on-board arbitration unit controls which device, Master Module or PCI Bridge, has
access to this local PCI bus resource.
The local PCI bus has a 33MHz clock to control transfers between the various
resources. This is available on the CLKIN pin on the Master site and should be
selected in preference to the on-board oscillator to allow the DSP to synchronise its
accesses to and from the PCI Bridge registers. The PCI Bridge has an input and
output FIFO capable of transferring 256 32-bit words of data to and from the DSP at
33MHz, thus bursting a maximum local bus transfer rate of 132MB/s.
The Master Module can access the SRAM over the PCI local bus at transfer rates up
to 100MB/s. The number of wait states required by the Master Module will vary
depending on the speed of the module. Maximum access rates use a 20ns strobe
cycle.
The JTAG controller is based on the TI 8990 device, and drivers can be supplied for
Code Composer Studio (Part Number
SMT6012).
The on-board SDB connector can be configured with a jumper to be either an input
port or an output port, accessible via the Host PCI interface. It is not intended as a
high-speed link as it has only a single 16-bit FIFO.
• Turn the PC off and insert the Card into a spare PCI slot.
• Switch on PC and wait for the OS to boot up.
• Windows 95/98/NT/2000 will detect a new hardware.
• Windows should automatically find the drivers from the CD, if not browse to the
CD or if you downloaded from the ftp site to the folder where you unzipped the
SMT6300 software.
• When you run it, 3L application software will be able to detect the SMT310
provided the SET TISLINK variable is set to SMT320.
• You can run the SMTBoardInfo application to detect the number of SMT310s in
your system and report their slot positions and I/O addresses. This information is
required when setting up code composer for the board. SMTBoardInfo is installed
as part of the SMT6300 package.
Please see V363EPC Local Bus PCI Bridge User Manual V1.04
(http://www.quicklogic.com/home.asp?PageID=223&sMenuID=114#Docs) for details
of internal registers.
Note: Where required, registers from the V3 datasheet have been included.
4.2 I/O Space Register Assignments (BAR1)
In target mode, the SMT310 is accessed by a host device across the PCI bus. This
allows access to the target mode registers. The operating system or BIOS will
normally allocate a base address for the target mode registers of each SMT310.
Access to each register within the SMT310 is then specified by this base address and
the offset shown in the table below.
The I/O address space is decoded as shown in the table below.
Offset Register(Write) Register(Read) Width
0x0 - -
0x4 - -
0x8 - -
0x0C - -
0x10 COMPORT_OUT COMPORT_IN 32
0x14 CONTROL STATUS 32
0x18 INT_CONTROL 32
0x1C - -
0x20 to 0x3F COMPORT Configuration COMPORT Configuration
0x0000 0000 – 0x000F FFFF Shared Memory Bank 1MB SRAM
0x00200090
ComPort Data
Mirror
Mirror of COMPORT_OUT /
COMPORT_IN in
I/O Space
Register Assignments
(BAR1)
See Note 2
0x00200094
ComPort Status
Mirror
Mirror of Control / Status in I/O
Space Register
Assignments (BAR1)
See Note 2
0x00200098
ComPort Int_Control
Mirror
Mirror of Int_Control in I/O
Space Register
Assignments (BAR1)
See Note 2
0x0020 0000-0x0020 007F Global Bus See Note 1
0x0020 0240 – 0x0020 025F SDB Data Register Input/Output 16 bit SDB Interface
0x0020 0260 – 0x0020 027F SDB Control Register SDB Control/Status
Table 3 : Memory space map
Note 1: In order for the TIM to respond to accesses for this area address line
GADD30 and GADD19 of the TIM site connector must be decoded as high and
GADD7 and GADD5 must be decoded as low.
Note 2: These mirrors of Addresses in the I/O Space (BAR1) allow increased transfer
speeds across the host ComPort link (in excess of 10X increase).
The Master module on the SMT310 can access the various resources available,
including the Shared SRAM and the PCI Bridge. Access to the PCI Bridge allows the
DMA engine in the PCI Bridge to be initiated by the DSP, mailbox registers can also
be manipulated. The table below illustrates the resources and their corresponding
address region when accessed by the Master module.
C60 Address Access Description Notes
0xD000 0000 – 0xD00F FFFF Shared Memory Bank 1Mbyte SRAM
The shared memory on the SMT310 is 1 MB of SRAM, which can be accessed by the
PCI host and the TIM module. This allows applications to transfer data between the
host PC and the DSP at data rates approaching 100MB/s. The address of the shared
memory is shown in the memory map.
The PCI Bridge DMA processor sees the shared memory at a different address from
that used for normal accesses. For normal memory access the memory base address
register offset is 0x0000 0000. For DMA access address line A28 (On hardware
interface) must be high, therefore DMA memory access starts at 0x4000 0000 (Not
0x1000 0000 as addressing is in bytes).
A growing number of Sundance’s Modules have an on-board SDB. The SDB is
described on the Sundance web site at www.sundance.com/html/pdf_info.htm .
The following register controls the carrier’s SDB.
D7 D6 D5 D4 D3 D2 D1 D0
X X OFFF IPFF RW RW RW RXNTX
Table 5 : SDB Control Register
The SDB control and status register is located at BAR2 offset 0x00200260. The bit
definitions are shown below:
RXNTX
SDB Direction. The SDB direction is set using Jumper J8 (
Figure 9 : Jumper Finder Diagram) on the SMT310, When the jumper is
out the SDB is set for receive mode; when the jumper is in the SDB is set
for transmit mode. This bit indicates the direction set: 0=Receive,
1=Transmit.
RW
IPFF
General scratch bits
Input FIFO full: When set, a 16-bit value has been latched in the data
register ready for reading. This bit is automatically cleared on a read from
the data register.
OPFF
Output FIFO full: This bit is set when a 16-bit value is written to the FIFO
and is automatically cleared when it has been sent out of the SDB.
The SDB data register is located at BAR2 offset 0x00200240. You can write 16-bit
values to this location to transfer them over the SDB interface as long as the OPFF
flag in the status register is clear and J8 jumper is in.