Strictly necessary cookies are on by default and cannot be turned off. Functional, Performance and Tracking/targeting/sharing cookies can be turned on below based on your preferences (this banner will remain available for you to accept cookies). You may change your cookie settings by deleting cookies from your browser. Then this banner will appear again. You can learn more details about cookies HERE.
Strictly necessary (always on)
Functional, Performance and Tracking/targeting/sharing (default off)
I've created a custom component from a project file. The project had a SPI master block and two digital output pin (one for a manual SPI SS and another for an external device reset). When converting to a component (so I could use this particular arrangement in another design) I converted the digital output pins to digital output terminals as specified by AN57724. This meant that these two digital signals are not connected to anything anymore.
What is the correct way to convert a Digital Output Pin to something I can drive from software when creating a custom component? Do I have to create a Verilog module to achieve this, or is there something simpler?
If you would like to access the pins (which are placed as digital outputs) in firmware, I believe the best method would be to use them as digital output itself while creating the component. You can add component source files and access them using `$INSTANCE_NAME`_Pin_Write(0u). For e.g., you can import the emFile component and see how the SPI_WP Pins are accessed in firmware.