Forum Discussion
Altera_Forum
Honored Contributor
13 years agoThanks for the quick reply. Quite surprising to hear that it is kind of discontinued. I have just completed the BeMicroSDK tutorial that demonstrated an FIR sample in both SW and HW implementation, but can't quite understand the code in the hardware implementation. After googling found an older version (Quartus v6?) document showing the exact same C code but demonstrating the C2H. The following is the sample code from the BeMicroSDK tutorial for the HW implementation:
IOWR_32DIRECT(ACCELERATOR_FIR_FIR_HW_MANAGED_INSTANCE_CPU_INTERFACE0_BASE, (4), (int) (input_data));
IOWR_32DIRECT(ACCELERATOR_FIR_FIR_HW_MANAGED_INSTANCE_CPU_INTERFACE0_BASE, (8), (int) (length));
IOWR_32DIRECT(ACCELERATOR_FIR_FIR_HW_MANAGED_INSTANCE_CPU_INTERFACE0_BASE, (12), (int) (output_data));
IOWR_32DIRECT(ACCELERATOR_FIR_FIR_HW_MANAGED_INSTANCE_CPU_INTERFACE0_BASE, (16), (int) (tap_length));
IOWR_32DIRECT(ACCELERATOR_FIR_FIR_HW_MANAGED_INSTANCE_CPU_INTERFACE0_BASE, (20), (int) (coefA));
IOWR_32DIRECT(ACCELERATOR_FIR_FIR_HW_MANAGED_INSTANCE_CPU_INTERFACE0_BASE, (24), (int) (coefB));
...
Is this code sample from the tutorial generated by C2H? How does it work?