Friday, 2020-02-21

*** tpb has joined #yosys00:00
*** emeb has quit IRC00:11
*** twnqx has quit IRC00:15
*** emeb_mac has joined #yosys00:18
*** N2TOH_ has joined #yosys00:40
*** N2TOH has quit IRC00:42
*** rohitksingh has quit IRC01:56
*** citypw has joined #yosys02:38
*** rohitksingh has joined #yosys02:41
*** N2TOH_ is now known as N2TOH02:47
*** captain_morgan06 has quit IRC06:45
*** captain_morgan06 has joined #yosys06:47
*** emeb_mac has quit IRC07:01
*** OK_b00m3r has quit IRC07:52
*** rohitksingh has quit IRC07:54
*** fsasm has joined #yosys08:38
*** m4ssi has joined #yosys09:04
*** twnqx has joined #yosys09:27
*** N2TOH_ has joined #yosys09:41
*** N2TOH has quit IRC09:42
*** captain_morgan06 has quit IRC10:14
*** captain_morgan06 has joined #yosys10:15
*** X-Scale` has joined #yosys10:27
*** X-Scale has quit IRC10:28
*** X-Scale` is now known as X-Scale10:29
*** strongsaxophone has joined #yosys11:18
*** X-Scale` has joined #yosys11:18
*** X-Scale has quit IRC11:18
*** X-Scale` is now known as X-Scale11:19
*** vidbina has joined #yosys14:00
*** develonepi3 has quit IRC14:22
*** jakobwenzel has quit IRC14:59
*** gromero has joined #yosys15:10
*** seraxis has quit IRC15:16
*** seraxis has joined #yosys15:16
*** fsasm has quit IRC15:22
*** m4ssi has quit IRC15:38
*** m4ssi has joined #yosys15:50
*** m4ssi has quit IRC16:05
*** dys has joined #yosys16:05
*** emeb has joined #yosys16:12
*** vidbina has quit IRC16:21
*** citypw has quit IRC17:12
*** dys has quit IRC17:44
*** _whitelogger has quit IRC17:47
*** fsasm has joined #yosys17:48
*** _whitelogger has joined #yosys17:49
*** rohitksingh has joined #yosys17:56
*** emily has quit IRC18:13
*** fevv8[m] has quit IRC18:13
*** promach3 has quit IRC18:13
*** rjo has quit IRC18:14
*** pepijndevos[m] has quit IRC18:14
*** nrossi has quit IRC18:14
*** jryans has quit IRC18:14
*** fsasm_ has joined #yosys18:22
*** nrossi has joined #yosys18:22
*** pepijndevos[m] has joined #yosys18:23
*** fsasm has quit IRC18:24
*** vidbina has joined #yosys18:29
*** fevv8[m] has joined #yosys18:31
*** fevv8[m] has quit IRC18:32
*** nrossi has quit IRC18:32
*** pepijndevos[m] has quit IRC18:32
*** rohitksingh has quit IRC18:40
*** rohitksingh has joined #yosys18:47
*** Jybz has joined #yosys18:50
*** Jybz has quit IRC18:55
*** vidbina has quit IRC19:05
*** promach3 has joined #yosys19:06
*** vidbina has joined #yosys19:13
*** vidbina has quit IRC19:16
*** vidbina has joined #yosys19:16
*** rohitksingh has quit IRC19:21
*** N2TOH_ has quit IRC19:32
*** N2TOH has joined #yosys19:37
*** N2TOH_ has joined #yosys19:38
*** N2TOH has quit IRC19:41
*** nrossi has joined #yosys19:47
*** emily has joined #yosys19:47
*** rjo has joined #yosys19:47
*** fevv8[m] has joined #yosys19:47
*** jryans has joined #yosys19:47
*** pepijndevos[m] has joined #yosys19:47
*** somlo has quit IRC19:48
*** somlo has joined #yosys19:49
*** rohitksingh has joined #yosys20:06
*** gromero has quit IRC20:59
*** fsasm_ has quit IRC21:05
twnqxso... what do yosys and friends do with unused pins on an fpga? tristate, output, input?21:11
daveshahTotally unused? input with pullup, same as if the FPGA is not configured at all21:11
daveshah(for iCE40)21:11
*** strongsaxophone has quit IRC21:12
mwktwnqx: that does not depend on yosys, fyi; yosys doesn't even know what pins the fpga has21:13
twnqxthat's what i was hoping for, great21:13
twnqxhence "and friends" :P not sure if part of nextpnr or icepack21:13
twnqxalso, i just realized i actually have to figure out tristate buffers as my SPI bus is shared :/21:14
sensilleyou can assign 'Z' to the signal21:15
twnqxuh. i am not quite sure that will correctly end up with a tristate-enabled SB_IO21:16
mwkassign pin = oe ? o : 1'bz;21:16
mwkthat should do the trick21:16
mwk(and if not, report a bug)21:16
twnqx(and if not - magic smoke) :P21:16
twnqxactually, i should a) be able to test it nondestructively, and b) be able to see it in icepack's GUI, no?21:19
twnqxerr nextpnr's21:21
mwkright21:21
twnqxexcept nextpnr insists on either the right device, or loading a json :(21:28
*** emeb_mac has joined #yosys21:45
awygleIs there anything better than yosys' dot graph output for visualizing synthesis results?22:06
awygleI thought I'd seen an interactive schematic thing at Latch-Up or one of those conferences22:06
*** vidbina has quit IRC22:10
*** vidbina has joined #yosys22:11
*** vidbina has quit IRC22:14
*** vidbina has joined #yosys22:16
awygleoh there's an online demo of netlistsvg, that's not bad22:21
twnqxyeah, clearly doesn't work with just  wire MISO = CS ? 1'bz : MOSI; - output follows mosi regardless of cs22:24
mwktwnqx: could you give me a reproducible test case?22:28
twnqxdifficult as i use my own fpga + cpu system for the tests22:28
mwkyou're literally claiming a single line example doesn't work22:31
twnqxi am removing everything else and boiling it down to that right now.22:31
twnqxhttps://gist.github.com/chrschmidt/6e90479cd0b8d27a419cab1f70184369 in this case, i observe MISO following MOSI regardless of CS22:34
tpbTitle: gist:6e90479cd0b8d27a419cab1f70184369 ยท GitHub (at gist.github.com)22:34
twnqxunless i have a physical short between MISO and MOSI.22:36
twnqxin which case i doubt i could program the fpga, but still i'll check that22:36
mwktwnqx: a test case should include a command line22:37
twnqxupdated22:39
twnqxi mean, i can't provide a command line for the physical test i am doing...22:40
mwkI know, I just want to see if yosys and/or nextpnr do something stupid22:41
twnqxi've seen others use inout for their tristate tests.. i should check with that22:42
twnqxthough this is purely an output22:42
mwktry that, although it should work with an output22:43
daveshahAt a glance, looks like nextpnr is dealing with the tristate there fine22:48
daveshahI'm assuming that your nextpnr is fairly recently built though?22:49
twnqxgit head from some time yesterday22:50
daveshahNo problem there22:50
daveshahCan you share the asc file you actually get?22:51
twnqx... i'll check another IC's datasheet first22:51
twnqxare any pullup/pulldown involved in tristate?22:58
daveshahI think pullups should be disabled by default for used pins22:59
twnqxinverting the test sequence, it seems that a pretty strong (stronger than my cpu's pullup) keeper circuit is involved...23:01
twnqxand it's not following after all23:02
twnqxnow to figure out if that level shifter is to blame23:02
twnqxi really should have deisgned the PCB with more test points :(23:04
mwk... you have a level shifter on something where tristates are involved?23:04
mwkand pullups?23:04
twnqxautomatic direction sensing & bidirectional.23:04
mwkoh god23:04
twnqxand no, the pullup is activated for the test only and not normally23:04
mwkthat *never* ends well23:04
twnqxhow else could i use 5V and 3.3V things on one SPI bus...23:05
mwkuhh, by using CS as output enable?23:06
mwkand a non-automatic level shifter23:06
mwkseriously, automatic direction sensing is the work of the devil23:06
*** vidbina has quit IRC23:08
twnqxi did not have space for 3-4 level shifters :(23:09
twnqxbut the txb0106 so far never caused issues23:10
*** vidbina has joined #yosys23:10
*** vidbina has quit IRC23:13
twnqxalso, what's wrong with pullups? if all slaves on an SPI bus are in tristate, the master's input would float. that's never a good state.23:17
*** vidbina has joined #yosys23:18
ZirconiumXI think mwk's point is that *not* having the pullups ends poorly23:26
mwkpullups interfere badly with direction auto-detect23:29
mwksee glasgow revA/revB for an example23:29
twnqxespecially if they are too strong23:29
awygle_having_ pull-ups with autosensing level shifters is not going to work out well23:30
twnqxyes, they act as keepers - so you don't really need them either23:30
twnqxi was misunderstanding the remark as "tristate and pullups don't match"23:30
awygle(also those level shifters tend to turn into oscillators if you sneeze on them)23:30
awygle(just to back up what mwk was saying)23:31
twnqxso far i never had issues with them is all i can say23:32
twnqxbut i never used them in a case like this.23:32
twnqxwell, if this blows up, i'll have an excuse to ditch the AVR, use an STM32 or other cortex m, and go all 3.3V23:33
awyglein case anybody was wondering, this is what i was thinking of before: https://observablehq.com/@nturley/netlistsvg-how-to-draw-a-better-schematic-than-graphviz23:56
tpbTitle: Netlistsvg / Neil Turley / Observable (at observablehq.com)23:56

Generated by irclog2html.py 2.13.1 by Marius Gedminas - find it at mg.pov.lt!