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
mumptai_ has quit [Quit: Verlassend]
pie_ has joined #m-labs
airwoodix7 has joined #m-labs
Dar1us has quit [Ping timeout: 258 seconds]
airwoodix has quit [Ping timeout: 260 seconds]
airwoodix7 is now known as airwoodix
Dar1us has joined #m-labs
<mtrbot-ml> [mattermost] <sb10q> @astro ftdi_layout_signal nSRST -data 0x2000 is in the file already, no?
<mtrbot-ml> [mattermost] <sb10q> @astro why is it "something like a power-cycling"?
<mtrbot-ml> [mattermost] <sb10q> what a fucking piece of shit
<mtrbot-ml> [mattermost] <sb10q> @astro you mean when it misbehaves you reset it with "ftdi_layout_init 0x20e0 0x3feb" and then go back to the original file?
<mtrbot-ml> [mattermost] <sb10q> well the original file also doesn't work very well because of https://git.m-labs.hk/M-Labs/zc706/issues/8
<mtrbot-ml> [mattermost] <sb10q> which is also a new issue I had not seen before
<mtrbot-ml> [mattermost] <sb10q> and btw we have an actual power cycler, please don't break this zynq stuff with e.g. i/o contention more than what it is already broken by design
pie_ has quit [Ping timeout: 248 seconds]
<mtrbot-ml> [mattermost] <sb10q> I've just ordered a blackmagic (whitequark's favorite), hopefully that'll works better than this openocd/ftdi crap
<mtrbot-ml> [mattermost] <sb10q> it claims it supports Zynq-7000, likely we won't be able to access the FPGA part with it and only the ARM, but we can load the FPGA from the ARM
cedric has quit [Quit: ZNC 1.7.5 - https://znc.in]
cedric has joined #m-labs
cedric has joined #m-labs
cedric has quit [Changing host]
Stormwind_mobile has joined #m-labs
sb0 has quit [Quit: Leaving]
Stormwind_mobile has quit [Read error: Connection reset by peer]
Stormwind_mobile has joined #m-labs
Stormwind_mobile has quit [Ping timeout: 248 seconds]
_whitelogger has joined #m-labs
N3RGY has joined #m-labs
_whitelogger has joined #m-labs
Twix has quit [Ping timeout: 265 seconds]
Dar1us has quit [Ping timeout: 252 seconds]
N3RGY has quit []
Dar1us has joined #m-labs
Dar1us has quit [Ping timeout: 240 seconds]
Dar1us has joined #m-labs
_whitelogger has joined #m-labs
Getorix_ has joined #m-labs
Getorix has quit [Ping timeout: 260 seconds]
_whitelogger has joined #m-labs
<mtrbot-ml> [mattermost] <rikstarmans> @whitequark.. will post pastebins in the future. The following [gist](https://gist.github.com/hstarmans/8bd9c49eeca4cfb5e7710779bf2060bb) produces ram which can be inferred.
<mtrbot-ml> [mattermost] <rikstarmans> It turns out that for yosys to be able to infer sram it is required that data read is marked as output in the module header. The current solution is not ideal as I am forced to mark data read as output.
<whitequark> that is not a requirement for yosys to infer a block RAM
<whitequark> why do you think it is required?
Getorix has joined #m-labs
Getorix_ has quit [Ping timeout: 240 seconds]
<mtrbot-ml> [mattermost] <rikstarmans> @whitequark with output sram is inferred from verilog and without output but as internal signal it is not inferred see [gist](https://gist.github.com/hstarmans/3e47fb1e8b98fa80ee046df12fc26bb0)
<whitequark> your conclusion is incorrect
<mtrbot-ml> [mattermost] <rikstarmans> :-) .. i thought you were going to say that... so why doesn't it infer sram in the second example?
<whitequark> if you do not use any logic (like if you do not read from a memory), yosys will remove that logic
<whitequark> for that matter, if your design does not have any outputs, then yosys will always remove the entire design, because it's useless
<mtrbot-ml> [mattermost] <rikstarmans> okay.. so I should add a led which is turned on if the value in the memory equals some value?
<whitequark> for example, yes
<mtrbot-ml> [mattermost] <rikstarmans> thanks will try that then..
cedric has quit [Ping timeout: 268 seconds]
cedric has joined #m-labs
cedric has joined #m-labs
cedric has quit [Changing host]
yorick has joined #m-labs
Dar1us has quit [Ping timeout: 265 seconds]
Dar1us has joined #m-labs
<Astro-_> new programmer? \o/
en0k has joined #m-labs
<mtrbot-ml> [mattermost] <rikstarmans> @whitequark fixed the code and it is able to infer memory if I do something non trivial with it see my updated [gist](https://gist.github.com/hstarmans/8bd9c49eeca4cfb5e7710779bf2060bb) ..
<mtrbot-ml> [mattermost] <rikstarmans> Anyhow, I am trying to build a laser writer using a fpga. My current plan is as follows. I assume I need two SRAM blocks. Yosys does still not support dual port sram, so I plan to mitigate this with two srams. To the first sram block I write data via SPI. From the second SRAM I read data. If the laser is finished with the second SRAM it proceeds with the first SRAM.
<mtrbot-ml> [mattermost] <rikstarmans> The host continuously tries to write to the sram as fast as possible. The fpga signals if data is accepted, if not the host writes the data again. I assume the writing from the SPI is faster than the reading from the laser.
<mtrbot-ml> [mattermost] <rikstarmans> Would you go for a design with two sram blocks or is there an other option?
<mtrbot-ml> [mattermost] <rikstarmans>
<mtrbot-ml> [mattermost] <rikstarmans>
<whitequark> it does support dual port BRAMs
<whitequark> what it doesn't support is what's called "true dual port BRAM", which iCE40 does not have anyway
<mtrbot-ml> [mattermost] <rikstarmans> True, read that [here](https://github.com/YosysHQ/yosys/issues/1101) that's why i was confused. Okay, so I will try to infer a dual port SRAM block with two ports.
<mtrbot-ml> [mattermost] <rikstarmans> What would be the best way to signal the host, in my case a raspberry, the FPGA is ready for new data; by returning bytes over SPI or by flipping a pin or doesn't it matter?
Stormwind_mobile has joined #m-labs
<mtrbot-ml> [mattermost] <sb10q> @astro is the zc-10 also exhibiting this bug btw?
_whitelogger has joined #m-labs
Stormwind_mobile has quit [Read error: Connection reset by peer]
Stormwind_mobile has joined #m-labs
Stormwind_mobile has quit [Ping timeout: 248 seconds]
Stormwind_mobile has joined #m-labs
Stormwind_mobile has quit [Read error: Connection reset by peer]
Stormwind_mobile has joined #m-labs
Stormwind_mobile has quit [Ping timeout: 248 seconds]
Stormwind_mobile has joined #m-labs
cedric has quit [Quit: ZNC 1.7.5 - https://znc.in]
cedric has joined #m-labs
cedric has quit [Changing host]
cedric has joined #m-labs
Stormwind_mobile has quit [Read error: Connection reset by peer]
Stormwind_mobile has joined #m-labs
Stormwind_mobile has quit [Read error: Connection reset by peer]
Stormwind_mobile has joined #m-labs
Stormwind_mobile has quit [Ping timeout: 248 seconds]
Stormwind_mobile has joined #m-labs
Stormwind_mobile has quit [Ping timeout: 240 seconds]
Stormwind_mobile has joined #m-labs
mumptai has joined #m-labs
Stormwind_mobile has quit [Ping timeout: 248 seconds]
Stormwind_mobile has joined #m-labs
X-Scale has quit [Ping timeout: 268 seconds]
X-Scale has joined #m-labs
Stormwind_mobile has quit [Read error: Connection reset by peer]
Streetwalrus_ has joined #m-labs
Streetwalrus has quit [Read error: Connection reset by peer]
Streetwalrus_ is now known as Streetwalrus
Stormwind_mobile has joined #m-labs
electronic_eel has quit [Ping timeout: 240 seconds]
electronic_eel has joined #m-labs
electronic_eel has quit [Ping timeout: 240 seconds]
electronic_eel has joined #m-labs
Stormwind_mobile has quit [Ping timeout: 248 seconds]