The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl Design Languages >> Verilog-AMS >> verilogA error: ARnow: Undefined variable. https://designers-guide.org/forum/YaBB.pl?num=1164576914 Message started by xter on Nov 26th, 2006, 1:35pm |
Title: verilogA error: ARnow: Undefined variable. Post by xter on Nov 26th, 2006, 1:35pm Hi, I have verilogA code that works when run in cadence spectre, but not in Hspice. It's included as a subckt. I) In attempting to debug this problem, I commented out everything except the port definitions. The code is saved in a file called stage5.va: `include "constants.vams" `include "disciplines.vams" module p_stage3_calib_model(VDD, Ph1, Ph2, Vrefp, Vrefn, Vip, Vin, D0M, D0L, S1, S0, Vop, Von); input Vip, Vin, Ph1, Ph2, Vrefp, Vrefn, VDD; output S1, output D0M, D0L; output Vop, Von; endmodule; II) The instantiation looks like this: yistage5 vdd1 Q1 Q2 vrefp vrefn vo6_p vo6_n d5l d5m SwitchRefHiStg5 SwitchRefLoStg5 vo5_p vo5_n p_stage3_calib_model III) In the .lis file, the error reads like this: During .hdl command processing, loading Verilog-A modules from './stage5.va'. hsp-vacomp: hsp-vacomp: Invoking the Verilog-A compiler for 'stage5.va' ** error ** During Verilog-A Device processing: Failed to compile the Verilog-A File, 'stage5.va'. IV) And at the command prompt, I get this error: ARnow: Undefined variable. I am out of things to try to debug this problem. I thought if I slowly worked through the code, I could isolate this undefined variable, but I took out everything, and still get it. Anyone have this error before? Thanks! Xter |
Title: Re: verilogA error: ARnow: Undefined variable. Post by Geoffrey_Coram on Nov 27th, 2006, 5:04am Two things that jump out at me: 1) comma at the end of output S1, should be a semicolon 2) In HSpice, VA instances must use 'x' (not 'y') as the first character of the instance name: yistage5 vdd1 Q1 ... Neither seems directly related to your problem, though. |
Title: Re: verilogA error: ARnow: Undefined variable. Post by xter on Nov 27th, 2006, 8:31am Hi, 1. The comma is a typo from the paste. It is a semi-colan in code. 2. I did switch it to x.. as the instance name, same error. [The reason I left it as y... was because I netlisted in HspiceD in analog design environment, and used that netlist. I figured if it was automatically netlisted then there would be less errors introduced by me.] Is there perhaps a version of hspice I should be using? I am currently using VY-2006.09 on a linux machine. Thanks, Xter |
Title: Re: verilogA error: ARnow: Undefined variable. Post by xter on Nov 27th, 2006, 8:41am Hi, I seem to have solved the problem. A co-worker mentioned the OS might matter, so I ran on a unix machine. This time I had more informative error messages and was able to easily debug. Thanks for taking the time to reply to this message. Cheers! Xter |
The Designer's Guide Community Forum » Powered by YaBB 2.2.2! YaBB © 2000-2008. All Rights Reserved. |