How to generate a pulse from a voltage source in VHDL-AMS

Status
Not open for further replies.

saurc

Newbie level 6
Joined
Aug 29, 2009
Messages
13
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
India
Activity points
1,381
i pulse vhdl-ams

Hi,

I have a query regarding the generation of a pulse (just one pulse, not periodic pulse) as -

Vin is an input voltage source, so in VHDL-AMS, we can write-
Quantity Vin across Iin through a to electrical_ground

Please tell me how to write a code for Vin so that it will generate a pulse with the following specifications -

0V for 0 sec to 0.1 sec
0.5V for 0.1 sec to 0.2 sec
0V for 0.2 sec to 0.5 sec

Thanks
 

how to generate pulse signal voltage in vhdl-ams

Implement a signal and quantity affectation as :

signal generator_voltage : boolean := false;
quantity vout across iout through tout to electrical_ref;

begin

generator_voltage <= false, true after 0.1 sec, false 0.2;

if generator_voltage use
vout == 0.5;
else
vout == 0.0;
end use;

break on generator_voltage; -- to synchronize the engines

...
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…