Forum Discussion

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

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?

1 Reply

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

    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.