|
SPI Serial Peripheral
Interface – Master/Slave IP Core
General
Description:
The DSPI is a fully configurable SPI
master/slave device IP Core, which allows user to configure polarity and phase of
serial clock signal SCK. It allows the microcontroller to communicate with
serial peripheral devices. It is also capable of interprocessor
communications in a multi-master system. A serial clock line (SCK)
synchronizes shifting and sampling of the information on the two
independent serial data lines. DSPI data are simultaneously transmitted
and received. The DSPI is a technology independent design that can be
implemented in a variety of process technologies. The DSPI system is
flexible enough to interface directly with numerous standard product
peripherals from several manufacturers. The system can be configured as a
master or a slave device. Data rates as high as CLK/4. Clock control logic
allows a selection of clock polarity and a choice of two fundamentally
different clocking protocols to accommodate most available synchronous
serial peripheral devices. When the SPI is configured as a master,
software selects one of four different bit rates for the serial clock.
The DSPI automatically drive selected by SSCR (Slave Select Control
Register) slave select outputs (SS7O – SS0O), and address SPI slave
device to exchange serially shifted data. Error-detection logic is
included to support interprocessor communications. A writecollision
detector indicates when an attempt is made to write data to the serial
shift register while a transfer is in progress. A multiple-master
mode-fault detector automatically disables DSPI output drivers if more
than one SPI devices simultaneously attempts to become bus master.
DSPI is fully customizable, which means it is delivered in the
exact configuration to meet users’ requirements. There is no need to
pay extra for not used features and wasted silicon. It includes fully
automated testbench with complete set of tests allowing easy
package validation at each stage of SoC design flow.
DSPIis a technology independent design that can be implemented in a
variety of process technologies.
|
Key Features:
- SPI Master
- Master and Multi-master operations
- 8 SPI slave select lines
- System error detection
- Mode fault error
- Write collision error
- Interrupt generation
- Supports speeds up ¼ of system clock
- Bit rates generated 1/4, 1/8, 1/ 16, 1/32 of
system clock.
- Four transfer formats supported
- Simple interface allows easy connection to
microcontrollers
|
- SPI Slave
- Slave operation
- System error detection
- Interrupt generation
- Supports speeds up ¼ of system clock
- Simple interface allows easy connection to
microcontrollers
- Four transfer formats supported
- Fully synthesizable
- Static synchronous design
- Positive edge clocking and no internal tri-states
- Scan test read
|
|
Applications:
- Embedded microprocessor boards
- Consumer and professional audio/video
- Home and automotive radio
- Low-power applications
- Communication systems
- Digital multimeters
|
Units
Shift register and Read Data Buffer
It is a central element in the SPI system. The system is
single buffered in the transmit direction and double buffered in the
receive direction. This fact means new data for transmission cannot be
written to the shifter until the previous transaction is complete;
however, received data is transferred into a parallel read data buffer so
the shifter is free to accept a second serial character. As long as the
first character is read out of the read data buffer before the next serial
character is ready to be transferred, no overrun condition will occur.
When an SPI transfer occurs, an 8-bit character is shifted out on data pin
while a different 8-bit character is simultaneously shifted in a second
data pin. Another way to view this transfer is that an 8-bit shift
register in the master and another 8-bit shift register in the slave are
connected as a circular 16-bit shift register. When a transfer occurs,
this distributed shift register is shifted eight bit positions; thus, the
characters in the master and slave are effectively exchanged.
SPI Clock Logic
Software can select any of four combinations of serial
clock (SCK) phase and polarity using two bits in the SPI control register
(SPCR). The clock polarity is specified by the CPOL control bit, which
selects an active high or active low clock and has no significant effect
on the transfer format. The clock phase (CPHA) control bit selects one of
two fundamentally different transfer formats. The clock phase and polarity
should be identical for the master SPI device and the communicating
slave device. In some cases, the phase and polarity are changed between
transfers to allow a master device to communicate with peripheral slaves
having different requirements. The flexibility of the SPI system on the
DSPI allows direct interface to almost any existing synchronous serial
peripheral.
SPI Controller
SPI Controller manages the Master/Slave operation and controls the
transmission. The SPI Controller manages the transmission speed and format
(Phase and polarity). Controller is also responsible for generating of
interrupt request and detection of transmission errors.
Registers
Control Register may be read or written at any time, is used to
configure the DSPI System. This register controls the mode of transmission
(Master, Slave), polarity and phase of SPI Clock and transmission speed.
Status Register (SPSR) is read only register contains flags
indicating the completion of transfer or occurrence of system errors. All
flags are set automatically when the corresponding event occur and cleared
by software sequence.
Slave Select Control Register configures which slave select output
should be driven while SPI master transfer. Contents of SSCR register is
automatically assigned on SS7O-SS0O pins when DSPI master transmission
starts.
Licensing Options:
Comprehensible and
clearly defined licensing methods
without royalty fees make using the IP Core easy and simple..
-
Single Design license
allows implementation of IP Core in single
FPGA bitstream and/or ASIC design.
-
Unlimited Designs license, allows
implementation of
IP Core in unlimited number of FPGA bit-streams and ASIC designs. In all cases number of IP Core instantiations
within a design, and number of manufactured chips are unlimited.
- One Year license
for Encrypted Netlist only
- Single Design
license for VHDL, Verilog source code called
HDL Source
- Encrypted, or plain text EDIF called Netlist
- Unlimited Designs license for HDL Source or Netlist
Price:

|
|

Deliverables:
-
Source code:
- VHDL Source Code or/and
- VERILOG Source Code or/and
- Encrypted, or plain text EDIF
-
VHDL & VERILOG test bench
environment:
- Active-HDL automatic simulation macros
- ModelSim automatic simulation macros
- Tests with reference responses
-
Technical documentation:
- Installation notes
- HDL core specification
- Datasheet
-
Synthesis scripts
-
Example application
-
Technical support
- IP Core implementation support
- 3 months maintenance (delivery of the IP Core updates, minor
and major versions changes, delivery of the documentation updates)
- Phone & email support
|
DSPI implementation results for ALTERA devices. The CPU features
and Peripherals have been included. |
| Implementation |
Speed
Grade |
Utilized
Area [LC] |
Frequency
[MHz] |
| MAX3K |
-5 |
104 |
84 |
| FLEX10KE |
-1 |
174 |
144 |
| ACEX1K |
-1 |
174 |
136 |
| APEX20KE |
-1 |
180 |
171 |
| APEX20KC |
-7 |
180 |
207 |
| APEX
II |
-7 |
179 |
247 |
| MERCURY |
-5 |
180 |
288 |
| STRATIX |
-5 |
164 |
273 |
| CYCLONE |
-6 |
164 |
213 |
DSPI implementation results for XILINX devices.
The CPU features and Peripherals have been included. |
| Implementation |
Speed
Grade |
Utilized
Area [Slices] |
Frequency
[MHz] |
| VIRTEX |
-6 |
82 |
100 |
| VIRTEX-E |
-8 |
82 |
126 |
| VIRTEX-II |
-5 |
82 |
138 |
DSPI
implementation results for LATTICE devices. The CPU features
and Peripherals have been included. |
| Implementation |
Speed
Grade |
Utilized
Area [LUT/PFU] |
Frequency
[MHz] |
| ispXPGA |
-4 |
137 / 40 |
101 |
| ORCA4E |
-3 |
160 /
26 |
71 |
| ORCA3T |
-7 |
150 /
26 |
55 |
|
Tel : + 1 408 781-8043
Fax: + 1 408 268-4173
info@hitechglobal.com
2059 Camden Ave. Suite # 160
San Jose, CA 95124 - USA |
|











|