-
Notifications
You must be signed in to change notification settings - Fork 0
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
Fuses and registers are cousins? #37
Comments
I think so, but I'm not sure that any of us have experimented with OO in Rust. I tried at first but its easy to get burned by the borrower checker if you're not careful. Possible though. To add on a bit, I think we should have a base FWIW, this was my intention with Componentable in O1. I bit off more than I could chew with that though and it never went beyond just generic components. I wouldn't mind signing up for this though once we get pins, registers, and memory maps a bit further along. |
👍 |
What info/functionality would a fuse need over and above a register? |
@ginty I think the register model could be used. How would we work around the lack of method/function aliases? |
BTW, I ended up using Componentable for our internal fuse modeling |
For example? |
@ginty I thought I read a post somewhere in the o2 area that Python doesn't support method aliases. I was thinking of how can we make this equivalence while using the same Rust infrastructure? dut.add_reg == dut.add_fuse |
I'm not sure if does support an equivalent of Ruby's def add_fuse(self, *args, **kwargs):
return self.add_reg(*args, **kwargs) I can imagine that we would support |
Works for me, thx! |
All of these things can be accessed with an address and contain bit fields. Should they use a common base object?
The text was updated successfully, but these errors were encountered: