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
mikolajw has quit [Ping timeout: 268 seconds]
modwizcode has quit [Ping timeout: 268 seconds]
gatecat has quit [Ping timeout: 268 seconds]
gatecat_ has joined #amaranth-lang
modwizcode has joined #amaranth-lang
mikolajw has joined #amaranth-lang
lf has quit [Ping timeout: 240 seconds]
lf has joined #amaranth-lang
<_whitenotifier-8> [YoWASP/yosys] whitequark pushed 1 commit to develop [+0/-0/±1] https://github.com/YoWASP/yosys/compare/d0204876ba6e...14700f229fbb
<_whitenotifier-8> [YoWASP/yosys] whitequark 14700f2 - Update dependencies.
bl0x_ has quit [Ping timeout: 240 seconds]
bl0x_ has joined #amaranth-lang
toshywoshy has joined #amaranth-lang
Degi_ has joined #amaranth-lang
Degi has quit [Ping timeout: 250 seconds]
Degi_ is now known as Degi
peeps[zen] has quit [Ping timeout: 250 seconds]
peepsalot has joined #amaranth-lang
GenTooMan has quit [Ping timeout: 240 seconds]
Lord_Nightmare has joined #amaranth-lang
bvernoux has joined #amaranth-lang
emeb has joined #amaranth-lang
emeb has quit [Client Quit]
GenTooMan has joined #amaranth-lang
oter has quit [Remote host closed the connection]
oter has joined #amaranth-lang
gdd has quit [Ping timeout: 256 seconds]
gatecat_ is now known as gatecat
<d1b2> <twam> Thanks! That looks promising. Do know if there are any examples. Documentation looks a bit sparse 😉
bvernoux has quit [Read error: Connection reset by peer]
<d1b2> <Greg> As an overview: you use ecpbram to create an 'init' file that's filled with pseudo-random values. You thin use this to fill the BRAM in your FPGA design. Once you have the .config file out of nextpnr, you run ecpbram again, this time providing it with the original init file, and your actual BRAM contents, it will create a new patched.config file. Which is fed through ecppack to create the final bitstream.
<d1b2> <Greg> Here are the two lines from some LiteX projects which is doing the same thing you want to do python # Create rand-fill os.system(f"ecpbram --generate {rand_rom} --seed {0} --width {32} --depth {soc.integrated_sram_size // 4}") ### Build gateware, and run Yosys/nextpnr ### Build firmware # Insert Firmware into Gateware os.system(f"ecpbram --input {input_config} --output {output_config} --from {rand_rom} --to {blkram_init}")