Hdl21 icon indicating copy to clipboard operation
Hdl21 copied to clipboard

Should we keep (`Module`, `Bundle`, `Sim`, etc) non-schema attributes around?

Open dan-fritchman opened this issue 1 year ago • 0 comments

Example:

@h.module 
class M:
  n = 5 
  i = h.Input(width=n)

M.n # <= the issue

The issue: is M.n

  • A thing (probably 5), or
  • An AttributeError

Current answer is the latter

dan-fritchman avatar Sep 07 '23 22:09 dan-fritchman