Skip to content

Commit

Permalink
update changelog, Verilator.Lint, Yosys.JsonHeader
Browse files Browse the repository at this point in the history
Signed-off-by: Kareem Farid <[email protected]>
  • Loading branch information
kareefardi committed Nov 3, 2024
1 parent 36bca9b commit 9e25b72
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 10 deletions.
14 changes: 14 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,19 @@
## Documentation
-->

# 2.2.4

## Misc. Enhancements/Bugfixes

* Fixed undefining variables in configuration files being ignored.
* Restored `VERILOG_POWER_DEFINE` as an optional variable.

## Steps

* `Yosys.JsonHeader`, `Verilator.Lint`, `Odb.WriteVerilogHeader`

* Handled undefined `VERILOG_POWER_DEFINE`.

# 2.2.3

## Misc. Enhancements/Bugfixes
Expand All @@ -25,6 +38,7 @@
## Steps

* `Odb.*`

* Fixed OpenROAD dropping user-set `PYTHONPATH` values.

## Tool Updates
Expand Down
21 changes: 14 additions & 7 deletions openlane/scripts/pyosys/json_header.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,20 @@ def json_header(
blackbox_models = extra["blackbox_models"]

includes = config["VERILOG_INCLUDE_DIRS"] or []
defines = (config["VERILOG_DEFINES"] or []) + [
f"PDK_{config['PDK']}",
f"SCL_{config['STD_CELL_LIBRARY']}",
"__openlane__",
"__pnr__",
config["VERILOG_POWER_DEFINE"],
]
defines = (
(config["VERILOG_DEFINES"] or [])
+ [
f"PDK_{config['PDK']}",
f"SCL_{config['STD_CELL_LIBRARY']}",
"__openlane__",
"__pnr__",
]
+ (
[]
if config.get("VERILOG_POWER_DEFINE") is None
else [config.get("VERILOG_POWER_DEFINE")]
)
)

d = ys.Design()
d.add_blackbox_models(
Expand Down
7 changes: 5 additions & 2 deletions openlane/steps/verilator.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,15 @@ def run(self, state_in: State, **kwargs) -> Tuple[ViewsUpdate, MetricsUpdate]:
model_set.add(str_model)
model_list.append(str_model)
defines = [
self.config["VERILOG_POWER_DEFINE"],
f"PDK_{self.config['PDK']}",
f"SCL_{self.config['STD_CELL_LIBRARY']}",
"__openlane__",
"__pnr__",
]
] + (
[]
if self.config.get("VERILOG_POWER_DEFINE") is None
else [self.config.get("VERILOG_POWER_DEFINE")]
)
defines += self.config["LINTER_DEFINES"] or self.config["VERILOG_DEFINES"] or []

if len(model_list):
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "openlane"
version = "2.2.3"
version = "2.2.4"
description = "An infrastructure for implementing chip design flows"
authors = ["Efabless Corporation and Contributors <[email protected]>"]
readme = "Readme.md"
Expand Down

0 comments on commit 9e25b72

Please sign in to comment.