Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Verilog-A Accuracy Settings

Status
Not open for further replies.

zhipeng

Member level 1
Joined
Apr 9, 2009
Messages
36
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,286
Location
USA
Activity points
1,573
I am using Verilog-A to generate a carrier-frequency stimulus to an power amplifier in virtuoso schematics, but saw a mysterious frequency shift in the stimulus when I run spectre simulation. It reduces to a basic test case where,

parameter real omega = 2* `M_PI *20e9;
...
V(pure_sine) <+ sin(omega * $abstime);
V(test) <+ (omega * $abstime);
...

The waveform of V(test) looks as if omega was 2*`M_PI *(20e9 - 5e4) instead of 2*`M_PI *20e9. The generated carrier frequency stimulus is now (20GHz-50kHz) instead of 20GHz. Somehow, the accuracy reduced from 32-bits to roughly 18-bits.

Anyone knows how to force Verilog-A to be 32-bit accurate in generating a sine wave?
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top