FPGA, SoC, And CPLD Boards And Kits
FPGA Evaluation and Development Kits
6347 Discussions

How to make VHDL code function be called by c code if edit demo web server?

Altera_Forum
Honored Contributor II
1,234 Views

How to make VHDL code function be called by c code if edit demo web server? 

if there is a matrix calculation library that would like to be done in VHDL 

 

how this library be called in c code if add this function in demonstration in web server 

assume this function is a + b  

how to pass parameters a and b from c code to VHDL to calculate and return result to c code 

 

moreover, how faster using this way?
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
515 Views

I'd recommend to create a custom SOPC component with an Avalon memory mapped slave interface to provide registers the CPU can write the input values to and read the results from. You should be able to find a tutorial with a CRC calculation component on the Altera web site to show you how this can be done.

0 Kudos
Reply