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.