Re: [Milkymist-devel] [PATCH 2/2] top.py: CounterADC usage example with two channels

2013-04-19 Thread Werner Almesberger
sebastien.bourdeaud...@lekernel.net wrote: >>+ dummy = Signal() >>+ self.comb += dummy[0].eq(mmc.dat[0] | mmc.dat[1] | mmc.dat[3]) > > What is that supposed to do? Also dummy[0] does not make sense as > dummy is only 1-bit. This second patch was only for illustration purpo

Re: [Milkymist-devel] [PATCH 2/2] top.py: CounterADC usage example with two channels

2013-04-19 Thread sebastien . bourdeauducq
Hi, On Thu, 18 Apr 2013 03:35:29 -0300, Werner Almesberger wrote: from milkymist import m1crg, lm32, norflash, uart, s6ddrphy, dfii, asmicon, \ identifier, timer, minimac3, framebuffer, asmiprobe, dvisampler +from milkymist.adc import CounterADC Use the same import style as the line j

[Milkymist-devel] [PATCH 2/2] top.py: CounterADC usage example with two channels

2013-04-17 Thread Werner Almesberger
--- top.py | 10 ++ 1 file changed, 10 insertions(+) diff --git a/top.py b/top.py index 6a41c50..102f827 100644 --- a/top.py +++ b/top.py @@ -9,6 +9,7 @@ from migen.bank import csrgen from milkymist import m1crg, lm32, norflash, uart, s6ddrphy, dfii, asmicon, \ identifier, ti