From: Sebastien Bourdeauducq Date: Fri, 19 Apr 2013 12:00:46 +0000 (+0200) Subject: README: fix quick intro X-Git-Tag: 24jan2021_ls180~2099^2~443^2~38 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6204bcfa100509cb9bb73b5ee49de3316ae4c859;p=litex.git README: fix quick intro --- diff --git a/README b/README index 1e04545c..ccb46b46 100644 --- a/README +++ b/README @@ -1,14 +1,18 @@ Mibuild (Milkymist Build system) a build system and board database for Migen-based FPGA designs -6-ligne intro: +Quick intro: from migen.fhdl.structure import * +from migen.fhdl.module import Module from mibuild.platforms import m1 plat = m1.Platform() led = plat.request("user_led") -f = Fragment([led.eq(counter[25])], [counter.eq(counter + 1)]) -plat.build_cmdline(f) +m = Module() +counter = Signal(26) +m.comb += led.eq(counter[25]) +m.sync += counter.eq(counter + 1) +plat.build_cmdline(m) Code repository: https://github.com/milkymist/mibuild