The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Apr 19th, 2024, 6:33am
Pages: 1
Send Topic Print
i want help (Read 4057 times)
ZoRRo
New Member
*
Offline



Posts: 1

i want help
Jul 03rd, 2005, 2:01pm
 
i want know how i can generate sawtooth by using vhdl code with 20MHz as frequency
Back to top
 
 
View Profile   IP Logged
hjee
New Member
*
Offline



Posts: 2
Suwon, South Korea
Re: i want help
Reply #1 - 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
Back to top
 
 
View Profile   IP Logged
Paul
Community Fellow
*****
Offline



Posts: 351
Switzerland
Re: i want help
Reply #2 - Sep 29th, 2005, 7:57pm
 
Are you considering VHDL or VHDL-AMS?

Paul
Back to top
 
 
View Profile WWW   IP Logged
Amrsfmt
New Member
*
Offline

change over

Posts: 6
Egypt
Re: i want help
Reply #3 - 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
Back to top
 
 

Solve this out
View Profile   IP Logged
Pages: 1
Send Topic Print
Copyright 2002-2024 Designer’s Guide Consulting, Inc. Designer’s Guide® is a registered trademark of Designer’s Guide Consulting, Inc. All rights reserved. Send comments or questions to editor@designers-guide.org. Consider submitting a paper or model.