electronics_sky
Member level 3
Hi there,
i am doing some VHDL-AMS coding with Mentor Graphics's ADVanceMS. However i am facing some discontinuos problem. My coding is as below:
------------------------------------------------------------
architecture TEST of CNT is
quantity VA1 across A1;
quantity VB1 across IB1 through B1;
quantity VC1 across IC1 through C1;
quantity Q_1: real := 0.0;
begin
if RESET = '0' use
VB1 == VA1;
else
VB1 == 0.0;
end if;
Q_1 == VB1*2.0;
if not Q_1'above(5.0) use
VC1 == Q_1;
else
VC1 == 5.0;
end use;
break on RESET,Q_1'above(5.0) ;
end architecture;
----------------------------------------------------------------------
however i am facing discontinuos probelm (a spike occure during the condition state is true)due to "if not Q_1'above(5.0) use". The code seems like better if i am writing the condition as "if Q_1 < 5.0 use", however the simulator display warning if 'above is not use for quantity comparison.
Please kindly enlighten me in this issue. Thank.
i am doing some VHDL-AMS coding with Mentor Graphics's ADVanceMS. However i am facing some discontinuos problem. My coding is as below:
------------------------------------------------------------
architecture TEST of CNT is
quantity VA1 across A1;
quantity VB1 across IB1 through B1;
quantity VC1 across IC1 through C1;
quantity Q_1: real := 0.0;
begin
if RESET = '0' use
VB1 == VA1;
else
VB1 == 0.0;
end if;
Q_1 == VB1*2.0;
if not Q_1'above(5.0) use
VC1 == Q_1;
else
VC1 == 5.0;
end use;
break on RESET,Q_1'above(5.0) ;
end architecture;
----------------------------------------------------------------------
however i am facing discontinuos probelm (a spike occure during the condition state is true)due to "if not Q_1'above(5.0) use". The code seems like better if i am writing the condition as "if Q_1 < 5.0 use", however the simulator display warning if 'above is not use for quantity comparison.
Please kindly enlighten me in this issue. Thank.