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.

How to read such file in Hspice?

Status
Not open for further replies.

ilter

Member level 4
Joined
Jul 22, 2005
Messages
77
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
2,095
Dear all,
I have a question. How to read file in hspice?
Like
col0 col1 col2 col3
1n 1V 1V 0V
2n 1V 1V 0V
3n 1V 0V 0V
4n 1V 1V 0V
That is change like below

input1 pwl (1n 1V,2n 1V,3n 1V,4n 1V)
input2 pwl(1n 1V,2n 1V ,3n 0V,4n 1V)

Hspice can read file like this?
Thanks.
 

Re: read file~ hspice

ilter said:
Dear all,
I have a question. How to read file in hspice?
Like
col0 col1 col2 col3
1n 1V 1V 0V
2n 1V 1V 0V
3n 1V 0V 0V
4n 1V 1V 0V
That is change like below

input1 pwl (1n 1V,2n 1V,3n 1V,4n 1V)
input2 pwl(1n 1V,2n 1V ,3n 0V,4n 1V)

Hspice can read file like this?
Thanks.


You can use " .inc file_name "
The fisrt word of spice netlist can not be number .
The forst word "v " is for voltage source.
You have wrong format of "PWL "
You can check your netlist with spice user's guide.
 

Re: read file~ hspice

.DATA input
time v0
0u 1.8
1u 1.8
2u 0
3u 1.8
4u 1.8
.ENDDATA

Vv0 A0 0 PWL(time,v0)

I use this code.
It will be like (1).
But I want to my picture like (2).
How do I do?
Thanks.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top