From 40af98ad3235a2455ef1f3d461bc7e68fe848740 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Fran=C3=A7ois=20Nguyen?= Date: Mon, 19 Sep 2022 17:03:04 +0200 Subject: [PATCH] =?UTF-8?q?cores/microwatt:=20rename=20CLI=20tool=20(micro?= =?UTF-8?q?watt=20=E2=86=92=20microwatt=5Fcli).?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The CLI tool uses its own __main__.py; as a convention, we will suffix it with '_cli' in order to avoid name collisions with Python packages (e.g. an Amaranth core may have its package named after itself). --- cores/microwatt/README.md | 8 ++++---- cores/microwatt/{microwatt => microwatt_cli}/__init__.py | 0 cores/microwatt/{microwatt => microwatt_cli}/__main__.py | 0 .../{microwatt => microwatt_cli}/check/__init__.py | 0 .../{microwatt => microwatt_cli}/check/storage.py | 0 cores/microwatt/{microwatt => microwatt_cli}/core.py | 0 6 files changed, 4 insertions(+), 4 deletions(-) rename cores/microwatt/{microwatt => microwatt_cli}/__init__.py (100%) rename cores/microwatt/{microwatt => microwatt_cli}/__main__.py (100%) rename cores/microwatt/{microwatt => microwatt_cli}/check/__init__.py (100%) rename cores/microwatt/{microwatt => microwatt_cli}/check/storage.py (100%) rename cores/microwatt/{microwatt => microwatt_cli}/core.py (100%) diff --git a/cores/microwatt/README.md b/cores/microwatt/README.md index c7f0a75..5e0d220 100644 --- a/cores/microwatt/README.md +++ b/cores/microwatt/README.md @@ -4,7 +4,7 @@ - [ghdl-yosys-plugin](https://github.com/ghdl/ghdl-yosys-plugin) -POWER-FV support for Microwatt can be previewed on the following fork: +A version of Microwatt with POWER-FV support is available here: ``` git clone git@git.openpower.foundation:jfng/microwatt -b powerfv src @@ -17,7 +17,7 @@ git clone git@git.openpower.foundation:jfng/microwatt -b powerfv src ``` poetry shell -python -m microwatt -h +python -m microwatt_cli -h exit ``` @@ -25,11 +25,11 @@ exit ### Run commands from a file ``` -python -m microwatt -c checks.pfv +python -m microwatt_cli -c checks.pfv ``` ### Run commands interactively ``` -python -m microwatt -i +python -m microwatt_cli -i ``` diff --git a/cores/microwatt/microwatt/__init__.py b/cores/microwatt/microwatt_cli/__init__.py similarity index 100% rename from cores/microwatt/microwatt/__init__.py rename to cores/microwatt/microwatt_cli/__init__.py diff --git a/cores/microwatt/microwatt/__main__.py b/cores/microwatt/microwatt_cli/__main__.py similarity index 100% rename from cores/microwatt/microwatt/__main__.py rename to cores/microwatt/microwatt_cli/__main__.py diff --git a/cores/microwatt/microwatt/check/__init__.py b/cores/microwatt/microwatt_cli/check/__init__.py similarity index 100% rename from cores/microwatt/microwatt/check/__init__.py rename to cores/microwatt/microwatt_cli/check/__init__.py diff --git a/cores/microwatt/microwatt/check/storage.py b/cores/microwatt/microwatt_cli/check/storage.py similarity index 100% rename from cores/microwatt/microwatt/check/storage.py rename to cores/microwatt/microwatt_cli/check/storage.py diff --git a/cores/microwatt/microwatt/core.py b/cores/microwatt/microwatt_cli/core.py similarity index 100% rename from cores/microwatt/microwatt/core.py rename to cores/microwatt/microwatt_cli/core.py