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