Re: Weird XST error initializing record type on reset
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
But regardless of how one might butcher the syntax, the compiler should never crash as it did for the OP.
|All times are GMT. The time now is 12:56 AM.|
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.