Add two floating vector in the FPGA.

I have two floating vector in a c code.
float v1[4], v2[4];
I know that I can use the wishbone to send each value of these vectors to FPGA.
I know that I need to convert the float number to a half-precision floating point format.
I created whishbone whit a register using the Skeleton Editor, but I don't know in which signal of my code my vector will be stored.
Please, If someone have an idea about this help me.
Thank you very much.

Comments

  • Hi,

    the wishbone_register module has a 16-bit output named reg_out. If you want to send to floating points values (32-bits), you will need 4 registers. When you write the floating point values to these registers, each floating poin value will be available as 16bit MSB-16bit LSB on each register pair.

    Regards,

    Jonathan Piat
Sign In or Register to comment.