Skip to content

Can I get just the explicitly defined items in an interface instead of derived items? #226

Answered by devbisme
tclarke asked this question in Q&A
Discussion options

You must be logged in to vote

I added an unexpio dict that stores the interface I/O without expanding any buses:

myif = Interface(GND=Net('GND'), p_5v=Net('+5V'), A=Bus('A',20), D=Bus('D',8))
for n,v in myif.unexpio.items(): print(v.name)

GND
+5V
A
D

This is in the development branch so you can try it with:

pip install git+https://github.com/devbisme/skidl@development

Let me know if this is acceptable.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@tclarke
Comment options

@tclarke
Comment options

@devbisme
Comment options

Answer selected by tclarke
@tclarke
Comment options

@devbisme
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants