Altera_Forum
Honored Contributor
15 years agocustom SOPC component, component_sw.tcl
I have written a custom sopc builder component in VHDL.
I built the component_hw.tcl file and am able to instantiate the component in sopc builder. I have also built component.hpp and component.cpp, which define a c++ class which facilitates control of the component from the NIOS II processor. Right now I have to manually copy the the c++ files into my software project and also# include the .hpp file in my main.cpp. I would like to have my software files included into my NIOS II project automatically, as is done when you instantiate an Altera SOPC builder component. I was under the impression that this could be done using a custom _sw.tcl file. I have copied one of these _sw.tcl from the ones included in the altera install directory on my hdd and modified it to reflect the name of my custom component and the pointed it to the paths of associated .cpp and .hpp files. Unfortunately, these files are not being automatically included into my NIOS II projected as I was hoping. Does anyone have any advice on how to automatically include the software files associated with a given custom sopc builder component in your NIOS II project? thanks.