- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
type
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
06-26-2010 01:08 PM
Hey guys,
even though my question is more basically on VHDL then on pico blaze it would be very nice if you could help me.
Here is my code:
architecture Sequenz of Rundenzaehler is
begin
type States is (Sleep, Setup, Calc);
Signal State, Fs : States := Sleep;
the bold line creates this error:
parse error, unexpected TYPE
Whats wrong about this? Do I have to define States in another file or add a package?
Thank you very much for your kind help
Daniel
Re: type
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
06-27-2010 11:05 PM
Hi Daniel,
Simple.
Declarations have to be done before the begin:
architecture Sequenz of Rundenzaehler is
-- begin -- wrong here
type States is (Sleep, Setup, Calc);
Signal State, Fs : States := Sleep;
begin
Have a nice synthesis
Eilert











