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.

making a don't care to a valid value in post synthesis simulation

Status
Not open for further replies.

smiley_09

Newbie level 4
Joined
Jan 26, 2015
Messages
7
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
54
if suppose I increase the frequency due to which there will be setup violation due to which there is metastability at the output of register and an unknown value appear could be don't care"X". Now I have to compare this don't care value with a valid value. Lets suppose
A = XXXX;
B = 1234;
C = A XOR B....

now since i am comparing A and B and here both are different, so output should be 1 and not don't care....IF i am using casex then it is working fine in pre synthesis simulation but in post synthesis simulation the answer is "X". so how can I generate a valid value through this comparision in post synthesis simulation.
 

A = XXXX;
B = 1234;
C = A XOR B....

now since i am comparing A and B and here both are different, so output should be 1 and not don't care....IF i am using casex then it is working fine in pre synthesis simulation but in post synthesis simulation the answer is "X". so how can I generate a valid value through this comparision in post synthesis simulation.

XOR will only generate an output of 1 if A and B have opposite values of 1 and 0. Either value being X will generate and X on the output as it is now indeterminate if the output should be a 1 or 0. I think you need to review your Boolean bitwise operations. i.e. A XOR B is not the same operation as A /= B.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top