mirror of
https://github.com/openhwgroup/cve2.git
synced 2025-04-22 04:57:25 -04:00
[dv] Remove clock gating primitive in dv/uvm/tb
This commit removes a copy of the dummy clock gating primitive from tree previously used for UVM-based DV. There is another, identical copy of the same primitive in `shared/rtl` that can be used instead. This resolves lowRISC/ibex#213. Signed-off-by: Pirmin Vogel <vogelpi@lowrisc.org>
This commit is contained in:
parent
aefbcdceb3
commit
40d6368983
5 changed files with 6 additions and 32 deletions
|
@ -6,7 +6,7 @@
|
|||
+define+TRACE_EXECUTION
|
||||
+define+RVFI
|
||||
|
||||
${PRJ_DIR}/ibex/dv/uvm/tb/prim_clock_gating.sv
|
||||
${PRJ_DIR}/ibex/shared/rtl/prim_clock_gating.sv
|
||||
|
||||
// ibex CORE RTL files
|
||||
+incdir+${PRJ_DIR}/ibex/rtl
|
||||
|
|
|
@ -1,26 +0,0 @@
|
|||
// Copyright lowRISC contributors.
|
||||
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
//
|
||||
// Dummy clock gating module compatible with latch-based register file
|
||||
|
||||
module prim_clock_gating #(
|
||||
parameter string Impl = "default"
|
||||
) (
|
||||
input clk_i,
|
||||
input en_i,
|
||||
input test_en_i,
|
||||
output logic clk_o
|
||||
);
|
||||
|
||||
logic clk_en;
|
||||
|
||||
always_latch begin
|
||||
if (clk_i == 1'b0) begin
|
||||
clk_en <= en_i | test_en_i;
|
||||
end
|
||||
end
|
||||
|
||||
assign clk_o = clk_i & clk_en;
|
||||
|
||||
endmodule
|
|
@ -30,8 +30,8 @@ filesets:
|
|||
file_type: systemVerilogSource
|
||||
|
||||
files_lint:
|
||||
files:
|
||||
- dv/uvm/tb/prim_clock_gating.sv: {file_type: systemVerilogSource}
|
||||
depend:
|
||||
- lowrisc:ibex:sim_shared
|
||||
|
||||
files_lint_verilator:
|
||||
files:
|
||||
|
|
|
@ -14,8 +14,8 @@ filesets:
|
|||
file_type: systemVerilogSource
|
||||
|
||||
files_lint:
|
||||
files:
|
||||
- dv/uvm/tb/prim_clock_gating.sv: {file_type: systemVerilogSource}
|
||||
depend:
|
||||
- lowrisc:ibex:sim_shared
|
||||
|
||||
files_lint_verilator:
|
||||
files:
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
//
|
||||
// Dummy clock gating module
|
||||
// Dummy clock gating module compatible with latch-based register file
|
||||
|
||||
module prim_clock_gating (
|
||||
input clk_i,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue