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
antgreen has joined #m-labs
bentley` has quit [Ping timeout: 265 seconds]
bentley` has joined #m-labs
balrog has quit [Ping timeout: 252 seconds]
balrog has joined #m-labs
mumptai has joined #m-labs
mumptai has quit [Remote host closed the connection]
<cr1901_modern> sb0: Suppose I need to implement a latch to use in a Migen desgn. The easiest way to do this is to write a Verilog module for it. Now suppose I wanted to build my design using Migen's platform. >>
<cr1901_modern> What is the proper way to tell Migen that it needs to compile my custom latch module as well as the v file that Migen generates?
<sb0> what do you need a latch for?
<cr1901_modern> Combinational edge detector with hold- i.e. design detects active edge and then wants to see if the input signal transitioned back after a few clock cycles.
<sb0> the proper way is to add an abstract and platform-independent latch special to migen, plus platform specific implementation in mibuild
<sb0> but there is almost never a good reason to use a latch, which is why they are not supported
<cr1901_modern> I'm thinking whether I can implement the edge detector in a different way. I was trying to do sequential edge detector about an hour ago, but ran into a snag
<cr1901_modern> (which I don't remember anymore b/c of course I don't)
<cr1901_modern> More generally, looking at e.g. mibuild/xilinx/ise.py, line 162, it seems that migen will only permit one source file to be added- the one generated by migen itself. So if any Instances are used, it's not possible to use Migen to synthesize.
<cr1901_modern> I guess there hasn't been a pressing need to use multiple source files yet? :P
<cr1901_modern> Anyway, I'll work around it, or inherit from Special in my own design.
<sb0> we use multiple source files for mor1kx and lm32
<sb0> but i don't think you should use a latch.
<GitHub153> [artiq] sbourdeauducq pushed 1 new commit to master: http://git.io/vTPYW
<GitHub153> artiq/master ea53ed1 Sebastien Bourdeauducq: gui: switch to Qt
travis-ci has joined #m-labs
<travis-ci> m-labs/artiq#150 (master - ea53ed1 : Sebastien Bourdeauducq): The build was broken.
travis-ci has left #m-labs [#m-labs]
fengling has quit [Ping timeout: 272 seconds]
fengling has joined #m-labs
fengling has quit [Client Quit]
antgreen has quit [Ping timeout: 272 seconds]
<mindrunner> how is the gpio classes supposed to work? can I easily control all my io-pins from software with it? dont i need tristates for that?
<whitequark> there are tristate gpio pins, iirc
<whitequark> you can set both value and direction
<whitequark> in some cases you can even enable PU/PD
<mindrunner> i dont really understand how to use GPIOInOut()
<mindrunner> i need to construct it with two signals
<mindrunner> i can just find an example where a pin is either used as input or oputput
<mindrunner> but not a universal gpio
<whitequark> wait, wrong channel, nevermind what I said
<whitequark> I thought you meant linux gpis
<whitequark> *gpios
<mindrunner> hehe
<mindrunner> okay
<ysionneau> GPIOInOut seems to just be a wrapper to register GPIOIn and GPIOOut
<ysionneau> but not for tristate
<mindrunner> yep
<mindrunner> ok, so i need to set up a tristate for each pin and expose it to the software side with CSRs manually?
<ysionneau> also, some doc about Tri-state : https://migen.readthedocs.org/en/latest/fhdl.html#specials
<ysionneau> mindrunner: yes, you can do that
<mindrunner> cheers
antgreen has joined #m-labs
<GitHub18> [artiq] fallen pushed 1 new commit to master: http://git.io/vTXAn
<GitHub18> artiq/master d78a275 Yann Sionneau: pxi6733: use a method as DoneEvent callback
travis-ci has joined #m-labs
<travis-ci> m-labs/artiq#151 (master - d78a275 : Yann Sionneau): The build is still failing.
travis-ci has left #m-labs [#m-labs]
<GitHub108> [artiq] sbourdeauducq pushed 1 new commit to master: http://git.io/vT1qr
<GitHub108> artiq/master cff999f Sebastien Bourdeauducq: doc: update mock modules
travis-ci has joined #m-labs
<travis-ci> m-labs/artiq#152 (master - cff999f : Sebastien Bourdeauducq): The build is still failing.
travis-ci has left #m-labs [#m-labs]
antgreen has quit [Ping timeout: 272 seconds]
<GitHub69> [artiq] sbourdeauducq pushed 1 new commit to master: http://git.io/vT1Ko
<GitHub69> artiq/master 2570444 Sebastien Bourdeauducq: gui: add empty explorer and console docks
<GitHub27> [artiq] fallen pushed 1 new commit to master: http://git.io/vT1iL
<GitHub27> artiq/master 82ec931 Yann Sionneau: conda: add pyqtgraph+quamash dependencies/recipes and remove gbulb and cairoplot3
travis-ci has joined #m-labs
<travis-ci> m-labs/artiq#154 (master - 82ec931 : Yann Sionneau): The build was fixed.
travis-ci has left #m-labs [#m-labs]
mumptai has joined #m-labs
<GitHub65> [artiq] sbourdeauducq pushed 1 new commit to master: http://git.io/vTM2c
<GitHub65> artiq/master d9c2513 Sebastien Bourdeauducq: gui: add explorer widgets
travis-ci has joined #m-labs
<travis-ci> m-labs/artiq#155 (master - d9c2513 : Sebastien Bourdeauducq): The build passed.
travis-ci has left #m-labs [#m-labs]
mumptai has quit [Ping timeout: 258 seconds]