Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ jobs:
uses: actions/checkout@v4

- uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Set up PDM
uses: pdm-project/setup-pdm@v4
Expand Down
2 changes: 1 addition & 1 deletion mcu_soc/design/design.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from amaranth_soc.wishbone.sram import WishboneSRAM
from chipflow_digital_ip.io import GPIOPeripheral, UARTPeripheral, SPIPeripheral, I2CPeripheral
from chipflow_digital_ip.processors import CV32E40P, OBIDebugModule
from chipflow_lib.platforms import (
from chipflow.platform import (
GPIOSignature, UARTSignature, SPISignature, I2CSignature,
QSPIFlashSignature, JTAGSignature,
attach_data, SoftwareBuild
Expand Down
2 changes: 1 addition & 1 deletion mcu_soc/design/ips/pdm.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from amaranth.lib.wiring import In, Out, flipped, connect
from amaranth_soc import csr

from chipflow_lib.platforms import OutputIOSignature, SoftwareDriverSignature
from chipflow.platform import OutputIOSignature, SoftwareDriverSignature


__all__ = ["PDMPeripheral"]
Expand Down
2 changes: 1 addition & 1 deletion mcu_soc/design/ips/pwm.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from amaranth.lib.cdc import FFSynchronizer
from amaranth_soc import csr

from chipflow_lib.platforms import OutputIOSignature, InputIOSignature, SoftwareDriverSignature
from chipflow.platform import OutputIOSignature, InputIOSignature, SoftwareDriverSignature

__all__ = ["PWMPeripheral", "PWMPins"]

Expand Down
4 changes: 2 additions & 2 deletions mcu_soc/design/software/doit_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
import shutil

from doit import create_after
import chipflow_lib.config
import chipflow.config


CHIPFLOW_SOFTWARE_DIR = chipflow_lib.config.get_dir_software()
CHIPFLOW_SOFTWARE_DIR = chipflow.config.get_dir_software()
BUILD_DIR = "./build/software"
DESIGN_DIR = os.path.dirname(__file__) + "/.."
RISCVCC = f"{sys.executable} -m ziglang cc -target riscv32-freestanding-musl"
Expand Down
2 changes: 1 addition & 1 deletion mcu_soc/design/steps/board.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from amaranth_boards.ulx3s import ULX3S_85F_Platform

from chipflow_lib.steps.board import BoardStep
from chipflow.platform import BoardStep

from amaranth import *
from amaranth.lib import wiring
Expand Down
6 changes: 3 additions & 3 deletions mcu_soc/design/steps/sim.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

from amaranth import *
from amaranth.back import rtlil
from chipflow_lib.steps.sim import SimStep
from chipflow_lib import ChipFlowError
from chipflow.platform import SimStep
from chipflow import ChipFlowError

from ..design import MySoC
from ..sim.doit_build import VARIABLES, TASKS, DOIT_CONFIG
Expand All @@ -20,7 +20,7 @@

@contextmanager
def common():
chipflow_lib = importlib.resources.files('chipflow_lib')
chipflow_lib = importlib.resources.files('chipflow')
common = chipflow_lib.joinpath('common', 'sim')
with importlib.resources.as_file(common) as f:
yield f
Expand Down
2 changes: 1 addition & 1 deletion mcu_soc/design/steps/software.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from chipflow_lib.steps.software import SoftwareStep
from chipflow.platform import SoftwareStep
from ..software import doit_build


Expand Down
2 changes: 1 addition & 1 deletion minimal/design/design.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

from minerva.core import Minerva

from chipflow_lib.platforms import Sky130DriveMode, GPIOSignature, UARTSignature, QSPIFlashSignature, attach_data, SoftwareBuild
from chipflow.platform import Sky130DriveMode, GPIOSignature, UARTSignature, QSPIFlashSignature, attach_data, SoftwareBuild


__all__ = ["MySoC"]
Expand Down
4 changes: 2 additions & 2 deletions minimal/design/software/doit_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
import shutil

from doit import create_after
import chipflow_lib.config
import chipflow.config


CHIPFLOW_SOFTWARE_DIR = chipflow_lib.config.get_dir_software()
CHIPFLOW_SOFTWARE_DIR = chipflow.config.get_dir_software()
BUILD_DIR = "./build/software"
DESIGN_DIR = os.path.dirname(__file__) + "/.."
RISCVCC = f"{sys.executable} -m ziglang cc -target riscv32-freestanding-musl"
Expand Down
2 changes: 1 addition & 1 deletion minimal/design/steps/board.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from amaranth_boards.ulx3s import ULX3S_85F_Platform

from chipflow_lib.steps.board import BoardStep
from chipflow.platform import BoardStep

from amaranth import *
from amaranth.lib import wiring
Expand Down
2 changes: 1 addition & 1 deletion minimal/design/steps/software.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from chipflow_lib.steps.software import SoftwareStep
from chipflow.platform import SoftwareStep
from ..software import doit_build


Expand Down
604 changes: 221 additions & 383 deletions pdm.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ authors = [
]
license = {file = "LICENSE.md"}

requires-python = ">=3.11"
requires-python = ">=3.11,<3.14"
dependencies = [
"amaranth[builtin-yosys]>=0.5.4,<0.6",
"amaranth-soc @ git+https://github.com/amaranth-lang/amaranth-soc",
Expand Down
Loading