- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If I have a register like
signal REG : signed (31 downto 0); and I will use every part of it for other purposes, it'll be a mess if I just take the whole part like REG (31 downto 24) <= ... REG (23) <= ... REG (22) <= ... Do you know if we can assign it to another description without adding signals? like Data <= ... Flag <= ... ACK <= ... The software will understand Data will be REG (31 downto 24), instead of make another signal and let REG (31 downto 24) <= Data;Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What you want is called an alias, so rather than defining 'signal data : std_logic_vector ...' you would use:
alias data is reg(31 downto 24); Cheers, Dave- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you very much, Dave :)

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page