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.
Is there a better way to do this? Thanks, Brian12 Replies
- Altera_Forum
Honored Contributor
is this SIN is an inbuilt function in that library?
will it create a problem while synthesizing it??? - Altera_Forum
Honored 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.