I have created a design with subpages. Now I need to add registers and oscilloscopes. Can I place them inside the sub-designs, or must they be placed only in the top-level design?
SciCompiler supports subpages that include memory-mapped components of any type, including registers and oscilloscopes. You can indeed place these components within your sub-designs.
To achieve this:
- Place the components (registers, oscilloscopes, etc.) inside your sub-design.
- In the Memory Mapping page of Sci-Compiler, you can now enable the Map page to memory function. This will allow you to assign an appropriate address space for your components within the sub-design.
- Make sure that the allocated address space is large enough to accommodate all the components you wish to map.
This approach provides flexibility, allowing you to structure your design hierarchically while still managing memory-mapped resources efficiently.