From df0ba1b03ce9f506816594ad19c5947eaec93057 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Sat, 28 Feb 2015 10:38:28 +0100 Subject: [PATCH] litescope: create example_designs directory --- misoclib/com/liteeth/example_designs/make.py | 2 +- .../tools/litescope/{ => example_designs}/make.py | 3 ++- .../{ => example_designs}/targets/__init__.py | 0 .../{ => example_designs}/targets/simple.py | 0 .../litescope/{ => example_designs}/test/make.py | 0 .../litescope/{ => example_designs}/test/test_io.py | 0 .../litescope/{ => example_designs}/test/test_la.py | 0 .../{ => example_designs}/test/test_regs.py | 0 misoclib/tools/litescope/test/Makefile | 13 ------------- 9 files changed, 3 insertions(+), 15 deletions(-) rename misoclib/tools/litescope/{ => example_designs}/make.py (98%) rename misoclib/tools/litescope/{ => example_designs}/targets/__init__.py (100%) rename misoclib/tools/litescope/{ => example_designs}/targets/simple.py (100%) rename misoclib/tools/litescope/{ => example_designs}/test/make.py (100%) rename misoclib/tools/litescope/{ => example_designs}/test/test_io.py (100%) rename misoclib/tools/litescope/{ => example_designs}/test/test_la.py (100%) rename misoclib/tools/litescope/{ => example_designs}/test/test_regs.py (100%) delete mode 100644 misoclib/tools/litescope/test/Makefile diff --git a/misoclib/com/liteeth/example_designs/make.py b/misoclib/com/liteeth/example_designs/make.py index 73de00fd..b29f2696 100644 --- a/misoclib/com/liteeth/example_designs/make.py +++ b/misoclib/com/liteeth/example_designs/make.py @@ -10,7 +10,7 @@ from migen.bank.description import CSRStatus from mibuild import tools from mibuild.xilinx_common import * -sys.path.append("../../../") # Temporary +sys.path.append("../../../../") # Temporary from misoclib.com.liteeth.common import * def get_csr_csv(regions): diff --git a/misoclib/tools/litescope/make.py b/misoclib/tools/litescope/example_designs/make.py similarity index 98% rename from misoclib/tools/litescope/make.py rename to misoclib/tools/litescope/example_designs/make.py index 5c0c85f3..e73294f5 100644 --- a/misoclib/tools/litescope/make.py +++ b/misoclib/tools/litescope/example_designs/make.py @@ -8,8 +8,9 @@ from migen.fhdl import verilog, edif from migen.fhdl.structure import _Fragment from migen.bank.description import CSRStatus from mibuild import tools -from mibuild.xilinx_common import * +from mibuild.xilinx.common import * +sys.path.append("../../../../") # Temporary from misoclib.tools.litescope.common import * def get_csr_csv(regions): diff --git a/misoclib/tools/litescope/targets/__init__.py b/misoclib/tools/litescope/example_designs/targets/__init__.py similarity index 100% rename from misoclib/tools/litescope/targets/__init__.py rename to misoclib/tools/litescope/example_designs/targets/__init__.py diff --git a/misoclib/tools/litescope/targets/simple.py b/misoclib/tools/litescope/example_designs/targets/simple.py similarity index 100% rename from misoclib/tools/litescope/targets/simple.py rename to misoclib/tools/litescope/example_designs/targets/simple.py diff --git a/misoclib/tools/litescope/test/make.py b/misoclib/tools/litescope/example_designs/test/make.py similarity index 100% rename from misoclib/tools/litescope/test/make.py rename to misoclib/tools/litescope/example_designs/test/make.py diff --git a/misoclib/tools/litescope/test/test_io.py b/misoclib/tools/litescope/example_designs/test/test_io.py similarity index 100% rename from misoclib/tools/litescope/test/test_io.py rename to misoclib/tools/litescope/example_designs/test/test_io.py diff --git a/misoclib/tools/litescope/test/test_la.py b/misoclib/tools/litescope/example_designs/test/test_la.py similarity index 100% rename from misoclib/tools/litescope/test/test_la.py rename to misoclib/tools/litescope/example_designs/test/test_la.py diff --git a/misoclib/tools/litescope/test/test_regs.py b/misoclib/tools/litescope/example_designs/test/test_regs.py similarity index 100% rename from misoclib/tools/litescope/test/test_regs.py rename to misoclib/tools/litescope/example_designs/test/test_regs.py diff --git a/misoclib/tools/litescope/test/Makefile b/misoclib/tools/litescope/test/Makefile deleted file mode 100644 index da182725..00000000 --- a/misoclib/tools/litescope/test/Makefile +++ /dev/null @@ -1,13 +0,0 @@ -LSDIR = ../ -PYTHON = python3 - -CMD = PYTHONPATH=$(LSDIR) $(PYTHON) - -test_regs: - $(CMD) test_regs.py - -test_io: - $(CMD) test_io.py - -test_la: - $(CMD) test_la.py -- 2.30.2