Cadence Lab 8
Cadence Lab 8
Reg. no.
Exiting Cadence
This completes the initial setup for Cadence. If you plan to continue using Cadence (e.g., to
do an assignment) skip this step. To exit Cadence, in t he Command Interpreter Window
(CIW) select
File->Exit
What to Do Each Ti me You Run Cadence
1.
a.
7.
8.
9.
Run Xming
Login as: type your group name
cd <userid>
source.ee424
icfb&
Introduction
This tutorial will guide the readers through the basics of the Verilog-A modeling and Tools of the
Cadence Design framework to generate Verilog code.
Types of Libraries:
There are usually 3 types of libraries:
1. A set of common Cadence libraries- They come with the Cadence software and contain some
very basic components like such as C, R, L, Voltage and Current sources.
2. Libraries that come up with a certain design kit and that are related to a certain technology.
These are called as the Technology libraries. They can include different components that are
specifically being designed /modeled according to their manufacturers requirements. For
example, transistors with a certain model attached
3. User Designed libararies, where users can store their designs. They can include components
from both the cadence and technological libraries
Digital design
Digital design follows a top down methodology i.e. first code is written at a higher level of
abstraction in any HDL (hardware description language) and is transformed into hardware
using synthesizer.
Analog design
In Analog design bottom up approach is used i.e. designing has to be started from transistor
level.
Verilog- A
Verilog-A is hardware description language (HDL) for analog circuit and systems design.
The Verilog HDL was introduced in 1984 as a means for specifying digital systems at many
levels of abstraction, from behavioral to the structural.
The Verilog-A language allows the description of analog and/or mixed-signal systems with
varying amounts of detail. The analog behavioral capability allows the designer to span the
abstraction levels, allowing direct access to the underlying technology while maintaining
the capability of system-level modeling and simulation. As such, the analog and mixedsignal system can be described and simulated at a high-level of abstraction early in the
design cycle to facilitate full-chip architectural trade-offs. The resulting Verilog-A
description, as an executable specification, promotes communication and consistency
throughout the design process (from specification to implementation).
Structural descriptions are, in which a module is comprised of other child modules. Each
module in the structural definition of the system connects to one or more signals through
the modules ports or connection points.
Behavioral descriptions are, in a programmatic fashion with the Verilog-A language.
The behavior of a module is defined in terms of the values for each signal.
Mixed-level descriptions combine aspects of both structural and behavioral descriptions
at a variety of different abstraction levels.
Verilog modeling of a resistor.
module resistor(n 1 , n2);
inout n1 , n2;
electrical n1 , n2;
parameter real R = 1.0;
analog
I(n 1, n2) <+ V(n1, n2)/R;
Endmodule
Following window containing the symbol of the ADC will appear save this symbol.
Import the ADC in the test schematic from your library and connect the Vpwl at Vin port
and Vpulse at clk port with the following properties.
Make an output bus (type 'W') from the "dout<3:0>" output of the ADC. Make four smaller
wires
(type w') attached to the bus and connect pins to them, named "dout<3>",
"dout<2>", "dout<1>", and "dout<0>". Name the bus "dout<3:0>" and the small wires the
same names that you gave their respective pins.
Vpwl
Time 1 = 0
Voltage 1 = 0 V
Time 2 = 100m s
Voltage 2 = 5 V
Vpulse
Voltage 1 = 0 V
Voltage 2 = 5 V
Delay time = 0 s
Rise time = 50n s
Fall time = 50n s
Pulse width = 500u s
Period = 1m s