Commit 86907eee authored by GuillemCabo's avatar GuillemCabo
Browse files

fix width mismatch

parent 7e6c0003
......@@ -588,7 +588,7 @@ end
//data phase - slave response
assign slv_index = address_phase.master_addr_Q[$clog2(N_REGS)+1:2];
assign invalid_index = address_phase.master_addr_Q[$clog2(N_REGS)+1:2] >= N_REGS? 1'b1:1'b0;
assign invalid_index = int'(address_phase.master_addr_Q[$clog2(N_REGS)+1:2]) >= N_REGS? 1'b1:1'b0;
assign hrdata_o = dread_slave;
assign hreadyo_o = complete_transfer_status [0];
......
......@@ -119,7 +119,7 @@ module PMU_quota #
//prevent overflow of statemachine
state_int <= 0;
end else begin
state_int <= N_BITS_STATES'(state_int + 1);
state_int <= N_BITS_STATES'(state_int + 1'b1);
end
end
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment