File tree Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ module descriptor_ibi #(
94
94
// -1 to compensate for comparison with data_cnt
95
95
data_len <= ibi_queue_rdata_i[7 : 0 ] - 1 ;
96
96
// Divide by 4 and round up
97
- data_words <= ibi_queue_rdata_i[7 : 2 ] + | ibi_queue_rdata_i[1 : 0 ];
97
+ data_words <= 8 '( ibi_queue_rdata_i[7 : 2 ] + | ibi_queue_rdata_i[1 : 0 ]) ;
98
98
end
99
99
100
100
// Data counter
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ module descriptor_tx #(
102
102
end
103
103
104
104
assign data_len = tx_descriptor[15 : 0 ];
105
- assign data_len_words = (data_len >> 2 );
105
+ assign data_len_words = TtiTxDescDataWidth ' (data_len >> 2 );
106
106
// Add 1 to depth, because there is one word in the Nto8 converter
107
107
assign tx_start = ~ tx_pending && descriptor_valid &&
108
108
((tti_tx_queue_depth_i+ 1'b1 ) >= data_len_words);
Original file line number Diff line number Diff line change @@ -201,7 +201,7 @@ module ibi (
201
201
end
202
202
SendTbit: begin
203
203
bus_tx_req_bit_o = 1'b1 ;
204
- bus_tx_req_value_o = ! ibi_byte_last_i;
204
+ bus_tx_req_value_o = 8 '( ! ibi_byte_last_i) ;
205
205
bus_tx_sel_od_pp_o = 1'b1 ;
206
206
end
207
207
default : begin
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ module width_converter_Nto8 #(
50
50
else begin
51
51
if (source_flush_i) sreg <= '0 ;
52
52
else if ((bcnt == '0 ) & sink_valid_i & sink_ready_o) sreg <= sink_data_i;
53
- else if ((bcnt != '0 ) & source_valid_o & source_ready_i) sreg <= sreg >> 8 ;
53
+ else if ((bcnt != '0 ) & source_valid_o & source_ready_i) sreg <= Width ' ( sreg >> 8 ) ;
54
54
end
55
55
56
56
// Data output
Original file line number Diff line number Diff line change @@ -217,7 +217,7 @@ module recovery_executor
217
217
// ....................................................
218
218
219
219
// Data counter
220
- assign dcnt_next = (| cmd_len_i[1 : 0 ]) ? (cmd_len_i / 4 + 1 ) : (cmd_len_i / 4 ); // Divide by 4, round up
220
+ assign dcnt_next = (| cmd_len_i[1 : 0 ]) ? 16 ' (cmd_len_i / 4 + 1 ) : 16 ' (cmd_len_i / 4 ); // Divide by 4, round up
221
221
222
222
always_ff @ (posedge clk_i)
223
223
unique case (state_q)
You can’t perform that action at this time.
0 commit comments