Function CONV_STD_LOGIC_VECTOR

Status
Not open for further replies.

dinesh.4126

Member level 5
Joined
Feb 27, 2008
Messages
83
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Activity points
1,841
Can Somebody provide help from below statement of conversion into bit as such cnt is in integer Point is that in (cnt ,3)(0) what I get is 3 is size of cnt signal and 0 is 0 bit like (cnt,3)(1) is 1 bit and similar cnt is second bit.
byte_ready<=CONV_STD_LOGIC_VECTOR(cnt,3)(0) and CONV_STD_LOGIC_VECTOR(cnt,3)(1) and CONV_STD_LOGIC_VECTOR(cnt,3)(2);

Regards,
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…