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.

simulation script for HSIM

Status
Not open for further replies.

oAwad

Full Member level 2
Joined
Feb 15, 2017
Messages
136
Helped
0
Reputation
0
Reaction score
0
Trophy points
16
Activity points
1,312
Hello all,

It's my first time to use HSIM, so I read the manual and created a simulation script for my spice netlist.
Here is the script:
Code:
*define transistor model libraries
.lib NMOS_HP.lib NMOS_HP
.lib PMOS_HP.lib PMOS_HP 

*netlist from PEX extraction
.include aes_enc.pex.netlist  

*define clock
Vclk CLK_I 0 PULSE 0 1.1 0 10p 10p 1n 2n

*power supply voltage value
VDD VDD VSS 1.1

*setup parameters
.param HSIMFCM=2
.param HSIMOUTPUT=fsdb
.param HSIMVECTORFILE=input_vector.vec
.param HSIMSPEED=1       $0 is most accurate
.param HSIMVDD='VDD'
.param HSIMALLOWEDDV='VDD*0.1'
.param HSIMPOSTL=0    $if > 0 will apply RC reduction
.param HSIMANALOG=1      $0 is most accurate
.param HSIMREDEFSUB=1
.param HSIMOUTPUTVRES=0.1u
.param HSIMVPRECISION=5
.temp 27   $temperature

*Makes the simulation compatible with SPICE setting, such as tnom=27 defnrd=1 defnrs=1
.option spice

*define transient analyis, simulation step and simulation time
.tran 10p 532n

*print outputs
.print v(*) level=1
*print aggressor nets as well

*store outputs
.store simulation 0 532n

.end

But I have some questions:
1) My circuit has VDD and VSS as the global power ports. How to define VSS as the global ground in HSIM and tie it to 0 ?
2)How to view the output of this simulation ? I read that nWave waveform viewer can read the fsdb database, but is there commands to put in this script to show the printed output automatically?
3)I read that HSIM can do timing and power analysis, so does this make primetime obsolete ?

Thanks
 

1) learn spice syntax. it is not simulator related
2) learn spice and read simulator documentation. you probably want a .plot statement of sorts
3) no, they are very different engines for very different problems
 

1) learn spice syntax. it is not simulator related
2) learn spice and read simulator documentation. you probably want a .plot statement of sorts
3) no, they are very different engines for very different problems

1) I already have VSS defined in my spice netlist, but I want to assign VSS as the global ground in HSIM so that all input stimuli be referred to it.
3) Can you explain the differences regarding my point in a nutshell ? as your comment is quite vague

Thank you
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top