From 817fd71c1e4eb32fd81f7f38e49471722b4bfa6d Mon Sep 17 00:00:00 2001 From: redpanda3 Date: Wed, 26 Dec 2018 15:20:42 -0800 Subject: [PATCH] Additional width of {mon_data, data} Width of {mon_data, data} should have additional one width. --- vmod/nvdla/csc/NV_NVDLA_CSC_wl.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vmod/nvdla/csc/NV_NVDLA_CSC_wl.v b/vmod/nvdla/csc/NV_NVDLA_CSC_wl.v index 99cfd201..58e59cd4 100644 --- a/vmod/nvdla/csc/NV_NVDLA_CSC_wl.v +++ b/vmod/nvdla/csc/NV_NVDLA_CSC_wl.v @@ -510,7 +510,7 @@ assign cbuf_reset = sc2cdma_wt_pending_req; //================ Non-SLCG clock domain ================// assign wt_entry_avl_add = cdma2sc_wt_updt ? cdma2sc_wt_entries : {CSC_ENTRIES_NUM_WIDTH{1'b0}}; assign wt_entry_avl_sub = wt_rls ? wt_rls_wt_entries : {CSC_ENTRIES_NUM_WIDTH{1'b0}}; -assign {mon_wt_entry_avl_w,wt_entry_avl_w} = (cbuf_reset) ? {CSC_ENTRIES_NUM_WIDTH{1'b0}} : wt_entry_avl + wt_entry_avl_add - wt_entry_avl_sub; +assign {mon_wt_entry_avl_w,wt_entry_avl_w} = (cbuf_reset) ? {(CSC_ENTRIES_NUM_WIDTH+1){1'b0}} : wt_entry_avl + wt_entry_avl_add - wt_entry_avl_sub; //////////////////////////////////// calculate avaliable wmb entries //////////////////////////////////// assign wmb_entry_avl_add = cdma2sc_wt_updt ? cdma2sc_wmb_entries : 9'b0;