whitequark changed the topic of #amaranth-lang to: Amaranth hardware definition language · code https://github.com/amaranth-lang · logs https://libera.irclog.whitequark.org/amaranth-lang
GenTooMan has joined #amaranth-lang
lf has quit [Ping timeout: 250 seconds]
lf has joined #amaranth-lang
<_whitenotifier-e> [YoWASP/yosys] whitequark pushed 1 commit to develop [+0/-0/±1] https://github.com/YoWASP/yosys/compare/2a5fc9590b80...36c176049e5f
<_whitenotifier-e> [YoWASP/yosys] whitequark 36c1760 - Update dependencies.
bl0x_ has quit [Ping timeout: 240 seconds]
bl0x_ has joined #amaranth-lang
Vonter has joined #amaranth-lang
Degi has quit [Ping timeout: 256 seconds]
Degi has joined #amaranth-lang
emeb_mac has quit [Ping timeout: 250 seconds]
peepsalot has quit [Ping timeout: 256 seconds]
FL4SHK has quit [Ping timeout: 240 seconds]
FL4SHK has joined #amaranth-lang
tich has joined #amaranth-lang
tich has quit [Ping timeout: 245 seconds]
peepsalot has joined #amaranth-lang
wolfshappen has quit [Ping timeout: 256 seconds]
wolfshappen has joined #amaranth-lang
nyanotech has quit [Quit: No Ping reply in 180 seconds.]
nyanotech has joined #amaranth-lang
bvernoux has quit [Quit: Leaving]
emeb has joined #amaranth-lang
bvernoux has joined #amaranth-lang
tich has joined #amaranth-lang
enok has quit [Remote host closed the connection]
enok has joined #amaranth-lang
<tich> Good day. I am new to developing gateware with amaranth-lang. I want to create a parallel CRC module as described in the article by Evgeni Stavinov http://outputlogic.com/?p=158. Is it possible in amatanth-lang to create a module that takes the generator polynomial and width of the message as parameters?
<agg> tich: yep, see https://github.com/amaranth-lang/amaranth/pull/681 for an example
<agg> (feel free to just copy that, too, if you just need a crc rather than implementing one for fun/learning/interest)
<tich> agg: thanks I will have a look
<agg> that one uses essentially the same technique as the article you linked
<agg> but has a little extra code to handle reflecting input/output, xoring output, comparing residue to check codewords, etc
<agg> which is to say: if you just need a totally standard crc and just want polynomial-in and crc-out, you could do it in less code, and certainly it's possible in amaranth
<agg> check out https://twitter.com/HarmonInst/status/1232036641616744448 for a smaller/simpler example
tich has quit [Ping timeout: 252 seconds]
tich has joined #amaranth-lang
bvernoux has quit [Quit: Leaving]
<mithro> undulate (a Python renderer for the wavedrom format) recently added console rendering output -> https://github.com/LudwigCRON/undulate/issues/35#issuecomment-1037193151 which could be useful for amaranth in some way?
<mithro> People might also find the unrelated https://github.com/pieter3d/simview which seems to be a console based tool for VCD / FST file viewing
emeb_mac has joined #amaranth-lang
tich has quit [Ping timeout: 250 seconds]