Skip to content

How to debug python HDL? #362

Answered by ducky64
lrobot asked this question in Q&A
Jul 10, 2024 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

Thanks for trying it out - good to hear it's useful so far! A few answers to your questions:

Capacitor

For the capacitor, there is a Capacitor.single_nominal_capacitance parameter that limits how big a single capacitor can be. It's set by default at 22uF, but you can disable the limit through a refinement and it should give you a single 47uF device:

  def refinements(self) -> Refinements:
    return super().refinements() + Refinements(
      class_values=[
        ...
        (Capacitor, ['single_nominal_capacitance'], Range(0.0, float('inf'))),
      ],
      ...
    )

The 22uF is kind of arbitrary, I think it was a rough rule of thumb as an good choice when doing power converters that n…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@lrobot
Comment options

Answer selected by lrobot
Comment options

You must be logged in to vote
1 reply
@lrobot
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