Skip to content
This repository was archived by the owner on Jan 31, 2022. It is now read-only.
This repository was archived by the owner on Jan 31, 2022. It is now read-only.

Extract minimum number of supported OptoHybrids from HW *or* address table #37

@jsturdy

Description

@jsturdy

Brief summary of issue

When doing quick tests, to save time, a stripped down address table is often used that is different from the generated FW. In this case, doing something a la:

nOH = readRegister(amc,"GEM_AMC.GEM_SYSTEM.CONFIG.NUM_OF_OH")

will result in looping over, e.g., nOH=12 > generate_size="2" nodes.
This will result in errors on read.

A mechanism that could extract the minimum of either the FW or the XML file would be useful to mitigate such issues.

Types of issue

  • Feasibility investigation

Expected Behavior

If I modify the xml file to change the generate_size from 12 to 2 for quick testing, I would like to avoid having tools throw errors on missing addresses

Possible Solution

For discussion..., but encoding the nOH in an easily extractable parameter in the address table seems simplest.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions