diff --git a/build.py b/build.py index 73bd7720b..b345a5c91 100755 --- a/build.py +++ b/build.py @@ -5,8 +5,9 @@ import os from mibuild.platforms import m1 from mibuild.tools import write_to_file +from milkymist import cif + import top -import cif def main(): platform = m1.Platform() diff --git a/cif.py b/milkymist/cif.py similarity index 100% rename from cif.py rename to milkymist/cif.py diff --git a/top.py b/top.py index 6dbb0f541..fabfe6233 100644 --- a/top.py +++ b/top.py @@ -9,7 +9,7 @@ from migen.bank import csrgen from milkymist import m1crg, lm32, norflash, uart, s6ddrphy, dfii, asmicon, \ identifier, timer, minimac3, framebuffer, asmiprobe, dvisampler, \ counteradc, gpio -from cif import get_macros +from milkymist.cif import get_macros version = get_macros("common/version.h")["VERSION"][1:-1]