Escolar Documentos
Profissional Documentos
Cultura Documentos
Guide:
Prof.Rajeev Pankaj N.
OBJECTIVES
Design Serial Peripheral Interface (SPI ) protocol using Verilog
Verification Using Universal Verification Methodology
INTRODUCTION
SPI (Serial Peripheral Interface) is an interface that facilitates the
LITERATURE SURVEY
There are other communication protocols like ETHERNET, USB, PCI-
Express. But these protocols are meant for outside the box
communication.
SPI is often considered for on-board communication or intra-chip
communication.
SPI is well suited for low/medium data transfer speed.
SPI MODULE
DESIGN FEATURES
Full duplex synchronous serial data transfer
Variable length of transfer word up to 128 bits
MSB or LSB first data transfer
Rx and Tx on both rising or falling edge of serial clock
independently
Fully static synchronous design with one clock domain
OPERATION
OPERATION
VERIFICATION PROCESS
Main purpose is to make sure the device can accomplish the task
successfully
Finding Bugs
Verification avoids product failure by removing the bugs
Integral part of development of any IP core
UNIVERSAL VERIFICATION
METHODOLOGY (UVM)
Open
Compatible
If
Test
Configurable,
At
Flexible Testbenches
TESTBENCH ARCHITECTURE
environments.
The library consists of base classes, utilities, and macros.
We can extend this predefined class to create our own class using
Inheritance.
e.g . uvm_monitor,uvm_test,uvm_driver
VERIFICATION PLAN
Description of what features of design need to be exercised and
techniques to be used .
I . Features Extraction Plan
MISO and MOSI signals are properly generated
Data transfer occurs correctly on Negative or positive edge of clock
Transfer of LSB or MSB bit first
Transfer of variable character length word
Verification Plan(Cont.)
II. Coverage Plan
Functional Coverage
Code Coverage
1. Branch Coverage
2. Statement Coverage
3. Toggle Coverage
4. FEC Coverage
. Covergroup is written with all possible coverpoints
23
24
25
26
27
CONCLUSION
The Complete Functionality can be exercised using UVM.
UVM is most efficient way for bug detection.
Developing and Verification of IP becomes very simple by using UVM
REFERENCES
Tianxiang Liu and Yunfeng Wang,IP Design of universal devices SPI Interface, IEEE
conference 2011.
A.K. Oudjida, M.L. Berrandjia, A. Liacha, R. Tiar, K. Tahraoui & Y.N. Alhoumays,
Design and Test of General-Purpose SPI Master/Slave IPs on OPB Bus, 2010 7th
International Multi-Conference on Systems, Signals and Devices.
A.K. Oudjida, M.L. Berrandjia, R. Tiar, A. Liacha, K. Tahraoui, FPGA Implementation of
I2C & SPI Protocols: a Comparative Study.
Frdric Leens, An Introduction to I2C and SPI Protocols, IEEE Instrumentation &
Measurement Magazine. IEEE, February 2009.
Shumit Saha, Md.Ashikur Rahman and Amit Thakur, Design and Implementation of SPI
bus protocol with built in self test capability over FPGA.International Conference on
Electrical Engineering and Information Technology 2014.
Motorola Inc. , SPI Block Guide V03.06.
REFERENCES
Janick Bergeron, Writing Testbenches: Functional Verification of HDL Models, Springer
US, 28-Feb-2003.
Chris Spear, System Verilog for Verification, Springer US
Accellera Organization, Universal Verification Methodology (UVM) 1.1 Class
Reference, June 2011.
Mentor Graphics Verification Academy, Cookbook Online Methodology
Documentation
Mentor Graphics Corporation, Questa SIM Users Manual, 1991-2011.
Verification plan.[online] http://www.testbench.in
Datasheet from Lattice Semiconductor, SPI Wishbone Controller, March 2014.
Thank You!!!