dan-fritchman / Hdl21

Hardware Description Library
BSD 3-Clause "New" or "Revised" License
56 stars 10 forks source link

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

Open dan-fritchman opened 10 months ago

dan-fritchman commented 10 months ago

Example:

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

M.n # <= the issue

The issue: is M.n

Current answer is the latter