binary literals

11 views
Skip to first unread message

ahmad othman

unread,
Mar 1, 2022, 10:06:05 AM3/1/22
to chisel-users
if i have x value. as follow:
val x = UInt("b1010", 12)
how can i take the first 2 bits only from this value.
can i do:
val y= x(0,3)
and what does this mean
y= x(0)(0,6)
Reply all
Reply to author
Forward
0 new messages