Skip to content

Commit 352d1e0

Browse files
wkkunakgugala
authored andcommitted
peakrdl_cocobt: Collect hwclr
Necessary to calculate expected value in the register when reading from it. Signed-off-by: Wiktoria Kuna <[email protected]>
1 parent c6a92d4 commit 352d1e0

File tree

2 files changed

+769
-383
lines changed

2 files changed

+769
-383
lines changed

tools/peakrdl_cocotb/src/peakrdl_cocotb/cocotb_scanner.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,3 +120,6 @@ def enter_Field(self, node):
120120

121121
rclr = node.get_property("rclr") or node.get_property("onread") == "rclr"
122122
field.update({"rclr": int(rclr)})
123+
124+
hwclr = node.get_property("hwclr")
125+
field.update({"hwclr": int(hwclr)})

0 commit comments

Comments
 (0)