CODE
if ( EventA ) {
Var = 1;
}
if ( EventB ) {
Var = 2;
}
if ( EventC ) {
Var = 3;
}
Var = 1;
}
if ( EventB ) {
Var = 2;
}
if ( EventC ) {
Var = 3;
}
Where P( A | B ) = P( B | A ) = 0, and same for A and C, and B and C? My worry is that what I'm doing will be almost certainly impossible for Impulse C to detect as mutually exclusive events, and so Impulse C, in trying to preserve C language semantics, will stagger these if statements. In VHDL I would use a low-impedance signal whenever the event in question wasn't occurring, and so only the one that responds would get its value written to the register...
-Jonathan












