Re: Weird XST error initializing record type on reset

Discussion in 'VHDL' started by Marc Guardiani, Mar 11, 2011.

  1. On Friday, March 11, 2011 12:34:34 AM UTC-5, Bart Fox wrote:
    > Am 11.03.11 00:41, schrieb Don Otknow:
    > > and it worked fine. Does anyone have any insight into why these cases
    > > are handled so differently?

    > I think the "(others => (others =>" works only for arrays like:
    > type six_vectors is array(0 to 5) of : std_logic_vector(15 DOWNTO 0);
    >
    > For records I define an default constant beside:
    >
    > constant default_six_vectors: six_vectors := (
    > vect_a => (others => '0'),
    > vect_b => (others => '0'),
    > vect_c => (others => '0'),
    > vect_d => (others => '0'),
    > vect_e => (others => '0'),
    > vect_f => (others => '0')
    > );
    >
    > You can use this default constant in your reset path.
    > And you can easily mix diffrent data types in your record.
    > Also you can never forget to reset an value in this record if you use
    > the constant. The compiler will complain if the default constant is not
    > complete.
    >
    > regards
    > Bart


    But regardless of how one might butcher the syntax, the compiler should never crash as it did for the OP.

    -- Marc
    Marc Guardiani, Mar 11, 2011
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Santosh
    Replies:
    0
    Views:
    726
    Santosh
    Mar 16, 2006
  2. Santosh
    Replies:
    0
    Views:
    585
    Santosh
    Mar 16, 2006
  3. colin
    Replies:
    0
    Views:
    846
    colin
    Aug 30, 2007
  4. suraj.jain
    Replies:
    0
    Views:
    506
    suraj.jain
    Jun 21, 2009
  5. Don Otknow
    Replies:
    4
    Views:
    1,408
    Bart Fox
    Mar 18, 2011
Loading...

Share This Page