Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 veriloga spectre error 

Last post Mon, Dec 23 2013 11:47 PM by Manikanta123. 1 replies.
Started by Manikanta123 22 Dec 2013 04:22 AM. Topic has 1 replies and 6600 views
Page 1 of 1 (2 items)
Sort Posts:
  • Sun, Dec 22 2013 4:22 AM

    veriloga spectre error Reply

    Below is the veriloga code i wanted to run in spectre to record zero crossing times.

     

    I am getting the error:

    Error found by spectre during AHDL compile.
        ERROR (VACOMP-2259): "last=$last_crossing<<--?  (V(in), +1); "
            "/home/srm/cadencesch/varcap/last_cros/veriloga/veriloga.va", line 17:
            syntax error.

     

    // VerilogA for varcap, last_cros, veriloga

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

    module last_cros(in);
    input in;
    voltage in;
    parameter integer dir=1 from [-1:1] exclude 0;
    integer fp;
    real last;

    analog begin
    last = 1.0;
    @(initial_step)
    fp= $fopen("zerocrossings");
    last=$last_crossing (V(in), dir);             <--------------------------------------line number 17

    @(cross(V(in), dir))
    $fstrobe( fp, "%0.10e", last);

    @(final_step)
    $fclose(fp);

    end
    endmodule

    • Post Points: 5
  • Mon, Dec 23 2013 11:47 PM

    Re: veriloga spectre error Reply

    Got it

     last=$last_crossing (V(in), dir);  

    remove $ infront of last_crossing function;

    • Post Points: 5
Page 1 of 1 (2 items)
Sort Posts:
Started by Manikanta123 at 22 Dec 2013 04:22 AM. Topic has 1 replies.