Home > Community > Forums > Functional Verification > Weird error in ncvhdl

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

 Weird error in ncvhdl 

Last post Tue, May 6 2014 6:18 PM by ttran0671. 4 replies.
Started by sebgimi 14 Apr 2014 01:25 AM. Topic has 4 replies and 1966 views
Page 1 of 1 (5 items)
Sort Posts:
  • Mon, Apr 14 2014 1:25 AM

    • sebgimi
    • Not Ranked
    • Joined on Tue, Jan 7 2014
    • Posts 13
    • Points 200
    Weird error in ncvhdl Reply

    Hi all,

    I got error since I use env.cmd file and setenv commands. Below, this is what the compiler show me:

    ../RTL/analog_mux2_ent.vhdl:
                 S  : in real_vector (2**INPUTS_SEL-1 downto 0);
                                   |
    ncvhdl_p: *E,IDENTU (../RTL/analog_mux2_ent.vhdl,12|24): identifier (REAL_VECTOR) is not declared [10.3].
            errors: 1, warnings: 0

    With real type I've gor no error, but with real_vector I've got this error. Can you help please ?

    • Post Points: 20
  • Mon, Apr 14 2014 2:45 AM

    • StephenH
    • Top 25 Contributor
    • Joined on Tue, Sep 2 2008
    • Bristol, Avon
    • Posts 278
    • Points 4,450
    Re: Weird error in ncvhdl Reply

     You didn't say what your compilation command is, so I can only guess that you forgot the -v200x option. By default, ncvhdl expects VHDL87 code, so for the real_vector support you have to specifically enable compilation with support for the IEEE Std 1076-2008 standard which defines real_vector.

    More information can be found by runnning the "cdnshelp" application and searching in its GUI for "real_vector" - the first hit takes you to the relevant information including some examples and the compiler option.

    Steve Hobbs / Applications Engineer / Cadence Functional Verification
    • Post Points: 35
  • Mon, Apr 14 2014 3:29 AM

    • sebgimi
    • Not Ranked
    • Joined on Tue, Jan 7 2014
    • Posts 13
    • Points 200
    Re: Weird error in ncvhdl Reply

    You're right, the -v200x command solve the problem. Even though I've already used real_vector successfully without the command -v200x... 

    • Post Points: 20
  • Mon, Apr 14 2014 4:50 AM

    • muffi
    • Top 500 Contributor
    • Joined on Tue, Aug 4 2009
    • Bangalore, Karnataka
    • Posts 22
    • Points 305
    Re: Weird error in ncvhdl Reply

    sebgimi:

    You're right, the -v200x command solve the problem. Even though I've already used real_vector successfully without the command -v200x... 

     

    Probably you were compiling with the -ams switch. The REAL_VECTOR type was initially part of the IEEE LRM for VHDL with AMS extensions (1076.1-1999) standard. For a pure digital design you need to use -v200x switch.

     

    • Post Points: 5
  • Tue, May 6 2014 6:18 PM

    • ttran0671
    • Not Ranked
    • Joined on Tue, Dec 1 2009
    • Posts 11
    • Points 160
    Re: Weird error in ncvhdl Reply

     Hi Stephan,

       I got the same error when I did  VHDLin from CIW guide, I tried to specify this in the compiler option -v200x but it did not work.

    How do I specify this in  cdsenv or .cdsinit?

     

    Thanks in Advance

    Alan

    • Post Points: 5
Page 1 of 1 (5 items)
Sort Posts:
Started by sebgimi at 14 Apr 2014 01:25 AM. Topic has 4 replies.