Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
17 years ago

Frequency Implementation

Hi all,

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

Thanks.

4 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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?

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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.