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>
(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