Skip to content

Commit 2becf69

Browse files
tonyzNvidia-DorisLei
authored andcommitted
fix rtl for spyglass issue and add waive file for cdma
1 parent 46a2eee commit 2becf69

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

vmod/nvdla/cdma/NV_NVDLA_CDMA_dc.v

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -799,10 +799,18 @@ assign slcg_dc_gate_img = slcg_dc_gate_d3[1];
799799
////////////////////////////////////////////////////////////////////////
800800
//: my $atmm = NVDLA_MEMORY_ATOMIC_SIZE;
801801
//: my $atmbw = int(log(${atmm})/log(2));
802+
//: if($atmbw > 3){
802803
//: print qq(
803804
//: assign data_width_sub_one_w = (is_packed_1x1) ? {{(2+${atmbw}){1'b0}}, reg2dp_datain_channel[12:${atmbw}]} : {2'b0, reg2dp_datain_width};
804805
//: assign data_surface_inc = {{(${atmbw}-3){1'b0}}, reg2dp_datain_channel[12:${atmbw}]} + 1'b1;
805806
//: );
807+
//:}
808+
//: else {
809+
//: print qq(
810+
//: assign data_width_sub_one_w = (is_packed_1x1) ? {{(2+${atmbw}){1'b0}}, reg2dp_datain_channel[12:${atmbw}]} : {2'b0, reg2dp_datain_width};
811+
//: assign data_surface_inc = {reg2dp_datain_channel[12:${atmbw}]} + 1'b1;
812+
//: );
813+
//:}
806814

807815
// assign is_data_expand = 1'b0;
808816
//assign is_data_shrink = 1'b0;

vmod/nvdla/cdma/NV_NVDLA_cdma.swl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
waive -regexp -file NV_NVDLA_CDMA_wt.v -msg ".*width 17 should match right expression.*" -rule W362
2+
waive -regexp -file NV_NVDLA_CDMA_wt.v -msg ".*should be greater than rhs width 17.*" -rule W484

0 commit comments

Comments
 (0)