Home > Community > Forums > Custom IC Design > How to use the -E command line argument??

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: *

 How to use the -E command line argument?? 

Last post Wed, Apr 8 2009 3:19 AM by Andrew Beckett. 1 replies.
Started by Biscuit 08 Apr 2009 01:35 AM. Topic has 1 replies and 1130 views
Page 1 of 1 (2 items)
Sort Posts:
  • Wed, Apr 8 2009 1:35 AM

    • Biscuit
    • Not Ranked
    • Joined on Wed, Apr 8 2009
    • Posts 1
    • Points 20
    How to use the -E command line argument?? Reply

    I confronted the error below when simulated a netlist (a SC filter)that had been proved to be all right. The error ask me to use the -E command line argument to run the cpp. But I have no ideal about the -E command. Hope someone can help me out. If it is so complicated, introduce some data that I could learn the -E command line is also useful. Thank you in advance!!

        
    • Post Points: 20
  • Wed, Apr 8 2009 3:19 AM

    Re: How to use the -E command line argument?? Reply

    It's possible to use C preprocessor statements in a spectre netlist (type man cpp for more details). Things like:

    #ifdef SOMETHING
    parameters r1=1
    #endif
    #include "someFile"

    If you do this, then you need to pass -E on the spectre command line to tell spectre that it needs to run through cpp first.  You can also do things like "spectre -DSOMETHING" to define a macro for cpp.

    For more information, look at "spectre -h" or read the spectre user guide and reference guide.

    Regards,

    Andrew.

    • Post Points: 5
Page 1 of 1 (2 items)
Sort Posts:
Started by Biscuit at 08 Apr 2009 01:35 AM. Topic has 1 replies.