|
1 | | -import abc |
2 | | -import itertools |
3 | 1 | import logging |
4 | | -import pathlib |
5 | 2 | import pydantic |
6 | 3 |
|
7 | | -from collections import OrderedDict, deque, defaultdict |
8 | 4 | from collections.abc import Iterable |
9 | 5 | from pprint import pformat |
10 | | -from typing import Set, List, Dict, Optional, Union, Literal, Tuple, TypeVar |
| 6 | +from typing import Dict, Tuple |
11 | 7 |
|
12 | | -from dataclasses import dataclass, asdict |
13 | | -from enum import IntEnum, StrEnum, auto |
14 | | -from math import ceil, floor |
| 8 | +from enum import StrEnum, auto |
15 | 9 | from typing import ( |
16 | | - Any, Annotated, NamedTuple, Generic, Self, |
17 | | - TYPE_CHECKING |
| 10 | + Annotated, TYPE_CHECKING |
18 | 11 | ) |
19 | 12 | from typing_extensions import ( |
20 | 13 | TypedDict, Unpack, NotRequired |
|
28 | 21 | ) |
29 | 22 |
|
30 | 23 |
|
31 | | -from .. import ChipFlowError, _ensure_chipflow_root, _get_cls_by_reference |
| 24 | +from .. import ChipFlowError, _get_cls_by_reference |
32 | 25 | from ._annotate import amaranth_annotate |
33 | 26 | from ._sky130 import Sky130DriveMode |
34 | | -from ..config_models import Config, Process, Voltage, VoltageRange |
| 27 | +from ..config_models import Config |
35 | 28 |
|
36 | 29 | # Import packaging functionality from new module |
37 | 30 | from ..packaging import ( |
38 | | - Pin, PinSet, PinList, Pins, |
39 | | - PowerType, JTAGWire, PortType, |
40 | | - PowerPins, JTAGPins, BringupPins, |
41 | | - PortDesc, Interface, Component, PortMap, |
42 | | - PackageDef, Package, LockFile, |
43 | | - BasePackageDef, LinearAllocPackageDef, |
44 | | - BareDiePackageDef, QuadPackageDef, |
45 | | - GAPin, GALayout, GAPackageDef, |
46 | | - OFPin, OpenframePackageDef, |
47 | | - UnableToAllocate, |
48 | | - _count_member_pins, _allocate_pins, _linear_allocate_components, |
49 | | - _find_contiguous_sequence, _group_consecutive_items, |
50 | | - load_pinlock, |
| 31 | + JTAGWire, |
51 | 32 | ) |
52 | 33 |
|
53 | 34 | if TYPE_CHECKING: |
|
0 commit comments