The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl
Design Languages >> VHDL-AMS >> i want help
https://designers-guide.org/forum/YaBB.pl?num=1120424481

Message started by ZoRRo on Jul 3rd, 2005, 2:01pm

Title: i want help
Post by ZoRRo on Jul 3rd, 2005, 2:01pm

i want know how i can generate sawtooth by using vhdl code with 20MHz as frequency

Title: Re: i want help
Post by hjee on Sep 28th, 2005, 7:52pm

I think you can generation a line waveform to time and try with the mod() function in the math_real package

Title: Re: i want help
Post by Paul on Sep 29th, 2005, 7:57pm

Are you considering VHDL or VHDL-AMS?

Paul

Title: Re: i want help
Post by Amrsfmt on Mar 20th, 2006, 12:35pm

hi,
I think there is a tricky solution for this,
see this

Code:
signal   pulse_signal : voltage := voltage_max;

 

begin

 if domain = quiescent_domain or domain = time_domain use
   v == pulse_signal'ramp(period-flybacktime, flybacktime);  
 else
   v   == ac_spec;                        -- used for Frequency (AC) analysis
 end use;

process
begin
  loop
   pulse_signal <= pulse;
   wait for (period-flybacktime);
   pulse_signal <= initial;
   wait for (flybacktime);
 end loop;
end process;

end architecture ideal;


Now take into consideration to declare the variables I used well
please if is there is something please post,
Amrsfmt

The Designer's Guide Community Forum » Powered by YaBB 2.2.2!
YaBB © 2000-2008. All Rights Reserved.