Geoffrey_Coram
|
How are you setting the value of that input pin -- do you have another module that sets it?
I also can't think of a way that you could possibly use that input to do anything useful.
I could imagine using a "string parameter" in VAMS: parameter string pin_to_check = "NONE";
if (pin_to_check == "INA") begin // do something end else if (pin_to_check == "INB") begin // do something end else $strobe(" pin_to_check=%s is not a valid pin!", pin_to_check);
But in this case, you have to have a set of fixed strings to check against. AMS allows only limited string operations, one of which is test-equal (==).
|