S
Svenn Are Bjerkem
Guest
Hi,
in good old spectreHDL there is the enum type for parameters. I wanted to
create an ahdl macro to calculate resistance on trace wiring based on our
design manual.
I have two enumerated parameters:
parameter enum {M1, M2, M3} layer = M1;
to set the metal layer and
parameter enum {nom, best, worst} corner = nom;
to set the selection of corner for the sheet resistance.
I have created a symbol for the ahdl entity and this shows the parameters w,
l, layer and corner. If I type "M2" in the "layer" property on the symbol,
then ADE complains that I have an unset variable "M2" and the same happens
when I type "nom" in the "corner" property.
If I give the variable M1 the value 2, then I somhow assign layer M3, and
the same happens if I give the "best" variable the value 0, then I simulate
with nominal values.
I tried to use the cyclic property in the CDF editor but except for a nice
way to select layer and corner, I still create an additional variable that
I have to set correctly in ADE.
Does anybody have an idea how to solve this problem?
--
Svenn
in good old spectreHDL there is the enum type for parameters. I wanted to
create an ahdl macro to calculate resistance on trace wiring based on our
design manual.
I have two enumerated parameters:
parameter enum {M1, M2, M3} layer = M1;
to set the metal layer and
parameter enum {nom, best, worst} corner = nom;
to set the selection of corner for the sheet resistance.
I have created a symbol for the ahdl entity and this shows the parameters w,
l, layer and corner. If I type "M2" in the "layer" property on the symbol,
then ADE complains that I have an unset variable "M2" and the same happens
when I type "nom" in the "corner" property.
If I give the variable M1 the value 2, then I somhow assign layer M3, and
the same happens if I give the "best" variable the value 0, then I simulate
with nominal values.
I tried to use the cyclic property in the CDF editor but except for a nice
way to select layer and corner, I still create an additional variable that
I have to set correctly in ADE.
Does anybody have an idea how to solve this problem?
--
Svenn