I’m trying to use a component written in VHDL inside myHDL. Specifically I try to create a configurable PLL block. I was able to add the component declaration using the
component_declarations argument of the
instance.convert method. I was also able to instantiate it using the
instance.vhdl_code property. But I struggle to add the library:
library my_library; use my_library.component;
How can I achieve this? Also: Is there a better way to add the component declaration? Because ideally I want the component declaration hidden from the user of the pll block.