Forum Discussion

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

matrix multiply in vhdl

Dear all;

i have 2 matrix (32*32) and i want to multiply them. I though about using tempo register with 1024 ligne and 8 bits colone but that will consume a huge part from my SRAM (i m using DE2-115). Any one have idea how to write this code?

4 Replies

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

    I suggest making a pipeline to handle the multiply over several clocks

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

    ok. ofc i m going to use a pipeline i allready check out my carte specifications. but my problem is how to start writing that matrix mutiply. any help with it at least how to start.any guide pls or exemple.help me please. thanks to all

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

    Dont think of a matrix multiply, just think of all the individual multiplies. at 32x32, thats 32 multipliers needed. Do you need to use so many, or can you time division multiplex them (ie. run the multipier at 2x clock speed to to two multiplies in the space of 1 data).

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

    well i want to accelerate this multiply function.that's why i want it on vhdl. i learn only basic VHDl. i searched for exemples in net.they didn't use huge matrix like (2*2)

    .any way do you know how to inpout my matrix values in sram or sdram and the instruction to call for it when i need it