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.

How the simulator handle the 'X' logic?

Status
Not open for further replies.

enchanter

Member level 2
Joined
Mar 27, 2008
Messages
46
Helped
4
Reputation
8
Reaction score
4
Trophy points
1,288
Activity points
1,531
I got a piece of code from Xilinx coregen.

Code:
if ((not(IODRPCTRLR_RDY_BUSY_N)) = '1') then
    STATE <= WAIT4;
elsif (((not(ZIO_IN))) = '1' or (N_Term = "1111111")) then
    if (PNSKEW = '1') then       
        STATE <= SKEW;
    else
        STATE <= WAIT_FOR_START_BROADCAST;
    end if;            
else
    STATE <= INC_NTERM;
end if;

If
Code:
     IODRPCTRLR_RDY_BUSY_N = '1'
     ZIO_IN                            = 'X'
     N_Term                           = "1111111"
     PNSKEW                          = '1'
then what the value of STATE should be ?
 

STATE <= INC_NTERM
because X is not equal to 1
 

Hi Funzero:

thanks for your reply. But that is an OR logic. the N_Term = "1111111" is true.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top