<tnt>
I think mem2reg just doesn't work for initialized ROM and is more for ... ram I guess.
<daveshah>
I think it might be `$readmemh` in particular
<tnt>
I went with -nobram
<swetland>
ice40 dffs always initialize to 0, don't they?
<tnt>
yes
<swetland>
oh but we're talking LUTs
<swetland>
yeah that's weird... treating a set of LUTs as a small ROM seems entirely reasonable
<tnt>
Ah yeah. Also, I never rely on DFF init values. If a dff need a reset value I'll have an explicit reset line to it.
jcreus has joined ##openfpga
<swetland>
I should stop cheating that way. more portable / safer / etc.
<tnt>
Yeah, often I want a way to reset without a reprogram and also I always have a PLL so I can't trust the clock for a while ... and also ice40 bram apparently don't work right for a while after config so have to wait for them anyway.
<swetland>
how do you arrange to wait it out? LFOSC? external RC circuit?
<tnt>
No, I have a counter that waits for some time before releasing the global reset line.
<swetland>
counting external clock ticks?
<tnt>
counting ... my clock.
<tnt>
It's async reset by the pll_lock output. Then counts to 256 and then release the global reset for all the rest of the logic.
<swetland>
gotcha
pie_ has quit [Remote host closed the connection]
pie_ has joined ##openfpga
jcreus has quit [Ping timeout: 246 seconds]
jcreus has joined ##openfpga
rohitksingh has joined ##openfpga
genii has joined ##openfpga
jcreus has quit [Ping timeout: 264 seconds]
jcreus has joined ##openfpga
jcreus has quit [Ping timeout: 260 seconds]
jcreus has joined ##openfpga
SpaceCoaster_ has joined ##openfpga
emeb has joined ##openfpga
SpaceCoaster has quit [Ping timeout: 268 seconds]
jcreus has quit [Ping timeout: 244 seconds]
jcreus has joined ##openfpga
jcreus has quit [Ping timeout: 245 seconds]
zng has quit [Ping timeout: 244 seconds]
edmund_ has joined ##openfpga
edmund has quit [Ping timeout: 246 seconds]
edmund__ has joined ##openfpga
edmund_ has quit [Ping timeout: 244 seconds]
elaforest has quit [Ping timeout: 256 seconds]
wpwrak has quit [Ping timeout: 246 seconds]
zng has joined ##openfpga
zng has quit [Ping timeout: 250 seconds]
zng_ has joined ##openfpga
wpwrak has joined ##openfpga
zng_ has quit [Ping timeout: 268 seconds]
azonenberg_work has joined ##openfpga
rohitksingh has quit [Ping timeout: 250 seconds]
zng has joined ##openfpga
m4ssi has quit [Remote host closed the connection]
rohitksingh has joined ##openfpga
rohitksingh has quit [Ping timeout: 260 seconds]
rohitksingh has joined ##openfpga
ayjay_t has quit [Read error: Connection reset by peer]
<sorear>
the commit address for that repo would be mike@popoloski.com
<cr1901_modern>
Yea I think you have to actually checkout the repo locally to get the addr, but it should be in the log, as I assume that's how sorear got it