File tree 2 files changed +9
-1
lines changed
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,6 @@ def run_scala(scala: str) -> None:
32
32
prep ()
33
33
34
34
# Generate some constraints
35
- # TODO(edwardw): test optional stuff
36
35
c1 = PlacementConstraint (
37
36
path = "Top/rtl/a/b" ,
38
37
type = PlacementConstraintType .Placement ,
@@ -47,6 +46,12 @@ def run_scala(scala: str) -> None:
47
46
obs_types = None
48
47
)
49
48
49
+ # TODO(edwardw): the optional parameters are only valid for certain
50
+ # types of constraints.
51
+ # e.g. orientation is only valid for hardmacros
52
+ # e.g. obs_types is only valid for obstructions
53
+ # We need to create some extra testcases to capture those usecases.
54
+
50
55
# Export to JSON
51
56
with open ("tmp_c1.json" , "w" ) as f :
52
57
f .write (json .dumps (c1 .to_dict ()))
Original file line number Diff line number Diff line change @@ -37,6 +37,9 @@ call_mypy ../hammer-vlsi/par/mockpar/__init__.py
37
37
call_mypy ../hammer-vlsi/drc/* .py
38
38
call_mypy ../hammer-vlsi/lvs/* .py
39
39
40
+ # Scala library
41
+ call_mypy ../../hammer_ir/scalalib/test/* .py
42
+
40
43
# Plugins which may or may not exist
41
44
if [ -f ../hammer-vlsi/synthesis/dc/__init__.py ]; then
42
45
call_mypy ../hammer-vlsi/synthesis/dc/__init__.py
You can’t perform that action at this time.
0 commit comments