dan-fritchman/Hdl21

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

Opened this issue · 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