sb0 changed the topic of #m-labs to: ARTIQ, Migen, MiSoC, Mixxeo & other M-Labs projects :: fka #milkymist :: Logs http://irclog.whitequark.org/m-labs
mumptai has quit [Quit: Verlassend]
<cyrozap> I'm having trouble understanding misoc/cores/spi_flash...
<cyrozap> I'm just trying to get it to use MOSI and MISO, not DQ because my SPI flash doesn't support dual/quad-rate.
<rjo> cyrozap: what's in a name?
<rjo> cyrozap: those are just different names for the same signals. spi_flash works fine with single width spi.
Mon_ has joined #m-labs
Mon_ is now known as Guest12633
Guest12633 has quit [Quit: This computer has gone to sleep]
<whitequark> sb0: hmmm no idea
<whitequark> wow, 10^-10 vapor pressure
<whitequark> that's amazing
Guest12633 has joined #m-labs
<cr1901_modern> rjo: sb0 did mention that it would be nice if naming was consistent for different i/o devices on the same pins, but I guess that's fairly low on the todo list/"nice to have" feature.
<cr1901_modern> I got thrown off by it when trying to port my board
<cyrozap> rjo: Not in my experience, it complains that there's no DQ pins defined.
<cyrozap> rjo: As in, doing spi_flash.SpiFlash(platform.request("spiflash")) doesn't work.
<rjo> cyrozap: well. the platform's naming has to match the core's naming.
<cyrozap> rjo: Right, but spi_flash gets the bus width from the width of dq, but the flash I'm using does not support 2x.
<rjo> cr1901_modern: sure. but in this case the name can depend on how you talk to it.
<rjo> cyrozap: spi_flash works if dq is a single bit wide.
<rjo> the only thing it does not (directly) support is the case where there are two lines and miso is 1-bit wide.
<rjo> which is "real" "standard" spi in some sense.
<cyrozap> rjo: Ah, that's where the issue is, MOSI and MISO are seperate on this board.
<rjo> cr1901_modern: you can do this by having overlapping platform records that expose the same signals under different names. IIRC I did that for one of the platforms I wrote. it is a bit dirty because you get the error very late if you mess up.
<rjo> in this case it is actually beneficial that spi_flash expects "dq" while the other "generic" spi core has "miso/mosi".
<rjo> cyrozap: you should be able to adapt spi_flash. but it will get even uglier than it is now...
Guest12633 has quit [Quit: This computer has gone to sleep]
Mon_ has joined #m-labs
Mon_ is now known as Guest8378
Guest8378 has quit [Quit: This computer has gone to sleep]
Mon_1 has joined #m-labs
Mon_1 has quit [Client Quit]
Mon_1 has joined #m-labs
Mon_1 has quit [Quit: This computer has gone to sleep]
Mon_ has joined #m-labs
Mon_ has quit [Client Quit]
<whitequark> sb0: why did you put the runtime under artiq/runtime?..
<whitequark> also haha wow I just hit the submodule bug
Mon_ has joined #m-labs
Mon_ is now known as Guest81408
Guest81408 has quit [Client Quit]
<whitequark> sb0: also why did you take absolute paths in the runtime makefile and replaced them with relative?
Mon_1 has joined #m-labs
Mon_1 has quit [Client Quit]
Mon_1 has joined #m-labs
Mon_1 has quit [Quit: This computer has gone to sleep]
<whitequark> sb0: File "pygit2/libgit2_build.py", line 71, in <module>
<whitequark> ImportError: No module named 'cffi'
<whitequark> how do I fix this on Debian?
<whitequark> hm, pygit seems to just miss the cffi dependency for some reason
Mon_1 has joined #m-labs
<whitequark> and pycparser too... wtf
<GitHub107> [misoc] whitequark pushed 1 new commit to master: http://git.io/v8nro
<GitHub107> misoc/master f24e7e5 whitequark: Update .gitignore.
travis-ci has joined #m-labs
<travis-ci> m-labs/misoc#15 (master - f24e7e5 : whitequark): The build passed.
travis-ci has left #m-labs [#m-labs]
Mon_1 has quit [Quit: This computer has gone to sleep]
rohitksingh has joined #m-labs
aeris has quit [Ping timeout: 264 seconds]
aeris has joined #m-labs
Mon_ has joined #m-labs
Mon_ is now known as Guest42463
Guest42463 has quit [Client Quit]
Mon_1 has joined #m-labs
Mon_1 has quit [Quit: This computer has gone to sleep]
Mon_1 has joined #m-labs
Mon_1 has quit [Quit: This computer has gone to sleep]
<whitequark> scratch my earlier questions, I now see the new migen architecture
<whitequark> note that the "Ubuntu 14.04 specific instructions" section in installation manual is now effectively invalid
<whitequark> because it lists a bunch of Python 3.4 deb packages
<whitequark> and those are called python3.5- in Debian, and mostly are not there
<sb0> whitequark, what relative paths?
<whitequark> in runtime Makefile
<sb0> let's remove those ubuntu instructions...
<sb0> maintaining this sort of thing will be a pain (in addition to conda)
<GitHub76> [artiq] whitequark pushed 1 new commit to master: http://git.io/v8cJ1
<GitHub76> artiq/master 0b5e1d1 whitequark: Unbreak artiq_flash.sh.
<whitequark> well, no, let's just remove the python packages
<sb0> plus, on ubuntu you actually need to use python3.5 as executable, python3 is 3.4, which makes a slight mess
<whitequark> it's enough to get python3.5{,-dev}, the rest can be downloaded by setuptools...
<sb0> if you change that in artiq_flash, you may want to update the shebang lines in frontend/ plus the docs
<whitequark> hm, Ubuntu only has python3.5 since 15.10...
<sb0> hm, which do I have then
<sb0> I remember having to use python3.5 on my ubuntu machine
<whitequark> maybe a PPA?
<whitequark> er
<sb0> yes. it has a python3.5 package, but the python3 executable points to 3.4.
<sb0> at least it does so on my machine
<whitequark> yes, python3 points to python3.5
<sb0> no, 3.4.3 here
<sb0> even though I did install that python3.5 package
<sb0> and if I try to remove the 3.4 package, it uninstalls half of my system ...
<whitequark> yes, you cannot remove 3.4
<whitequark> loooots of things in ubuntu depend on it (you can tell because they hog all the memory)
<sb0> whitequark, we should use a consistent python interpreter, either python3 or python3.5, but not python3.5 in artiq_flash.sh and python3 everywhere else
<whitequark> I'm fixing it at the moment
<sb0> btw, were you aware of this module? https://docs.python.org/3.5/library/typing.html
<whitequark> it didn't exist in 3.4
<sb0> it was an external lib
<sb0> that got merged in 3.5
<whitequark> ok
<sb0> is that the relative path you are talking about? https://github.com/m-labs/artiq/blob/master/artiq/runtime/Makefile#L1
<whitequark> their approach doesn't map very well to the needs of ARTIQ compiler anyway
<whitequark> I don't think we should migrate
<whitequark> yes
<sb0> because the current directory is the build directory, which is what you want
<whitequark> yes, I've figured that out
<sb0> those type hints could still be useful to annotate the return values of RPCs, maybe
<GitHub159> [artiq] whitequark pushed 1 new commit to master: http://git.io/v8cka
<GitHub159> artiq/master 51f04f6 whitequark: Explicitly use the python3.5 binary everywhere.
rohitksingh has quit [Ping timeout: 240 seconds]
<whitequark> sb0: xc3sprog fails on my machine
<whitequark> what do I use to properly program pipistrello, again?
<sb0> fpgaprog is shitty but reliable
<sb0> openocd should be better, but I could not get it to work
<whitequark> *sigh*
<whitequark> I can't program runtime.fbi using fpgaprog, right?
<whitequark> so there are three options and none of them work.
<whitequark> > During the Xilinx toolchain installation, uncheck Install cable drivers (they are not required as we use better and open source alternatives).
<whitequark> > better
<sb0> yes, maybe "less bad" would be a more appropriate word.
<sb0> anyway. you can program runtime.fbi I think, in the worst case by using dd
<sb0> to concatenate it after the BIOS with appropriate padding
<whitequark> ok
<whitequark> do you remember the addresses?
<sb0> but you may have better luck than I did with openocd
<sb0> they're in artiq_flash.sh
<sb0> and yes, those FPGA programming tools piss me off, which is why I tend to focus on kc705
<whitequark> have a spare kc705 yet? :]
<sb0> we can probably get two, otherwise sharing one in HK should be possible I think...
<whitequark> I'd actually prefer if it was just plugged into Ethernet somewhere in the lab or wherever
<whitequark> it's not like I ever need physical access, do I?
travis-ci has joined #m-labs
<travis-ci> m-labs/artiq#575 (master - 0b5e1d1 : whitequark): The build passed.
travis-ci has left #m-labs [#m-labs]
rohitksingh has joined #m-labs
<whitequark> artiq_flash could do the dd trick and just use fpgaprog
<sb0> as long as you don't flash it, it's fine
<sb0> fpgaprog doesn't work on kc705 afaik
<whitequark> well, yeah, use different ones for pipistrello and kc705
<sb0> I'd rather spend time on getting openocd to work
<sb0> fpgaprog is messy and probably at least as buggy as xc3sprog, we just aren't hitting the bugs yet
<whitequark> openocd is not exactly a shining beacon of quality either
<sb0> also, xc3sprog works on *some* pipistrellos ...
<sb0> btw, beware that xc3sprog and fpgaprog need a different flash proxy bitstream
<sb0> (as per Murphy's law: anything that can go wrong, will)
<whitequark> sigh
<whitequark> where can I get that one?
<sb0> fpgaprog ships with the one it needs
<whitequark> bscan_spi_lx9_csg324.bit, right?
<sb0> lx45 no?
<whitequark> hm
<whitequark> right
rohitksingh has quit [Ping timeout: 260 seconds]
travis-ci has joined #m-labs
<travis-ci> m-labs/artiq#576 (master - 51f04f6 : whitequark): The build passed.
travis-ci has left #m-labs [#m-labs]
<whitequark> ok, I did this: fpgaprog -v -b ~/Downloads/bscan_spi_lx45_csg324.bit -f top.bit -a $((0x170000/8)):combined.bin
<whitequark> where combined.bin is a copy of bios.bin, with dd bs=$((0x10000)) seek=$((0x1)) if=runtime.fbi of=combined.bin
<whitequark> there is nothing on the ttyUSB1
<sb0> try getting just the bios to work first ...
<sb0> and if you suspect flash XIP bugs, build the BIOS into the bitstream
<sb0> e.g. with --integrated-rom-size 32768
<whitequark> I definitely used fpgaprog before.
<whitequark> so it can work. but I don't remember how
<whitequark> no, does not work with just BIOS either
<whitequark> sb0: while it flashes... how low did you get with your chamber?
<whitequark> after very thorough cleaning of this one I've just pulled 4.5e-7 torr without even trying (ie no bakeout)
<whitequark> ah, I found why fpgaprog did not work after looking at the channel logs. it is idiotic
<whitequark> -a uses hex encoding but rejects 0x
<whitequark> amazingly, it worked
<whitequark> fpgaprog -v -b ~/Downloads/bscan_spi_lx45_csg324.bit -f top.bit -a 170000:combined.bin -sa -r
<sb0> whitequark, i don't have a calibrated gauge so I cannot tell
<whitequark> ahhh damn.
<whitequark> i told you to get that AIM gauge :)
<whitequark> nice, found an ext250 customized model on ebay starting at $25
<whitequark> let's see if I win another one...
<sb0> whitequark, btw the kf50 seal on the diffusion pump leaks more when tightened
<sb0> any idea what can cause that?
<whitequark> shitty seal
<whitequark> well, shitty flange
<sb0> shitty in what way?
<whitequark> btw, note that overall, the tightening on kf series connections is not to prevent leakage
<whitequark> it is primarily to keep the system mechanically connected
<whitequark> if you do not have significant load, atmospheric pressure keeps it squeezed enough...
<whitequark> well, for example, it could be warped
<whitequark> or scratched
<sb0> yes, i had a kf seal held by rubber bands for a while when I ran out of clamps...
<whitequark> can I have a photo of the mating surfaces and the centering ring?
<sb0> amazingly it worked
<sb0> yes, as soon as that pump cools down
<whitequark> I have a bunch here that are held by gravity
<whitequark> doesn't prevent it from going down to -7
<whitequark> actually, right now, *all* of my kf and iso seals are held together by atmospheric pressure
<whitequark> new flterm is dumb: it doesn't properly quit on ^C
<whitequark> why do you try to join *after* getting KeyboardInterrupt once
<whitequark> ?
<sb0> _florent_, ?
<sb0> btw mithro did you get it to work?
<mithro> sb0: get what to work?
<mithro> sb0: No, I still have the python flterm fail on my stupid broken UART
<sb0> yes, flterm.py
<GitHub118> [misoc] whitequark pushed 1 new commit to master: http://git.io/v8c8h
<GitHub118> misoc/master b440f36 whitequark: flterm: properly exit on ^C.
travis-ci has joined #m-labs
<travis-ci> m-labs/misoc#16 (master - b440f36 : whitequark): The build passed.
travis-ci has left #m-labs [#m-labs]
<GitHub195> [artiq] whitequark pushed 4 new commits to new-py2llvm: http://git.io/v8cBH
<GitHub195> artiq/new-py2llvm da62293 whitequark: Merge commit 'd0b5c3ba7fb' into new-py2llvm
<GitHub195> artiq/new-py2llvm d6d0a3e whitequark: Merge branch 'master' into new-py2llvm
<GitHub195> artiq/new-py2llvm a0c6f75 whitequark: compiler.types: fix obsolete iodelay references.
<whitequark> phew, merged master into it
<whitequark> the LED example works...
rohitksingh has joined #m-labs
<GitHub148> [artiq] whitequark pushed 1 new commit to new-py2llvm: http://git.io/v8cRc
<GitHub148> artiq/new-py2llvm 73c22b0 whitequark: Fix tests.
<cr1901_modern> rjo: Re: platform records, could you point to a coding example when you have the chance?
<cr1901_modern> (Sorry, I definitely was out cold last night lol)
Mon_ has joined #m-labs
Mon_ is now known as Guest42480
<whitequark> ok, let me just implement this: http://www.cs.rice.edu/~keith/EMBED/dom.pdf
<whitequark> and that would go most of the way towards with parallel
<sb0> in a nutshell, what's the benefit over the simple and stupid approach currently in place?
<whitequark> the IR uses control flow graphs
<whitequark> I don't /have/ the ASTs at that point
<whitequark> don't worry, the actual algorithm in figure 3 on page 7 is hardly 1/2 of page
Guest42480 has quit [Quit: This computer has gone to sleep]
Mon_ has joined #m-labs
Mon_ is now known as Guest33117
Guest33117 has quit [Client Quit]
Mon_1 has joined #m-labs
Mon_1 has quit [Quit: This computer has gone to sleep]
nicksydney has joined #m-labs
Mon_1 has joined #m-labs
Mon_1 has quit [Client Quit]
Mon_1 has joined #m-labs
Mon_1 has quit [Quit: This computer has gone to sleep]
Mon_ has joined #m-labs
Mon_ is now known as Guest94327
Guest94327 has quit [Quit: This computer has gone to sleep]
Mon_1 has joined #m-labs
Mon_1 has quit [Quit: This computer has gone to sleep]
Mon_ has joined #m-labs
Mon_ is now known as Guest83234
bentley` has quit [Ping timeout: 246 seconds]
ylamarre has joined #m-labs
Guest83234 has quit [Quit: This computer has gone to sleep]
kaalia has joined #m-labs
rohitksingh has quit [Ping timeout: 264 seconds]
rohitksingh has joined #m-labs
stekern has quit [Ping timeout: 260 seconds]
stekern has joined #m-labs
rohitksingh has quit [Quit: Leaving.]
felix_ has quit [Ping timeout: 240 seconds]
felix_ has joined #m-labs
rohitksingh has joined #m-labs
rohitksingh has quit [Quit: Leaving.]
bentley` has joined #m-labs