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
7 changes: 7 additions & 0 deletions chipflow/config/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,23 @@ class SiliconConfig(BaseModel):
# This is still kept around to allow forcing pad locations.

class SimulationConfig(BaseModel):
"""Configuration for simulation settings."""
num_steps: int = 3000000


class CompilerConfig(BaseModel):
"""Configuration for compiler toolchain."""
cpu: str
abi: str


class SoftwareConfig(BaseModel):
"""Configuration for software build settings."""
riscv: CompilerConfig = CompilerConfig(cpu="baseline_rv32-a-c-d", abi="ilp32")


class TestConfig(BaseModel):
"""Configuration for test settings."""
event_reference: Path

class ChipFlowConfig(BaseModel):
Expand Down
18 changes: 12 additions & 6 deletions chipflow/platform/io/iosignature.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,18 @@ class IOModelOptions(TypedDict):
clock_domain: The name of the I/O's clock domain (see
``amaranth.hdl.ClockDomain``). NB there is only one of these, so IO
with multiple clocks must be split up.
buffer_in: Should the IO pad have an input buffer?
buffer_out: Should the IO pad have an output buffer?
sky130_drive_mode: Drive mode for output buffer on sky130.
trip_point: Trip Point configuration for input buffer.
init: The value for the initial values of the port.
init_oe: The value for the initial values of the output enable(s) of the port.
buffer_in: Should the IO pad have an input buffer? Defaults to True for
ports with input direction.
buffer_out: Should the IO pad have an output buffer? Defaults to True for
ports with output direction.
sky130_drive_mode: Drive mode for output buffer on sky130. See
:class:`Sky130DriveMode` for available options.
trip_point: Trip Point configuration for input buffer. See
:class:`IOTripPoint` for available options.
init: The value for the initial values of the port. Can be an integer or
boolean.
init_oe: The value for the initial values of the output enable(s) of the
port. Can be an integer or boolean.
"""

invert: NotRequired[bool|Tuple[bool, ...]]
Expand Down
Loading