Minor cleanup

This commit is contained in:
Peder Bergebakken Sundt 2020-08-06 22:48:07 +02:00
parent 7dc7f2765f
commit 0d4b733da6
4 changed files with 5 additions and 8 deletions

2
.gitignore vendored
View File

@ -1,5 +1,5 @@
.venv/ .venv/
*.egg-infp *.egg-info
*.pyc *.pyc
__pycache__ __pycache__
build/ build/

0
README.md Normal file
View File

View File

@ -14,16 +14,13 @@ class Blinker(Elaboratable):
counter = Signal(range(self.maxperiod + 1)) counter = Signal(range(self.maxperiod + 1))
with m.If(counter == 0): with m.If(counter == 0):
m.d.sync += [ m.d.sync += led.eq(~led)
led.eq(~led), m.d.sync += counter.eq(self.maxperiod)
counter.eq(self.maxperiod)
]
with m.Else(): with m.Else():
m.d.sync += counter.eq(counter - 1) m.d.sync += counter.eq(counter - 1)
return m return m
if __name__ == "__main__": if __name__ == "__main__":
plat = ICEBreakerPlatform() plat = ICEBreakerPlatform()
#main(plat, ports=[plat.led]) #main(plat, ports=[plat.led])

View File

@ -1,11 +1,11 @@
[tool.poetry] [tool.poetry]
name = "fpga" name = "fpga"
version = "0.1.0" version = "0.1.0"
description = "" description = "playing around with nmigen"
authors = ["Peder Bergebakken Sundt <pbsds@hotmail.com>"] authors = ["Peder Bergebakken Sundt <pbsds@hotmail.com>"]
[tool.poetry.dependencies] [tool.poetry.dependencies]
python = "^3.7" python = "~3.7"
yowasp-nextpnr-ice40-all = "^0.0.post2658.dev17" yowasp-nextpnr-ice40-all = "^0.0.post2658.dev17"
nmigen-dg = {git = "https://github.com/pbsds/nmigen_dg"} nmigen-dg = {git = "https://github.com/pbsds/nmigen_dg"}
nmigen = "^0.2" nmigen = "^0.2"