failed to simulate veriloga in hspice

Status
Not open for further replies.

zongya

Newbie level 5
Joined
Mar 5, 2015
Messages
10
Helped
2
Reputation
4
Reaction score
2
Trophy points
3
Visit site
Activity points
70
Hi all,

I'm trying to simulate a veriloga vccs in hspice.

Here is my veriloga code for vccs:

// VerilogA for fishy1, asl6, veriloga

`include "constants.vams"
`include "disciplines.vams"

module asl6 (p, n, ps, ns);

inout p, n, ps, ns;
electrical p, n, ps, ns;
parameter g = 1.0;

analog begin

I(p, n) <+ g * V(ps, ns);

end

endmodule

And here is the netlist


But when I tried to simulate it, it shows me the error :


I googled the error "call to epvaHDLcgen failed.", people said it occurs because of the directory. But my directory is correct...I mean "home/somnathchakr/vlsix/veriloga.va" is correct.

Can anyone help me with it? Thanks in advance!
 

"home/somnathchakr/vlsix/veriloga.va" is a relative pathname.
You probably should use an absolute one:
"/home/somnathchakr/vlsix/veriloga.va"

Just a guess!
 

"home/somnathchakr/vlsix/veriloga.va" is a relative pathname.
You probably should use an absolute one:
"/home/somnathchakr/vlsix/veriloga.va"

Just a guess!

Hi erikl,

Thank you for your reply. I tried to add "/" at the front but still have the same error. Actually, I tried to delete the ".hdl" line in the netlist file and add a command line " -hdl veriloga.va " in the command. It shows me the same error.


This means it can find my .va file, and read 'constants.vams' and 'disciplines.vams' in, but cannot find my defined circuit?
 

Instead of

Code PHP - [expand]
1
.hdl "/home/somnathchakr/vlsix/veriloga.va"


try

Code PHP - [expand]
1
.include "/home/somnathchakr/vlsix/veriloga.va"

 

Instead of

Code PHP - [expand]
1
.hdl "/home/somnathchakr/vlsix/veriloga.va"


try

Code PHP - [expand]
1
.include "/home/somnathchakr/vlsix/veriloga.va"


Thank you erikl, but it gives me the same errors.

Someone said he solved the same problem by putting the .va file under the original installation directory like \Hspice\Demo\hspice\veriloga\. But I'm using my university's PC and only have read permission for that. Plus, I didn't find we have a veriloga folder in the installation directory...
 

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