Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Circuit definitions must support external circuits as "modules" #83

Open
ceremcem opened this issue Sep 28, 2021 · 1 comment
Open

Circuit definitions must support external circuits as "modules" #83

ceremcem opened this issue Sep 28, 2021 · 1 comment

Comments

@ceremcem
Copy link
Collaborator

ceremcem commented Sep 28, 2021

Circuit definitions support sub-circuits via schemas: property. Those schemas and circuit components are included into the target (main) circuit and resulting circuit does have one single schema.

However, sometimes we need to handle two different circuits as modules of each other. The "module" should be present as a black box within the target circuit.

Proposal

circuit1 = (config) -> (value) -> 
    iface: "a b c"
    netlist: ...

circuit2 = (config) -> (value) -> 
    iface: "d e f" 
    modules: 
        module1: circuit1
    bom: 
        module1: 
            "myvalue": "m1 m2" 
    netlist: 
        1: "m1.a m2.c"
        ...
@ceremcem
Copy link
Collaborator Author

ceremcem commented Oct 1, 2021

2 cases should be handled:

  • Any footprint might be interpreted as if it were an external circuit
  • An external circuit might suggest its corresponding footprint(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant