Forum Discussion

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

Inferring a ROM

Has anyone used a HEX (Intel format) file to infer a ROM? I'd like to build a look-up table for waveform generation using a 32768 x 16 ROM and would prefer not to type in all of the values manually.

Is there a better way to do this?

Thanks,

Brian

12 Replies

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

    is this SIN is an inbuilt function in that library?

    will it create a problem while synthesizing it???
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    SIN is a function in the math_real VHDL library. It can be synthesized in that case because it is calculated at compile time by the VHDL compiler. The synthesizer will just create a ROM with all the sine values precalculated.

    It wouldn't be synthesizable if it were calculating the sine of a signal. In that case you could use a megafunction instead.