EmbDev.net

Forum: FPGA, VHDL & Verilog 2x2 matrix multiply


Author: deepak singh (dksagra)
Posted on:

Rate this post
0 useful
not useful
Hi,

i have made one project in simulink (.mdl)
just a  2x2 matrix multiply

i used xilinx blockset toolbox for making 2x2 matirx multiply with the 
help of muliplier, add/subs, convert,gateway blocks etc.
actually i am making a 32 bit width 2x2 matrix multiplier..

In model block of 2x2 matrix muliply ,the arrangement (connection of all 
individual blocks) is same like i mentioned below.

in--->gateway in-->convert(32 bit, signed, decimal at 
16)-->mult-->add-->convert-->gateway out--> out and display.

compilation is perfectely happening and results is coming and accurate.

when i generate VHD code of it and sysnthesis and i go for the systhesis 
report, it is generating everthing good (i.e. LUT,FF, SLICE etc used) 
but with having high IOB (44 %)

for the same example when i reduce number of bits to 16 bits, signed and 
decimal at 8 and did the same procedure again now everything remain same 
but IOB used  got decrease(22 %)



for the same example when i reduce number of bits to 8 bits, signed and 
decimal at 4 and did the same procedure again still everything remain 
same but IOB used  further decrease.(11 %)

though IOB are decreasing but still they are utilizing more resources in 
FPGA

why this is happening?
is there any way to improve my mdl block diagram so i can sought out the 
problem of IOB utilization

Author: thomas (Guest)
Posted on:

Rate this post
0 useful
not useful
>i used xilinx blockset toolbox for making 2x2 matirx multiply with the
help of muliplier,

this is the problem

do not use simulink for such things, but realize it directly

a matrix mul is 3 vhdl lines

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [vhdl]VHDL code[/vhdl]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.