whitequark[cis] changed the topic of #amaranth-lang to: Amaranth hardware definition language · weekly meetings: Amaranth each Mon 1700 UTC, Amaranth SoC each Fri 1700 UTC · code https://github.com/amaranth-lang · logs https://libera.irclog.whitequark.org/amaranth-lang · Matrix #amaranth-lang:matrix.org
Degi_ has joined #amaranth-lang
Degi has quit [Ping timeout: 272 seconds]
Degi_ is now known as Degi
<_whitenotifier-f> [YoWASP/yosys] whitequark pushed 1 commit to develop [+0/-0/±1] https://github.com/YoWASP/yosys/compare/b9020142de47...034d20dfb03f
<_whitenotifier-f> [YoWASP/yosys] whitequark 034d20d - Update dependencies.
<_whitenotifier-f> [rfcs] whitequark commented on pull request #28: Add RFC to allow overriding Value operators - https://github.com/amaranth-lang/rfcs/pull/28#issuecomment-1747860051
nelgau has quit [Read error: Connection reset by peer]
nelgau_ has joined #amaranth-lang
<_whitenotifier-f> [amaranth] whitequark opened pull request #925: build.plat: allow removing `src` attributes from RTLIL output - https://github.com/amaranth-lang/amaranth/pull/925
<_whitenotifier-f> [amaranth] codecov[bot] commented on pull request #925: build.plat: allow removing `src` attributes from RTLIL output - https://github.com/amaranth-lang/amaranth/pull/925#issuecomment-1747911573
<_whitenotifier-f> [amaranth-lang/amaranth] github-merge-queue[bot] pushed 1 commit to gh-readonly-queue/main/pr-925-c9416674d1e89b0537870d80588ee34b8cd12097 [+0/-0/±1] https://github.com/amaranth-lang/amaranth/commit/cce4e4462e41
<_whitenotifier-f> [amaranth-lang/amaranth] whitequark cce4e44 - build.plat: allow removing `src` attributes from RTLIL output.
<_whitenotifier-f> [amaranth] github-merge-queue[bot] created branch gh-readonly-queue/main/pr-925-c9416674d1e89b0537870d80588ee34b8cd12097 - https://github.com/amaranth-lang/amaranth
<_whitenotifier-f> [amaranth-lang/amaranth] github-merge-queue[bot] pushed 1 commit to main [+0/-0/±1] https://github.com/amaranth-lang/amaranth/compare/c9416674d1e8...cce4e4462e41
<_whitenotifier-f> [amaranth-lang/amaranth] whitequark cce4e44 - build.plat: allow removing `src` attributes from RTLIL output.
<_whitenotifier-f> [amaranth-lang/amaranth] github-merge-queue[bot] deleted branch gh-readonly-queue/main/pr-925-c9416674d1e89b0537870d80588ee34b8cd12097
<_whitenotifier-f> [amaranth] whitequark closed pull request #925: build.plat: allow removing `src` attributes from RTLIL output - https://github.com/amaranth-lang/amaranth/pull/925
<_whitenotifier-f> [amaranth] github-merge-queue[bot] deleted branch gh-readonly-queue/main/pr-925-c9416674d1e89b0537870d80588ee34b8cd12097 - https://github.com/amaranth-lang/amaranth
<_whitenotifier-f> [amaranth-lang/amaranth-lang.github.io] whitequark pushed 1 commit to main [+0/-0/±32] https://github.com/amaranth-lang/amaranth-lang.github.io/compare/87e0e515c26e...dd7f63733cc4
<_whitenotifier-f> [amaranth-lang/amaranth-lang.github.io] github-merge-queue[bot] dd7f637 - Deploying to main from @ amaranth-lang/amaranth@cce4e4462e41b630bfb1c4f77d431ec39420b650 🚀
roflincopter has quit [Ping timeout: 272 seconds]
roflincopter has joined #amaranth-lang
<cr1901> Okay, I found something very weird... are there any known bugs with the Python simulator for initializing mems?
<whitequark[cis]> the Python simulation stuff was recently rewritten, it could be related to that
<cr1901> On one run, the simulator decided to just init some bits to 0 unconditionally in memory. On another run, the init=[] parameter just plain zeroed all entries after the second
<cr1901> I will see if I can make an MCVE
<cr1901> FWIW, the generated Verilog is correct
<cr1901> ignore "On another run, the init=[] parameter just plain zeroed all entries after the second", had the wrong mem open in gtkwave
<cr1901> My VCDs must've been stable... disregard for now, if I can dup, I'll make an MCVE
<cr1901> stale*
<_whitenotifier-f> [amaranth] tilk opened issue #926: Failure of sign-extension for bitwise operations - https://github.com/amaranth-lang/amaranth/issues/926
Chips4MakersakaS has quit [Quit: Idle timeout reached: 172800s]
<_whitenotifier-f> [amaranth] whitequark commented on issue #926: Failure of sign-extension for bitwise operations - https://github.com/amaranth-lang/amaranth/issues/926#issuecomment-1748653732
<_whitenotifier-f> [amaranth] wanda-phi commented on issue #926: Failure of sign-extension for bitwise operations - https://github.com/amaranth-lang/amaranth/issues/926#issuecomment-1748666492
<_whitenotifier-f> [amaranth] tilk commented on issue #926: Failure of sign-extension for bitwise operations - https://github.com/amaranth-lang/amaranth/issues/926#issuecomment-1748681337
<Wanda[cis]> ... I'm going to take this one and also fix an unrelated bug (I think)
<Wanda[cis]> let's just see if it's really a bug
<Wanda[cis]> okay, to be certain
<Wanda[cis]> self.sig3 = Signal(32)
<Wanda[cis]> m.d.comb += self.sig3.eq(Mux(C(1), C(1, 1).as_signed(), C(0)))
<Wanda[cis]> the result should be sig3 == 0xffffffff, right?
<galibert[m]> I would agree yes
<galibert[m]> Then, maybe no
<galibert[m]> Mux ends up 1-bit wide, but signed or unsigned? The
<galibert[m]> What happens is you make C(0) signed?
<Wanda[cis]> heh
<Wanda[cis]> it works
<Wanda[cis]> but
<Wanda[cis]> consider this
<Wanda[cis]> m.d.comb += self.sig3.eq(Mux(C(1), C(1, 1).as_signed(), C(0, 32).as_signed()))
<Wanda[cis]> this results in 1, currently
<_whitenotifier-f> [amaranth] wanda-phi opened pull request #927: sim._pyrtl: fix masking for bitwise operands and muxes. - https://github.com/amaranth-lang/amaranth/pull/927
<Wanda[cis]> ... okay took me a moment to figure out how to test this
<_whitenotifier-f> [amaranth] codecov[bot] commented on pull request #927: sim._pyrtl: fix masking for bitwise operands and muxes. - https://github.com/amaranth-lang/amaranth/pull/927#issuecomment-1748742192
<_whitenotifier-f> [amaranth-lang/amaranth] github-merge-queue[bot] pushed 1 commit to gh-readonly-queue/main/pr-927-cce4e4462e41b630bfb1c4f77d431ec39420b650 [+0/-0/±2] https://github.com/amaranth-lang/amaranth/commit/ccf7aaf00db5
<_whitenotifier-f> [amaranth-lang/amaranth] wanda-phi ccf7aaf - sim._pyrtl: fix masking for bitwise operands and muxes.
<_whitenotifier-f> [amaranth] github-merge-queue[bot] created branch gh-readonly-queue/main/pr-927-cce4e4462e41b630bfb1c4f77d431ec39420b650 - https://github.com/amaranth-lang/amaranth
<_whitenotifier-f> [amaranth-lang/amaranth] github-merge-queue[bot] pushed 1 commit to main [+0/-0/±2] https://github.com/amaranth-lang/amaranth/compare/cce4e4462e41...ccf7aaf00db5
<_whitenotifier-f> [amaranth-lang/amaranth] wanda-phi ccf7aaf - sim._pyrtl: fix masking for bitwise operands and muxes.
<_whitenotifier-f> [amaranth-lang/amaranth] github-merge-queue[bot] deleted branch gh-readonly-queue/main/pr-927-cce4e4462e41b630bfb1c4f77d431ec39420b650
<_whitenotifier-f> [amaranth] whitequark closed pull request #927: sim._pyrtl: fix masking for bitwise operands and muxes. - https://github.com/amaranth-lang/amaranth/pull/927
<_whitenotifier-f> [amaranth] github-merge-queue[bot] deleted branch gh-readonly-queue/main/pr-927-cce4e4462e41b630bfb1c4f77d431ec39420b650 - https://github.com/amaranth-lang/amaranth
<_whitenotifier-f> [amaranth] whitequark closed issue #926: Failure of sign-extension for bitwise operations - https://github.com/amaranth-lang/amaranth/issues/926
<_whitenotifier-f> [amaranth-lang/amaranth-lang.github.io] whitequark pushed 1 commit to main [+0/-0/±32] https://github.com/amaranth-lang/amaranth-lang.github.io/compare/dd7f63733cc4...6c92efff567c
<_whitenotifier-f> [amaranth-lang/amaranth-lang.github.io] github-merge-queue[bot] 6c92eff - Deploying to main from @ amaranth-lang/amaranth@ccf7aaf00db54c7647b2f0f0cfdf34835c16fa8f 🚀
crzwdjk has quit [Ping timeout: 240 seconds]
MarekMaterzok[m] has joined #amaranth-lang
<MarekMaterzok[m]> Thanks for the fix - our unit tests are now passing on the current Amaranth version.
crzwdjk has joined #amaranth-lang
jfng[m] has joined #amaranth-lang
<jfng[m]> what's the rationale for having `isinstance(MySignature().flip(), MySignature)` return True, but not `iface = Interface(MySignature(), ...); isinstance(flipped(iface), Interface)` ?
<jfng[m]> also, is Interface even part of the public lib.wiring API ? it is not present in __all__
<whitequark[cis]> <jfng[m]> "what's the rationale for having..." <- IIRC it wasn't feasible for a technical reason; I will need to revisit it and write an extended comment detailing why
<whitequark[cis]> I think it's because I didn't want to add a metaclass to Interface / interface objects not being necessarily derived from that
<whitequark[cis]> <jfng[m]> "also, is Interface even part..." <- that is an oversight
<_whitenotifier-f> [amaranth] jfng opened pull request #928: lib.wiring: add Interface to __all__. - https://github.com/amaranth-lang/amaranth/pull/928
<jfng[m]> <whitequark[cis]> "I think it's because I didn't..." <- got it, i should be able to get away with some if..else boilerplate as a workaround
<whitequark[cis]> ideally we would revisit/reconsider this
<_whitenotifier-f> [amaranth] codecov[bot] commented on pull request #928: lib.wiring: add Interface to __all__. - https://github.com/amaranth-lang/amaranth/pull/928#issuecomment-1748974964
<_whitenotifier-f> [amaranth-lang/amaranth] github-merge-queue[bot] pushed 1 commit to gh-readonly-queue/main/pr-928-ccf7aaf00db54c7647b2f0f0cfdf34835c16fa8f [+0/-0/±1] https://github.com/amaranth-lang/amaranth/commit/c7da6c1292ea
<_whitenotifier-f> [amaranth-lang/amaranth] jfng c7da6c1 - lib.wiring: add Interface to __all__.
<_whitenotifier-f> [amaranth] github-merge-queue[bot] created branch gh-readonly-queue/main/pr-928-ccf7aaf00db54c7647b2f0f0cfdf34835c16fa8f - https://github.com/amaranth-lang/amaranth
<_whitenotifier-f> [amaranth-lang/amaranth] github-merge-queue[bot] pushed 1 commit to main [+0/-0/±1] https://github.com/amaranth-lang/amaranth/compare/ccf7aaf00db5...c7da6c1292ea
<_whitenotifier-f> [amaranth-lang/amaranth] jfng c7da6c1 - lib.wiring: add Interface to __all__.
<_whitenotifier-f> [amaranth-lang/amaranth] github-merge-queue[bot] deleted branch gh-readonly-queue/main/pr-928-ccf7aaf00db54c7647b2f0f0cfdf34835c16fa8f
<_whitenotifier-f> [amaranth] whitequark closed pull request #928: lib.wiring: add Interface to __all__. - https://github.com/amaranth-lang/amaranth/pull/928
<_whitenotifier-f> [amaranth] github-merge-queue[bot] deleted branch gh-readonly-queue/main/pr-928-ccf7aaf00db54c7647b2f0f0cfdf34835c16fa8f - https://github.com/amaranth-lang/amaranth
<_whitenotifier-f> [amaranth-lang/amaranth-lang.github.io] whitequark pushed 1 commit to main [+0/-0/±32] https://github.com/amaranth-lang/amaranth-lang.github.io/compare/6c92efff567c...e87d4d6387af
<_whitenotifier-f> [amaranth-lang/amaranth-lang.github.io] github-merge-queue[bot] e87d4d6 - Deploying to main from @ amaranth-lang/amaranth@c7da6c1292ea60a612ee9fd0f75d603485939580 🚀
notgull has quit [Ping timeout: 260 seconds]
GenTooMan has quit [Ping timeout: 272 seconds]
notgull has joined #amaranth-lang
GenTooMan has joined #amaranth-lang
phire has quit [Quit: No Ping reply in 180 seconds.]
phire has joined #amaranth-lang
SpaceCoaster has quit [Quit: Bye]
SpaceCoaster has joined #amaranth-lang
mcc111[m] has quit [Quit: Idle timeout reached: 172800s]
<_whitenotifier-f> [amaranth] zyp opened pull request #929: ast: allow overriding Value operators. - https://github.com/amaranth-lang/amaranth/pull/929
<_whitenotifier-f> [amaranth] wanda-phi reviewed pull request #929 commit - https://github.com/amaranth-lang/amaranth/pull/929#discussion_r1347908053
<_whitenotifier-f> [amaranth] zyp reviewed pull request #929 commit - https://github.com/amaranth-lang/amaranth/pull/929#discussion_r1347913067
richlatticefae[m has quit [Quit: Idle timeout reached: 172800s]
bob_twinkles[m] has quit [Quit: Idle timeout reached: 172800s]
Psentee has quit [Quit: Off]
Psentee has joined #amaranth-lang
Psentee has quit [Client Quit]
Psentee has joined #amaranth-lang
pie_ has quit []
pie_ has joined #amaranth-lang
<_whitenotifier-f> [amaranth] whitequark reviewed pull request #929 commit - https://github.com/amaranth-lang/amaranth/pull/929#discussion_r1348079000
agg has quit [Ping timeout: 272 seconds]
roflincopter has quit [Ping timeout: 272 seconds]
agg has joined #amaranth-lang
roflincopter has joined #amaranth-lang
<_whitenotifier-f> [amaranth] zyp reviewed pull request #929 commit - https://github.com/amaranth-lang/amaranth/pull/929#discussion_r1348090923
<_whitenotifier-f> [amaranth] whitequark reviewed pull request #929 commit - https://github.com/amaranth-lang/amaranth/pull/929#discussion_r1348092414
<_whitenotifier-f> [amaranth] whitequark reviewed pull request #929 commit - https://github.com/amaranth-lang/amaranth/pull/929#discussion_r1348092946
<_whitenotifier-f> [amaranth] zyp reviewed pull request #929 commit - https://github.com/amaranth-lang/amaranth/pull/929#discussion_r1348093414
lf has quit [Ping timeout: 260 seconds]
lf has joined #amaranth-lang
<_whitenotifier-f> [amaranth] whitequark reviewed pull request #929 commit - https://github.com/amaranth-lang/amaranth/pull/929#discussion_r1348101436
jjsuperpower has joined #amaranth-lang