sb0 changed the topic of #m-labs to: https://m-labs.hk :: Mattermost https://chat.m-labs.hk :: Logs http://irclog.whitequark.org/m-labs
<_whitenotifier> [nmigen] RobertBaruch commented on issue #245: Unused signal seems not to change - https://git.io/JeWTk
harryho has joined #m-labs
Getorix has quit [Read error: Connection reset by peer]
sb0 has quit [Quit: Leaving]
sb0 has joined #m-labs
<sb0> whitequark: with the glasgow applet you wrote for the HP laser, when I set bit 0 to 1, the result is 0x05 instead of the expected 0x11
<sb0> with 0x04 and 0x01 at the transitions
<sb0> so this suggests that the bit shift between samples in a byte is 3 instead of 4
<sb0> *2
cr1901_modern1 has joined #m-labs
cr1901_modern1 has quit [Client Quit]
cr1901_modern1 has joined #m-labs
cr1901_modern has quit [Ping timeout: 268 seconds]
cr1901_modern1 has quit [Client Quit]
cr1901_modern has joined #m-labs
sb0 has quit [Ping timeout: 245 seconds]
m4ssi has joined #m-labs
sb0 has joined #m-labs
<sb0> whitequark: and there is also random data corruption ...
<sb0> I'm feeding it a 2MHz waveform, and sometimes there are glitches, but the signal looks ok on the scope
<sb0> whitequark: tried another source of 2MHz, exactly the same problem
<sb0> whitequark: connect 2MHz source, then run "glasgow run logic -V 3.3 --pins-d 0,1", then measure the time in samples between transitions. it's usually 24 as it should be, but sometimes and rarely you get 8 or 31
<sb0> or other values
<Dar1us> tried another 2 pins just in case it is a hardware problem?
<sb0> yes, same
harryho has quit [Remote host closed the connection]
Stary has quit [Ping timeout: 264 seconds]
alexhw has joined #m-labs
Stary has joined #m-labs
<whitequark> sb0: interesting
<whitequark> can you give me the source again?
<whitequark> sb0: try adding depth=8192 to get_in_fifo
<whitequark> the random data corruption is likely buffer overruns, which are not detected in that code, of course
<sb0> yes, the failure rate seems to vary with the computer's CPU load
<whitequark> i think the maximum fifo depth you can get is 30*512
<sb0> it's still buggy with in_fifo=iface.get_in_fifo(auto_flush=False, depth=8192),
<whitequark> that's strange
<whitequark> would need to set up something here and test
<_whitenotifier> [nmigen] whitequark closed issue #245: Unused signal seems not to change - https://git.io/JeClk
<_whitenotifier> [nmigen] whitequark commented on issue #245: Unused signal seems not to change - https://git.io/JeW3V
<whitequark> sb0: actually, there's a missing FFSynchronizer on the input, at least
<sb0> I don't get this "latch" signal
<sb0> is that for packing the two nibbles in the byte?
<whitequark> yeah
<whitequark> you could just feed input to the FIFO at the cost of halving the bandwidth
<whitequark> ohhh
<whitequark> re: bit shift
<whitequark> this happens because pads.d_t.i[:4] has length 2 in your case
<whitequark> so try something like
<whitequark> in_fifo.din[0:4].eq(pads.d_t.i[0:4]),
<whitequark> in_fifo.din[4:8].eq(latch[0:4]),
<sb0> whitequark: that fixes it, thanks
<whitequark> both issues?
<sb0> yes
<mtrbot-ml_> [mattermost] <jan.kiethe> jan.kiethe joined the team.
sb0 has quit [Ping timeout: 252 seconds]
sb0 has joined #m-labs
<sb0> whitequark: but it freezes after a while now
<sb0> freezes are more frequent with CPU usage, and increasing the FIFO size makes them more infrequent
<sb0> but no FIFO that would fit in the FPGA is large enough to stop them
<sb0> whitequark: and it still fails after halving the sample rate by adding wait states in the FSM
sb0 has quit [Client Quit]
<whitequark> sb0: right. let's see
<whitequark> that's a host side problem now
<whitequark> what if you remove sys.stdout.buffer.write part?
<whitequark> and just print dots or something
sandeepkr_ has joined #m-labs
Streetwalrus has quit [Quit: ZNC 1.7.3 - https://znc.in]
Streetwalrus has joined #m-labs
m4ssi has quit [Remote host closed the connection]
mumptai has joined #m-labs
mumptai has quit [Quit: Verlassend]
electronic_eel_ has joined #m-labs
electronic_eel has quit [Ping timeout: 240 seconds]
electronic_eel_ has quit [Client Quit]
electronic_eel has joined #m-labs
electronic_eel_ has joined #m-labs
electronic_eel_ has quit [Client Quit]
electronic_eel_ has joined #m-labs
electronic_eel has quit [Ping timeout: 276 seconds]
electronic_eel_ is now known as electronic_eel
gnufan_home has joined #m-labs
lkcl has quit [Ping timeout: 240 seconds]
lkcl has joined #m-labs
<whitequark> electronic_eel: i didn't forget about the PCA review. just couldn't get much done meanwhile.
<mtrbot-ml_> [mattermost] <harryho> whitequark: I'm sorry I actually repeated the same question regarding submodules in nMigen... my fault.
<whitequark> harryho: sorry, which questions? I must have missed them
Streetwalrus has quit [Quit: ZNC 1.7.3 - https://znc.in]
Streetwalrus has joined #m-labs
gnufan_home has quit [Quit: Leaving.]
<mtrbot-ml_> [mattermost] <harryho> Just asking about why `_get_submodule()` isn't found when using `dir(module.elaborate())`, but I forgot about how nmigen handles submodules differently. So, please don't worry.
<whitequark> ah. yeah.
<whitequark> harryho: FYI, about nmigen-soc, I plan to finish nmigen 0.1 this week and immediately get working on nmigen-soc.
<mtrbot-ml_> [mattermost] <harryho> Ok thanks
<_whitenotifier> [smoltcp] whitequark closed pull request #311: raw socket truncated packets - https://git.io/JeCSO
<_whitenotifier> [m-labs/smoltcp] whitequark pushed 1 commit to master [+0/-0/±1] https://git.io/JeWEf
<_whitenotifier> [m-labs/smoltcp] MabezDev 0fedb1d - raw_socket: gracefully handle packet truncation errors