Skip to content

Commit

Permalink
fixing script to look for pwrgood instead of power
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Norris committed Jan 31, 2024
1 parent 2ab4fc4 commit 7060f51
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/doe/rtl/doe_reg.sv
Original file line number Diff line number Diff line change
Expand Up @@ -1409,6 +1409,6 @@ module doe_reg (
assign cpuif_rd_data = readback_data;
assign cpuif_rd_err = readback_err;

`CALIPTRA_ASSERT_KNOWN(ERR_HWIF_IN, hwif_in, clk, hwif_in.reset_b)
`CALIPTRA_ASSERT_KNOWN(ERR_HWIF_IN, hwif_in, clk, hwif_in.cptra_pwrgood)

endmodule
2 changes: 1 addition & 1 deletion src/soc_ifc/rtl/sha512_acc_csr.sv
Original file line number Diff line number Diff line change
Expand Up @@ -1616,6 +1616,6 @@ module sha512_acc_csr (
assign cpuif_rd_data = readback_data;
assign cpuif_rd_err = readback_err;

`CALIPTRA_ASSERT_KNOWN(ERR_HWIF_IN, hwif_in, clk, hwif_in.cptra_rst_b)
`CALIPTRA_ASSERT_KNOWN(ERR_HWIF_IN, hwif_in, clk, hwif_in.cptra_pwrgood)

endmodule
2 changes: 1 addition & 1 deletion src/soc_ifc/rtl/soc_ifc_reg.sv
Original file line number Diff line number Diff line change
Expand Up @@ -5684,6 +5684,6 @@ module soc_ifc_reg (
assign cpuif_rd_data = readback_data;
assign cpuif_rd_err = readback_err;

`CALIPTRA_ASSERT_KNOWN(ERR_HWIF_IN, hwif_in, clk, hwif_in.cptra_rst_b)
`CALIPTRA_ASSERT_KNOWN(ERR_HWIF_IN, hwif_in, clk, hwif_in.cptra_pwrgood)

endmodule
4 changes: 2 additions & 2 deletions tools/scripts/rdl_post_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ def scrub_line_by_line(fname):
has_unpacked = re.search(r'\[\d+\]', line)
has_struct = re.search(r'\bstruct\b\s*(?:unpacked)?', line)
is_endmodule = re.search(r'\bendmodule\b', line)
has_reset = re.search(r'\bnegedge.+\_b\b', line)
has_reset = re.search(r'\bnegedge\b', line)
if (has_reset is not None and found_hard_reset is None):
substring = re.search(r"negedge (\w+.\w+)", line)
reset_name = substring.group(1)
found_hard_reset = re.search(r'hard|power',reset_name)
found_hard_reset = re.search(r'hard|pwrgood',reset_name)
# Skip lines with logic assignments or references to signals; we
# only want to scrub signal definitions for unpacked arrays
if (has_assign is not None or has_reg_strb is not None):
Expand Down

0 comments on commit 7060f51

Please sign in to comment.