reset network refactoring
This commit is contained in:
@@ -61,16 +61,10 @@ module VX_mem_unit # (
|
||||
.NUM_REQS (`DNUM_REQS),
|
||||
.WORD_SIZE (`DWORD_SIZE),
|
||||
.CORE_TAG_WIDTH (`DCORE_TAG_WIDTH-`SM_ENABLE)
|
||||
) dcache_rsp_if();
|
||||
) dcache_rsp_if();
|
||||
|
||||
wire icache_reset, dcache_reset, smem_reset;
|
||||
VX_reset_relay #(
|
||||
.NUM_NODES (3)
|
||||
) reset_relay (
|
||||
.clk (clk),
|
||||
.reset (reset),
|
||||
.reset_o ({icache_reset, dcache_reset, smem_reset})
|
||||
);
|
||||
`RESET_RELAY (icache_reset);
|
||||
`RESET_RELAY (dcache_reset);
|
||||
|
||||
VX_cache #(
|
||||
.CACHE_ID (`ICACHE_ID),
|
||||
@@ -214,6 +208,8 @@ module VX_mem_unit # (
|
||||
.core_rsp_if (dcache_core_rsp_if)
|
||||
);
|
||||
|
||||
`RESET_RELAY (smem_reset);
|
||||
|
||||
VX_shared_mem #(
|
||||
.CACHE_ID (`SCACHE_ID),
|
||||
.CACHE_SIZE (`SMEM_SIZE),
|
||||
@@ -249,8 +245,6 @@ module VX_mem_unit # (
|
||||
.core_rsp_ready (smem_rsp_if.ready)
|
||||
);
|
||||
end else begin
|
||||
`UNUSED_VAR (smem_reset)
|
||||
|
||||
// core to D-cache request
|
||||
assign dcache_req_if.valid = dcache_core_req_if.valid;
|
||||
assign dcache_req_if.addr = dcache_core_req_if.addr;
|
||||
|
||||
Reference in New Issue
Block a user