• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Need help quick, simple VHDL question.

blahblah99

Platinum Member
When defining an integer data type, for example,

counter: in integer range 0 to 255;

how would I access bit 2, or bit 3 of counter?

 
I can't remember exactly so I may be talking out my rear.

I think I used a ROT and INC/bit flip function to get to the 2nd bit...I still don't have my notes handy (just moved in and they are just in an unorganized pile).

You should be able to 'grab' the left most two bits also and ROT and INC/bit flip them. I am exhausted so maybe this at least gets you on the right path.
 
Back
Top