Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Register Log in

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
 

bnicolle

Newbie level 3
Joined
Jul 29, 2009
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Nice (France)
Activity points
1,296
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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top