dan-fritchman / Hdl21

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

Bundle mult not quite workin #204

Open dan-fritchman opened 8 months ago

dan-fritchman commented 8 months 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.