From 02b3f513827f7c1f72eaf530fcf59ed5f7dcbd0c Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Thu, 26 Feb 2015 10:23:38 +0100 Subject: [PATCH] liteeth: fix example_designs generation --- misoclib/liteeth/example_designs/__init__.py | 0 misoclib/liteeth/example_designs/make.py | 5 +++-- 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 misoclib/liteeth/example_designs/__init__.py diff --git a/misoclib/liteeth/example_designs/__init__.py b/misoclib/liteeth/example_designs/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/misoclib/liteeth/example_designs/make.py b/misoclib/liteeth/example_designs/make.py index 7c4bb9d7..2ae4b1ed 100644 --- a/misoclib/liteeth/example_designs/make.py +++ b/misoclib/liteeth/example_designs/make.py @@ -10,6 +10,7 @@ from migen.bank.description import CSRStatus from mibuild import tools from mibuild.xilinx_common import * +sys.path.append("../../../") # Temporary from misoclib.liteeth.common import * def get_csr_csv(regions): @@ -60,7 +61,7 @@ if __name__ == "__main__": args = _get_args() # create top-level Core object - target_module = _import("targets", args.target) + target_module = _import("misoclib.liteeth.example_designs.targets", args.target) if args.sub_target: top_class = getattr(target_module, args.sub_target) else: @@ -70,7 +71,7 @@ if __name__ == "__main__": platform_name = top_class.default_platform else: platform_name = args.platform - platform_module = _import("platforms", platform_name) + platform_module = _import("misoclib.liteeth.example_designs.platforms", platform_name) platform_kwargs = dict((k, autotype(v)) for k, v in args.platform_option) platform = platform_module.Platform(**platform_kwargs) -- 2.30.2