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.

.data command problem in hspice

Status
Not open for further replies.

shaq

Full Member level 5
Full Member level 5
Joined
Jul 23, 2005
Messages
311
Helped
14
Reputation
28
Reaction score
4
Trophy points
1,298
Activity points
3,397
enddata + hspice

Dear all,

I have a size of 100*75 matrix generated by MATLAB, wanna feed to a spice file to simulate by using Hspice.

I used .data p mer file='0_0.fn' vtest1=1 vtest2=2 .....vtest75=75

, and found error such as "number of parameters exceeds 50."

I just checked Hspice manual, found this sentence as written below

"Each .DATA statement can contain up to 50 parameters. If you need more than
50 parameters in a single .DATA statement, place 50 or fewer parameters in
the .DATA statement, and use .ALTER statements for the remaining
parameters."

So, I modified my spice file into as shown below

.data p mer file='0_0.fn' vtest1=1 vtest2=2 .....vtest50=50
.enddata

.alter
.data p mer file='0_0.fn' vtest51=51 vtest52=52.... vtest75=75
.enddata

but, still got error message as shown below

**error** no definition for 0:vtest51

**error** no definition for 0:vtest52
.
.
.
**error** no definition for 0:vtest75

What's going on my .data command?

Plz help me to solve this problem, thanks!!!!!!!
 

examples data command in hspice

Hi,


can u attach the data sweep + alter part of your netlist? I think this will help to figure out what's going on.

Thanks
 

no definition for error in hspice

Ok, my question is "how to solve the .data command constraint of 50 parameters in hspice ?"
 

+hspice more than 50 parameters data statement

Maybe there are some ways to deal with it.

First, you have to define the parameters vtest5* (* is 1~75) with .param command in the global variants.

The second, the commands are different as below:
.data p MER file='0_0.fn' vtest1=1 vtest2=2 .....vtest50=50 and
.data p LAM file='0_0.fn' vtest1=1 vtest2=2 .....vtest50=50
I think you have to use the LAM swithc other than MER.

If you change like this , there are also some erros. and your stimulus are digital,
you can try .vector command to edit your stimulus source.
[/b]
 

hspice no definition for error

U can use .vector statement in hspice as following:
(1) In hspice file, add a statement:
.vector "PATH/test.vec"
(2) In "test.vec" file, write the following code (here,7bit vector is used):
radix 1111111 /* the radix is binary for each vector bit.
vname data<7> data<6> data<5> data<4> data<3> data<2> data<1> /* the vector bits name which is the same with that of your circuit
io iiiiiii /* the vector is input
tunit ns /* the time unit is "ns"
trise 1 1111111 /* rise time is 1ns for all the vector bit
tfall 1 1111111 /* fall time is 1ns for all the vector bit
vih 1.8 1111111 /* high voltage level is 1.8V
vil 0.0 1111111 /* low voltage level is 0.0V
period 40 /*the period of data is 40ns. You can set whatever you want

good luck!
 
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top