safwatonline
Advanced Member level 4
VHDL-AMS
i am kind of new in VHDL-AMS and i am trying to make a simple behavior model of a sample and hold stage using VHDL-AMS, it should act on the positive edge of the pin "clk" then capture the voltage of a pin "vin" into an output electrical terminal pin "vout".
the thing is i made an "if-use" statement to detect the positive edge of the signal clk, and then i put the statement "vout==vin", but this seems not to work as the compiler needs to have another condition "if-else" statement on "vout,vin". can anyone help here!
regards,
Safwat
i am kind of new in VHDL-AMS and i am trying to make a simple behavior model of a sample and hold stage using VHDL-AMS, it should act on the positive edge of the pin "clk" then capture the voltage of a pin "vin" into an output electrical terminal pin "vout".
the thing is i made an "if-use" statement to detect the positive edge of the signal clk, and then i put the statement "vout==vin", but this seems not to work as the compiler needs to have another condition "if-else" statement on "vout,vin". can anyone help here!
regards,
Safwat