case statements triggered on strength of variables

N

nehaqua@gmail.com

Guest
Hi,
I want to exceute certain piece of code on the basis of the input
signals.
All the input signals are initially pulled up '1'.
What I want is whenever some of the input signals go to 'St1' only
then case statement excites & not on 'Pu1'.
There is no way by which we can use stengths in case statement except
using ASCII values in case expression.
Can anyone suggest me the better way to do it.
I dont want to use multiple if-else statements.
 
On Dec 10, 11:03 pm, "neha...@gmail.com" <neha...@gmail.com> wrote:

What I want is whenever some of the input signals go to 'St1' only
then case statement excites & not on 'Pu1'.
There is no way by which we can use stengths in case statement except
using ASCII values in case expression.
A logic gate input cannot distinguish St1 from Pu1, so it should not
be surprising that a language designed to simulate real logic does not
provide a way to do this. The only way I can see to do this in
procedural code would be to print the value with %v format into a
string and examine the ASCII values. If you used PLI, you could get
it to extract the strength and value and return it as a numeric code.
 

Welcome to EDABoard.com

Sponsor

Back
Top