Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
0
no loop for ranged type in simulation ?
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
06-06-2012 11:57 AM
Hi,
is there a way i get a loop instead of 'out of index'
signal test : integer range 0 to 3:=0;
test <= test + 1 ; --0 1 2 3 0 1 2.....
thx
0
Re: no loop for ranged type in simulation ?
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
06-06-2012 01:59 PM
nikmeilleur wrote:
Hi,
is there a way i get a loop instead of 'out of index'
signal test : integer range 0 to 3:=0;
test <= test + 1 ; --0 1 2 3 0 1 2.....
thx
test <= (test + 1) mod 4;
You're welcome.
----------------------------------------------------------------
Yes, I do this for a living.











