B0643042212
B0643042212
I.
INTRODUCTION
558
Published By:
Blue Eyes Intelligence Engineering
& Sciences Publication
Design and Functional Verification of A SPI Master Slave Core using System Verilog
A disadvantage to SPI is the requirement to have separate
CS lines for each slave. With SPI we can connect as many
devices as many pins we have on the main microcontroller.
The speed of the communication between ICs is much faster
thanks for the Full Duplex proper of the SPI
communication.
III.
559
Published By:
Blue Eyes Intelligence Engineering
& Sciences Publication
International Journal of Soft Computing and Engineering (IJSCE)
ISSN: 2231-2307, Volume-2 Issue-2, May 2012
In the work mode, a master device connect with one or more
slave device, it can not be changed at this time. Other
devices want to control the slave device which has been
controlled by another master device, it must stop master
device’s working first and disconnect with it, then connect
to the new devices. In this way, a master device can select
multiple slave devices do not have to add extra chip select
pins and multiple master devices will use the TSM(Time
Sharing Multiplex) through the level of communication
priority to control the same slave device without to stop
working. So universal multiple devices SPI interface IP is
more flexible and effective.
ARCHITECTURE
560
Published By:
Blue Eyes Intelligence Engineering
& Sciences Publication
Design and Functional Verification of A SPI Master Slave Core using System Verilog
The Interrupt signal is deasserted after a Read or Write to
any register.In LSB If this bit is set, the LSB is sent first on
the line (bit TxL[0]), and the first bit received from the line
will be put in the LSB position in the Rx register (bit
RxL[0]).
If this bit is cleared, the MSB is transmitted/received first
(which bit in TxX/RxX register that is depends on the
CHAR_LEN field in the CTRL register).In Tx_NEG if this
bit is set, the mosi_pad_o signal is changed on the falling
edge of a sclk_pad_o clock signal, or otherwise the
mosi_pad_o signal is changed on the rising edge of
sclk_pad_o.In Rx_NEG if this bit is set, the miso_pad_i
signal is latched on the falling edge of a sclk_pad_o clock
signal, or otherwise the miso_pad_i signal is latched on the
rising edge of sclk_pad_o.In GO_BSY Writing 1 to this bit
starts the transfer. This bit remains set during the transfer
and is automatically cleared after the transfer finished.
Writing 0 to this bit has no effect. CHAR_LEN specifies
how many bits are transmitted in one transfer. Up to 64 bits
can be transmitted.
We also have one divider register DIVIDER. The value in
this field is the frequency divider of the system clock
wb_clk_i to generate the serial clock on the output
sclk_pad_o. The desired frequency is obtained according to
the following equation:
VI.
VERIFICATION PLAN
SIMULATION RESULTS
561
Published By:
Blue Eyes Intelligence Engineering
& Sciences Publication
International Journal of Soft Computing and Engineering (IJSCE)
ISSN: 2231-2307, Volume-2 Issue-2, May 2012
CONCLUSION
4.
5.
6.
7.
562
www.opencore.org.Simon
Srot.
“SPI
Master
Core
Specification”,Rev.0.6. May 16,2007.
“Design and Implementation of a Reused Interface” 978-0-76953887-7/09/$26.00 ©2009
IEEE.
Wikipedia, the free encyclopedia, “Serial Peripheral Interface
Bus”,Available
http://en.wikipedia.org/wiki/Serial_Peripheral_Interface_Bus.
Tianxiang Liu ”IP Design of Universal Multiple Devices SPI
Interface” 978-1-61284-632-3/11/$26.00 ©2011 IEEE.
Specification for the:“WISHBONE System-on-Chip (SoC)
Interconnection Architecture for Portable IP Cores”Revision: B.3,
Released: September 7, 2002.
Chris spear “System verilog for verification” second edition.
F. Leens, “An Introduction to I2C and SPI Protocols,” IEEE
Instrumentation & Measurement Magazine, pp. 8-13, February 2009.
Published By:
Blue Eyes Intelligence Engineering
& Sciences Publication
Design and Functional Verification of A SPI Master Slave Core using System Verilog
AUTHORS PROFILE
K. Aditya was born in vijayawada, Krishna
(Dist.), AP, India. He received B.Tech in E.C.E
from JNTU niversity, Anantapur, A. P, India.
Pursuing M. Tech in VLSI from KL University.
His research interest includes Low Power design
of VLSI circuits. Functional verification of
Digital circuits.
563
Published By:
Blue Eyes Intelligence Engineering
& Sciences Publication