README: fix quick intro
This commit is contained in:
parent
29eaf068f3
commit
6204bcfa10
10
README
10
README
|
@ -1,14 +1,18 @@
|
||||||
Mibuild (Milkymist Build system)
|
Mibuild (Milkymist Build system)
|
||||||
a build system and board database for Migen-based FPGA designs
|
a build system and board database for Migen-based FPGA designs
|
||||||
|
|
||||||
6-ligne intro:
|
Quick intro:
|
||||||
|
|
||||||
from migen.fhdl.structure import *
|
from migen.fhdl.structure import *
|
||||||
|
from migen.fhdl.module import Module
|
||||||
from mibuild.platforms import m1
|
from mibuild.platforms import m1
|
||||||
plat = m1.Platform()
|
plat = m1.Platform()
|
||||||
led = plat.request("user_led")
|
led = plat.request("user_led")
|
||||||
f = Fragment([led.eq(counter[25])], [counter.eq(counter + 1)])
|
m = Module()
|
||||||
plat.build_cmdline(f)
|
counter = Signal(26)
|
||||||
|
m.comb += led.eq(counter[25])
|
||||||
|
m.sync += counter.eq(counter + 1)
|
||||||
|
plat.build_cmdline(m)
|
||||||
|
|
||||||
Code repository:
|
Code repository:
|
||||||
https://github.com/milkymist/mibuild
|
https://github.com/milkymist/mibuild
|
||||||
|
|
Loading…
Reference in New Issue