E
Erik Wanta
Guest
I want to use supply sensitive interface elements. For verilog-AMS, I
add the following syntax to the code to make it supply sensitive.
What if I want to simulate both RTL and verilog-AMS code and still use
supply sensitive interface elements? That is, is there a way to use
the supply sensitive syntax in the RTL code and have it be used when
running AMS Designer and ignored if I am just running nc-verilog?
// define pin sensitivities
input (* integer supplySensitivity = "\\vdd! ";
integer supplySensitivity = "\\vss! "; *) d0;
input (* integer supplySensitivity = "\\vdd! ";
integer supplySensitivity = "\\vss! "; *) sl;
input (* integer supplySensitivity = "\\vdd! ";
integer supplySensitivity = "\\vss! "; *) d1;
output (* integer supplySensitivity = "\\vdd! ";
integer supplySensitivity = "\\vss! "; *) x;
// supply declarations for supply sensitivity
electrical (* integer inh_conn_prop_name="vdd" ;
integer inh_conn_def_value="cds_globals.\vdd! "; *)
\vdd! ;
electrical (* integer inh_conn_prop_name="vss" ;
integer inh_conn_def_value="cds_globals.\vss! "; *)
\vss! ;
---
Erik
add the following syntax to the code to make it supply sensitive.
What if I want to simulate both RTL and verilog-AMS code and still use
supply sensitive interface elements? That is, is there a way to use
the supply sensitive syntax in the RTL code and have it be used when
running AMS Designer and ignored if I am just running nc-verilog?
// define pin sensitivities
input (* integer supplySensitivity = "\\vdd! ";
integer supplySensitivity = "\\vss! "; *) d0;
input (* integer supplySensitivity = "\\vdd! ";
integer supplySensitivity = "\\vss! "; *) sl;
input (* integer supplySensitivity = "\\vdd! ";
integer supplySensitivity = "\\vss! "; *) d1;
output (* integer supplySensitivity = "\\vdd! ";
integer supplySensitivity = "\\vss! "; *) x;
// supply declarations for supply sensitivity
electrical (* integer inh_conn_prop_name="vdd" ;
integer inh_conn_def_value="cds_globals.\vdd! "; *)
\vdd! ;
electrical (* integer inh_conn_prop_name="vss" ;
integer inh_conn_def_value="cds_globals.\vss! "; *)
\vss! ;
---
Erik