dan-fritchman / Hdl21

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

Bundle mult not quite workin #204

Open dan-fritchman opened 1 year ago

dan-fritchman commented 1 year ago

Observed a case where this works:

    @h.module
    class M:
        a = h.Diff()
        b = h.Diff()

But this fails:

    @h.module
    class M:
        a, b = 2 * h.Diff()

Seemingly something in how that multiplication operator is copying the bundle instance.