How to generate random signal in Hspice?

Status
Not open for further replies.

kennycs

Newbie level 2
Joined
Aug 17, 2009
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,291
hspice random

I want to konw how to generate random 0/1 signal in Hspice.thanks a lot!
 

use prbs (Pseudo Random-Bit Generator Source)
in hspice
it can generate random codes of 1/0
see maunal hspice_sa for more details ..
 
.param tdrate=400e6 $ Data rate in Gbps
.param trfx=200ps $ Rise/Fall time
.param vlox=-0 $ Input voltage 'low'
.param vhix=eas_vdd $ Input voltage 'high'
.param dperc='2/tdrate' $ Eye Period (2*Data width)
.param perx='1/tdrate' $ Data Width
.param tdx=100ps $ Delay of inputs


***** Input pattens *****
.param bit_num='30' $ Simulation time in term of number of data bits

vin in vss lfsr (vlox vhix tdx trfx trfx tdrate 1 [7,2] rout=10)
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…