Bit masking in System Verilog

Status
Not open for further replies.

degalabalaji1992

Newbie level 1
Joined
Oct 6, 2015
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
5
What is meant by Bit Masking when we are taking 8-bits of Address i want to mask some of the bits which are not considered while evaluating Address?
 

I checked the LRM but didn't find anything that was specifically SV about bit masking?

bit masking is usually just some and operation with a mask to remove some bits from consideration
e.g.
Code:
parameter mask 8'hF0;
assign decode_c = (addr & mask) == 8'hC0;

In this example we are looking for the addresses that fall between 0xC0 - 0xCF
 

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