- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I would like to know if its possible to read digits of an integer independent of each other.... for example, say i have an integer with a value "100". is it possible to assign each digit of an integer to say maybe 3 variables.. first one loaded with '1', 2nd & 3rd loaded with '0's? how do i code it if its possible? i hope im clear RegardsLink Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
found some info on the net n then wrote a code for converting Binary to BCD :)
Regards- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The whole point with the type system in VHDL is that things like integer do not have individual bits that you can access. For doing that, use unsigned/signed types instead.
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