Professional Documents
Culture Documents
Abstract This paper presents a verification architecture of The specification defines the Bluetooth Host and the Bluetooth
the Bluetooth Low Energy Link Layer Controller. The tested Controller. The Bluetooth Host consists of software layers.
controller is a hardware implementation of the lower layers, The Host Controller Interface (HCI) is a set of services
de- scribed in the Bluetooth Low Energy Specification. The defined between Host and Controller and may be implemented
designed testbench uses a UVM methodology and over any communication protocol (e.g. USB, I2C). The
constrained random verification techniques to meet the Bluetooth Controller architecture is not fixed and may be
expected functional coverage metrics. different depending on requirements. In general, there is a
I.INTRODUCTION hardware part, such as physical (PHY) and link layers and a
The most demanding challenges for the testbench design are firmware part, running on CPU and controlling the hardware.
meeting the specification requirements and quality standards. The purpose of this work is to verify the digital hardware
There is no universal approach for successful verification of partofthedesignedcontroller-theBLELinkLayerController (later
any design, usually several solutions are used to achieve ex- referred as DUT). The design firmware code is reused in the
pected metrics. One of the most important goals is meeting the verification environment as a part of the Layering Agent. The
functional requirements. It means the verification environment BLE Link Layer Controller has two interfaces: CPU interface
must prove that the design follows the protocol-specific rules (e.g. APB or AXI) and physical layer interface connection to
defined in the standard. Moreover, it must be tested whether the analog PHY. The PHY functionality is limited to very
the requirements are met under any conditions, whether the basic operations, as the protocol coding itself is handled by the
design is resistant to transmission errors and unexpected BLE Link Layer Controller. The PHY functional model has
states, such as connection loss or access collisions.The been developed, which translates analog PHY interface into a
Universal Verification Methodology (UVM) is a framework physical channel model. The physical channel corresponds to
that provides a structural solution for complex verification the real radio environment. Therefore several PHYs can be
environments. The methodology allows to auto- mate the online at once, which allows to test complex network
implementation process and makes easier to add new scenarios. The CPU interface and the Bluetooth physical layer
features. It also simplifies the infrastructure planning e.g. interface (BLE interface) are controlled by UVM Agents. The
allows to easily collect and analyse the coverage data.There is Layering Agent implements the firmware over both interfaces.
a number of related work discussing verification The BLE Interface Agent and the Layering Agent coupled
environments. A UVM example is presented in for mixed- together can be called the BLE Controller Model, that must be
signal system (testbench is used to estimate the power con- capable of generating some random events, such as delays or
sumption). In this paper we present a verification environment transmission errors. Use of Layering Agents allows that test
designed for verification of the Bluetooth Low Energy Link scenarios can be implemented using HCI level of abstraction
Layer Controller. in both, CPU and physical interfaces.
II.BLUETOOTH LOW ENERGY VERIFICATION III.TESTBENCH ARCHITECTURE
SCOPE The verification environment was designed to verify a network
Bluetooth Low Energy (BLE) is a packet-based protocol [3]. that consists of up to two BLE Controllers (DUTs) and up to
20
All rights reserved by www.ijrdt.org
Paper Title:-Verification of Bluetooth Low Energy Controller In UVM Methodology
eighty BLE Controller Models. The test harness is shown in testbenchstructure. It consists of Virtual Sequencer, coverage
Figure 1. The harness connects components using physical components, Scoreboard, Agents and Layering Agents. It can
channel model of the real radio environment. Implementation be configured using parameters that allow to modify its
of this connection gives an opportunity to verify different structure for various test scenarios.
transaction scenarios using an arbitrary network structure. The • Test is the top level of the component hierarchy. It controls
harness is connected to the UVM environment by CPU the generation of the environment and initiates the test
Interface Agent(s) and BLE Interface Agent(s). A sequences.
generictestbench architecture for verification of BLE The BLE Interface Agent acts like a regular Bluetooth device.
Controller is shown in Figure 2. A designed architecture was Using UVM configuration mechanism, it may be set up as a
created in a way that number of agents connected to the transmitter, receiver or coverage collector without any
harness can be easily modified for each testcase. The main implementation changes. Bluetooth packet is an information
components of the designed UVM testbench are: • Agent unit which is used as an air interface packet in the link layer
encapsulates a sequencer (SQR), driver (DRV) and monitor for all Bluetooth devices. In BLE Interface Agent, Bluetooth
(MON). Sequencer creates streams of transactions and sends a packets are stored in the basic UVM data item - BLE
Sequence Items downstream to a driver. Sequence Item. This basic data item contains all essential
information about carrying BLE Packet including its structure
and additional data as a protocol delay or interface errors. The
BLE Interface Driver is responsible for initiating requests for
new transactions and driving them to the DUT (with delay
control). It includes all of the bitstream processing features
Fig. 1. Test harness like CRC generation and checking or data whitening. When
Driver pulls those transaction and maps the Sequence Items to BLE Interface Agent works in receiver mode, it is capable of
the signal level format required by the DUT interface. Monitor collecting data from the interface and packing it to the
observes signals on the interface and assembles sequence sequence data item.
21
ISSN:-2349-3585 |www.ijrdt.org
Paper Title:-Verification of Bluetooth Low Energy Controller In UVM Methodology
22
ISSN:-2349-3585 |www.ijrdt.org
Paper Title:-Verification of Bluetooth Low Energy Controller In UVM Methodology
23
ISSN:-2349-3585 |www.ijrdt.org