Skip to content

Commit

Permalink
Fix verilator warning about bit-width of adder input.
Browse files Browse the repository at this point in the history
  • Loading branch information
brianhuffman committed Aug 14, 2022
1 parent 49e948d commit 59f7b30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion verilog/cpu6502.sv
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ module cpu6502
uwire logic [7:0] offset = control.index_xy ? index : 8'h00;
// 9-bit value includes carry bit
uwire logic [8:0] next_index = data_in + offset;
uwire logic [7:0] next_fixpage = data_in + reg_index[8];
uwire logic [7:0] next_fixpage = data_in + 8'(reg_index[8]);

// Bus address
uwire logic [15:0] address_out =
Expand Down

0 comments on commit 59f7b30

Please sign in to comment.