- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
for count<=x"0";
what does the x in front of "0" means?Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Why not consult a VHDL reference or text book? It means hexadecimal, in this case just 4 bits width.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Also notice an expression like 16#1F4# means hex based number, while x"0B2" is hex based 12 bit string.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
you can also use o and b to qualify octal and binary. You can also use underscore characters to help with readbility:
count <= b"0000_1101_0001"; count <= o"840"; count <= x"FF_00_08_1A";
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