Forum Discussion

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

Implementing a table

Hello all,

I'm trying to implement a table with stored switching angles for an inverter on to an FPGA. I'm a beginner so I'm having a lot of trouble figuring this out so please bare with me. Here's what I have:

I have a .hex file, with 4608 lines representing 9 groups of 512 angles.

So each angle has 512 increments depending on a modulation index starting from 0.48 to 1.00 in increments of 0.001.

What i need to do is make a block that would store this table on to the FPGA and then when i give a modulation index as an input give 9 angles as an output depending on the modulation index. Is there a megafunction block I could use for something like this, or do i need to code it in VHDL? The FPGA i have at my disposal is a Cyclon III and also a Cyclon II training board. So please give me Your guidelines, suggestions and advises on how I could proceed with this.

Any help would be appreciated greatly. Thank You.

11 Replies

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

    This is going to be a look-up table (LUT) - this is just a ROM.

    It is basically a rom where you provide the address (modulation index) and you get the output data (angles)

    It is quite straight forward to code in VHDL and there are plenty of examples out there.