Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
20688 Discussions

Frequency Implementation

Altera_Forum
Honored Contributor II
947 Views

Hi all, 

 

Do u guys know how to implement a frequency(lets say 100mhz) to a vhdl program? 

 

Thanks.
0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
264 Views

Do you mean that you want to implement a sinusoidal generator?

0 Kudos
Altera_Forum
Honored Contributor II
264 Views

Ya. i want to generate a sine wave at the simulation process and need to implement a 100mhz to the vhdl codes. is it pssible?

0 Kudos
Altera_Forum
Honored Contributor II
264 Views

Use the IEEE.math_real package - there's sin and cos functions in there for real types - create your sine wave with that and then convert it to whatever type you need for testing your code.

0 Kudos
Altera_Forum
Honored Contributor II
264 Views

Thanks. I go try the suggested methods.

0 Kudos
Reply