Skip to content

Commit

Permalink
makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
jordens committed Oct 26, 2017
1 parent 3b9de62 commit a7fb828
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
19 changes: 19 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
.PHONY: all
all: build

.PHONY: build
build: build/urukul.vm6

build/urukul.vm6: urukul.py urukul_cpld.py
python urukul.py

REV:=$(shell git describe --always --abbrev=8 --dirty)

.PHONY: release
release: build/urukul.vm6
cd build; tar czvf urukul_$(REV).tar.gz \
urukul.v urukul.ucf urukul.xst \
urukul.vm6 urukul.jed urukul.isc \
urukul.tim urukul.rpt \
urukul.pad urukul_pad.csv

6 changes: 3 additions & 3 deletions urukul.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def __init__(self, platform, n=4):
]


class Top(Module):
class Urukul(Module):
def __init__(self, platform):
clk = platform.request("clk")
dds_sync = platform.request("dds_sync")
Expand Down Expand Up @@ -219,8 +219,8 @@ def __init__(self, platform):
def main():
from urukul_cpld import Platform
p = Platform()
top = Top(p)
p.build(top, mode="cpld")
urukul = Urukul(p)
p.build(urukul, build_name="urukul", mode="cpld")


if __name__ == "__main__":
Expand Down

0 comments on commit a7fb828

Please sign in to comment.