From 57de465b8f0e1196baba8b36ab575681bef81214 Mon Sep 17 00:00:00 2001 From: Wojciech Sipak Date: Mon, 18 Nov 2024 16:47:16 +0100 Subject: [PATCH] reformat macros --- design/include/el2_ifu_ic_macros.svh | 457 ++++++++++++++------------- 1 file changed, 242 insertions(+), 215 deletions(-) diff --git a/design/include/el2_ifu_ic_macros.svh b/design/include/el2_ifu_ic_macros.svh index 195904d4d68..73f3afb0a76 100644 --- a/design/include/el2_ifu_ic_macros.svh +++ b/design/include/el2_ifu_ic_macros.svh @@ -1,200 +1,222 @@ -`define EL2_IC_TAG_PACKED_SRAM_LOGIC(depth,width) \ - if (pt.ICACHE_TAG_BYPASS_ENABLE == 1) begin \ - \ - assign wrptr_in = (wrptr == (pt.ICACHE_TAG_NUM_BYPASS-1)) ? '0 : (wrptr + 1'd1); \ - \ - rvdffs #(pt.ICACHE_TAG_NUM_BYPASS_WIDTH) wrptr_ff(.*, .clk(active_clk), .en(|write_bypass_en), .din (wrptr_in), .dout(wrptr)) ; \ - \ - assign ic_b_sram_en = |ic_tag_clken; \ - \ - assign ic_b_read_en = ic_b_sram_en & (|ic_tag_rden_q); \ - assign ic_b_write_en = ic_b_sram_en & (|ic_tag_wren_q); \ - assign ic_tag_clken_final = ic_b_sram_en & ~(|sel_bypass); \ - \ - // LSB is pt.ICACHE_TAG_INDEX_LO] \ - assign ic_b_rw_addr = {ic_rw_addr_q}; \ - \ - always_comb begin \ - any_addr_match = '0; \ - \ - for (int l=0; l