Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Altera_Forum
Honored Contributor I
780 Views

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

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 I
61 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.

Reply