Skip to content

Commit

Permalink
Route a core_enable signal to conditionally disable internal core TAP…
Browse files Browse the repository at this point in the history
… access

This integrates changes from caliptra-rtl:
chipsalliance/caliptra-rtl@22c08e1

Signed-off-by: Wojciech Sipak <[email protected]>
  • Loading branch information
wsipak committed Nov 7, 2024
1 parent 78cac32 commit 5f34911
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
6 changes: 4 additions & 2 deletions design/dmi/dmi_mux.v
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

module dmi_mux (

// Core access enable
input wire core_enable,
// Uncore access enable
input wire uncore_enable,

Expand Down Expand Up @@ -33,8 +35,8 @@ module dmi_mux (
assign is_uncore_aperture = (dmi_addr[6] & (dmi_addr[5] | dmi_addr[4]));

// Core signals
assign dmi_core_en = dmi_en & ~is_uncore_aperture;
assign dmi_core_wr_en = dmi_wr_en & ~is_uncore_aperture;
assign dmi_core_en = dmi_en & ~is_uncore_aperture & core_enable;
assign dmi_core_wr_en = dmi_wr_en & ~is_uncore_aperture & core_enable;
assign dmi_core_addr = dmi_addr;
assign dmi_core_wdata = dmi_wdata;

Expand Down
2 changes: 2 additions & 0 deletions design/el2_veer_wrapper.sv
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,7 @@ import el2_pkg::*;
input logic mbist_mode, // to enable mbist

// DMI port for uncore
input logic dmi_core_enable,
input logic dmi_uncore_enable,
output logic dmi_uncore_en,
output logic dmi_uncore_wr_en,
Expand Down Expand Up @@ -907,6 +908,7 @@ import el2_pkg::*;

// DMI core/uncore mux
dmi_mux dmi_mux (
.core_enable (dmi_core_enable),
.uncore_enable (dmi_uncore_enable),

.dmi_en (dmi_en),
Expand Down
1 change: 1 addition & 0 deletions testbench/tb_top.sv
Original file line number Diff line number Diff line change
Expand Up @@ -1302,6 +1302,7 @@ veer_wrapper rvtop_wrapper (
.scan_mode ( 1'b0 ), // To enable scan mode
.mbist_mode ( 1'b0 ), // to enable mbist

.dmi_core_enable ('1),
.dmi_uncore_enable (),
.dmi_uncore_en (),
.dmi_uncore_wr_en (),
Expand Down
2 changes: 2 additions & 0 deletions testbench/veer_wrapper.sv
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,7 @@ module veer_wrapper
input logic scan_mode, // To enable scan mode
input logic mbist_mode, // to enable mbist

input logic dmi_core_enable,
// DMI port for uncore
input logic dmi_uncore_enable,
output logic dmi_uncore_en,
Expand Down Expand Up @@ -378,6 +379,7 @@ module veer_wrapper

el2_veer_wrapper rvtop (
.el2_mem_export(mem_export.veer_sram_src),
.dmi_core_enable(dmi_core_enable),
.*
);

Expand Down

0 comments on commit 5f34911

Please sign in to comment.