hi all,
how to get benum class random varibale in module.
requement is: i need to write assertions to for particular address mode and these address mode is randomizing in class this randomization variable i need to get in module file
hi all,
how to get benum class random varibale in module.
requement is: i need to write assertions to for particular address mode and these address mode is randomizing in class this randomization variable i need to get in module file
In reply to ramDV:
Hii RamDV,
Through your statement, this is what i concluded,
Your sequence and sequence_item changes the address mode(randomizes)between 7bit_addr and 10bit_addr, Then two things can be done.
Here i am assuming your assertion has interface as input arguments.
Your assertion can sample the sda and can detect the 10bit_addr byte {120,121,122,123}, if your assertion detect this value in first byte then addr mode is detected in assertion itself.
You can take a bit in interface (such as addr_pin) and driver can configure the pin according to the packet received by it from sequencer, For clear view,
If 7bit_addr mode is given than set the bit to low (0),for 10bit_addr set it to high(1).
Since the addr_pin is in interface your assertion module can easily detect it.
Other possible way of doing this is from your agent_config,through agent_config it can set.This approach is the most reliable one.