Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top