Forum Discussion
Altera_Forum
Honored Contributor
18 years agoInferring 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....
Altera_Forum
Honored Contributor
14 years agoSIN 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.