Skip to content

Commit 90f83e5

Browse files
a-willHU90m
andcommitted
[prim] Rename all files to match virtual cores
We expect file names to match module names. Now that the IPs are virtual cores, rename the files to match the module names that are the new "ABI" (so to speak). Adjust prim_generic, prim_xilinx, and prim_xilinx_ultrascale libraries. Co-authored-by: Hugo McNally <[email protected]> Signed-off-by: Alexander Williams <[email protected]>
1 parent eb3a807 commit 90f83e5

File tree

105 files changed

+102
-102
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+102
-102
lines changed

hw/ip/prim_generic/lint/prim_generic_clock_buf.vlt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55

66
`verilator_config
77

8-
lint_off -rule UNUSED -file "*/rtl/prim_generic_clock_buf.sv" -match "Parameter is not used: 'NoFpgaBuf'"
8+
lint_off -rule UNUSED -file "*/rtl/prim_clock_buf.sv" -match "Parameter is not used: 'NoFpgaBuf'"

hw/ip/prim_generic/lint/prim_generic_clock_buf.waiver

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
33
# SPDX-License-Identifier: Apache-2.0
44
#
5-
# primitives: prim_generic_clock_buf
6-
waive -rules PARAM_NOT_USED -location {prim_generic_clock_buf.sv} -regexp {Parameter '(NoFpgaBuf|RegionSel)' not used} \
5+
# primitives: prim_clock_buf
6+
waive -rules PARAM_NOT_USED -location {prim_clock_buf.sv} -regexp {Parameter '(NoFpgaBuf|RegionSel)' not used} \
77
-comment "parameter unused but required to maintain uniform interface"

hw/ip/prim_generic/lint/prim_generic_clock_div.waiver

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@
22
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
33
# SPDX-License-Identifier: Apache-2.0
44
#
5-
# waiver file for prim_generic_clock_div
5+
# waiver file for prim_clock_div
66

7-
waive -rules CLOCK_EDGE -location {prim_generic_clock_div.sv} -msg {Falling edge of clock 'clk_i' used here, should use rising edge} \
7+
waive -rules CLOCK_EDGE -location {prim_clock_div.sv} -msg {Falling edge of clock 'clk_i' used here, should use rising edge} \
88
-comment "The clock switch signal is synchronized on negative edge to ensure it is away from any transition"
99

10-
waive -rules DUAL_EDGE_CLOCK -location {prim_generic_clock_div.sv} -regexp {.*} \
10+
waive -rules DUAL_EDGE_CLOCK -location {prim_clock_div.sv} -regexp {.*} \
1111
-comment "The clock switch signal is synchronized on negative edge to ensure it is away from any transition"
1212

13-
waive -rules CLOCK_MUX -location {prim_generic_clock_div.sv} -regexp {.*reaches a multiplexer here, used as a clock.*} \
13+
waive -rules CLOCK_MUX -location {prim_clock_div.sv} -regexp {.*reaches a multiplexer here, used as a clock.*} \
1414
-comment "A mux is used during scan bypass, and for switching between div by 2 and div by 1 clocks"
1515

16-
waive -rules CLOCK_USE -location {prim_generic_clock_div.sv} -regexp {'clk_i' is connected to 'prim_clock_mux2' port 'clk1_i', and used as a clock} \
16+
waive -rules CLOCK_USE -location {prim_clock_div.sv} -regexp {'clk_i' is connected to 'prim_clock_mux2' port 'clk1_i', and used as a clock} \
1717
-comment "This clock mux usage is OK."
1818

19-
waive -rules SAME_NAME_TYPE -location {prim_generic_clock_div.sv} -regexp {'ResetValue' is used as a parameter here, and as an enumeration value at} \
19+
waive -rules SAME_NAME_TYPE -location {prim_clock_div.sv} -regexp {'ResetValue' is used as a parameter here, and as an enumeration value at} \
2020
-comment "Reused parameter name."
2121

2222
waive -rules CLOCK_DRIVER -location {prim_generic_clock_div.sv} -regexp {'gen_div2.q_p' is driven by instance 'gen_div2\^u_div2' of module 'prim_flop', and used as a clock 'clk_i'} \

hw/ip/prim_generic/lint/prim_generic_clock_gating.vlt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55

66
`verilator_config
77

8-
lint_off -rule UNUSED -file "*/rtl/prim_generic_clock_gating.sv" -match "Parameter is not used: 'NoFpgaGate'"
9-
lint_off -rule UNUSED -file "*/rtl/prim_generic_clock_gating.sv" -match "Parameter is not used: 'FpgaBufGlobal'"
8+
lint_off -rule UNUSED -file "*/rtl/prim_clock_gating.sv" -match "Parameter is not used: 'NoFpgaGate'"
9+
lint_off -rule UNUSED -file "*/rtl/prim_clock_gating.sv" -match "Parameter is not used: 'FpgaBufGlobal'"

hw/ip/prim_generic/lint/prim_generic_clock_gating.waiver

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
# SPDX-License-Identifier: Apache-2.0
44
#
55
# primitives: prim_clock_gating
6-
waive -rules LATCH -location {prim_generic_clock_gating.sv} -regexp {'en_latch' is a latch} \
6+
waive -rules LATCH -location {prim_clock_gating.sv} -regexp {'en_latch' is a latch} \
77
-comment "clock gating cell creates a latch"
8-
waive -rules COMBO_NBA -location {prim_generic_clock_gating.sv} -regexp {Non-blocking assignment to 'en_latch'} \
8+
waive -rules COMBO_NBA -location {prim_clock_gating.sv} -regexp {Non-blocking assignment to 'en_latch'} \
99
-comment "clock gating cell creates a latch"
10-
waive -rules PARAM_NOT_USED -location {prim_generic_clock_gating.sv} -regexp {Parameter 'NoFpgaGate' not used} \
10+
waive -rules PARAM_NOT_USED -location {prim_clock_gating.sv} -regexp {Parameter 'NoFpgaGate' not used} \
1111
-comment "parameter unused but required to maintain uniform interface"
12-
waive -rules PARAM_NOT_USED -location {prim_generic_clock_gating.sv} -regexp {Parameter 'FpgaBufGlobal' not used} \
12+
waive -rules PARAM_NOT_USED -location {prim_clock_gating.sv} -regexp {Parameter 'FpgaBufGlobal' not used} \
1313
-comment "parameter unused but required to maintain uniform interface"

hw/ip/prim_generic/lint/prim_generic_clock_mux2.vlt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55

66
`verilator_config
77

8-
lint_off -rule UNUSED -file "*/rtl/prim_generic_clock_mux2.sv" -match "Parameter is not used: 'NoFpgaBufG'"
8+
lint_off -rule UNUSED -file "*/rtl/prim_clock_mux2.sv" -match "Parameter is not used: 'NoFpgaBufG'"

hw/ip/prim_generic/lint/prim_generic_clock_mux2.waiver

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
#
55
# waiver file for prim_clock_mux2
66

7-
waive -rules PARAM_NOT_USED -location {prim_generic_clock_mux2.sv} -regexp {.*Parameter 'NoFpgaBufG' not used in.*} \
7+
waive -rules PARAM_NOT_USED -location {prim_clock_mux2.sv} -regexp {.*Parameter 'NoFpgaBufG' not used in.*} \
88
-comment "This parameter serves no function in the generic model"

hw/ip/prim_generic/lint/prim_generic_flash.waiver

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
33
# SPDX-License-Identifier: Apache-2.0
44
#
5-
# waiver file for prim_generic_flash
5+
# waiver file for prim_flash
66

77
# The prim generic module does not make use of the IO ports
8-
waive -rules INOUT_AS_IN -location {prim_generic_flash.sv} \
8+
waive -rules INOUT_AS_IN -location {prim_flash.sv} \
99
-regexp {Inout port 'flash_.*_io' has no driver}

hw/ip/prim_generic/lint/prim_generic_otp.vlt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
`verilator_config
77

88
// The generic OTP module doesn't use vendor-specific parameters
9-
lint_off -rule UNUSED -file "*/rtl/prim_generic_otp.sv" -match "*VendorTestOffset*"
10-
lint_off -rule UNUSED -file "*/rtl/prim_generic_otp.sv" -match "*VendorTestSize*"
9+
lint_off -rule UNUSED -file "*/rtl/prim_otp.sv" -match "*VendorTestOffset*"
10+
lint_off -rule UNUSED -file "*/rtl/prim_otp.sv" -match "*VendorTestSize*"

hw/ip/prim_generic/lint/prim_generic_otp.waiver

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ waive -rules {CONST_FF} -location {prim_ram_1p_adv.sv} \
77
-msg {Flip-flop 'rerror_q' is driven by constant zeros in module 'prim_ram_1p_adv' (Depth=1024,Width=22,EnableInputPipeline=1,EnableOutputPipeline=1)} \
88
-comment "The read error bits are unused and hence set to zero."
99

10-
waive -rules {INOUT_AS_IN} -location {prim_generic_otp.sv} \
11-
-msg {Inout port 'ext_voltage_io' has no driver in module 'prim_generic_otp'} \
10+
waive -rules {INOUT_AS_IN} -location {prim_otp.sv} \
11+
-msg {Inout port 'ext_voltage_io' has no driver in module 'prim_otp'} \
1212
-comment "This signal is not driven in the generic model."
1313

14-
waive -rules {PARAM_NOT_USED} -location {prim_generic_otp.sv} \
15-
-regexp {Parameter '(VendorTestOffset|VendorTestSize)' not used in module 'prim_generic_otp'} \
14+
waive -rules {PARAM_NOT_USED} -location {prim_otp.sv} \
15+
-regexp {Parameter '(VendorTestOffset|VendorTestSize)' not used in module 'prim_otp'} \
1616
-comment "These two parameters are not used in the generic model."

0 commit comments

Comments
 (0)