Project: Fixed verilator warnings for fpga_sim

This commit is contained in:
(Tim) Efthimis Kritikos 2024-02-26 13:12:26 +00:00
parent c527a053a6
commit fde181aa66
2 changed files with 8 additions and 2 deletions

View File

@ -528,6 +528,10 @@ wire [15:0]MULT_TO_DRIV_DATA_WRITE, MULT_TO_DRIV_DATA_READ;
wire MULT_TO_DRIV_DIR; wire MULT_TO_DRIV_DIR;
wire CPU_I2C_TRANS_WIDTH; wire CPU_I2C_TRANS_WIDTH;
/* verilator lint_off UNUSEDSIGNAL */
wire DISP_ERROR; //TODO: It would be ideal to acknoledge any warnings but it's not really too important
/* verilator lint_on UNUSEDSIGNAL */
I2C_driver_multiplexer I2C_driver_multiplexer( I2C_driver_multiplexer I2C_driver_multiplexer(
.clock(I2C_SPEED), .clock(I2C_SPEED),
.reset_n(reset), .reset_n(reset),
@ -541,7 +545,7 @@ I2C_driver_multiplexer I2C_driver_multiplexer(
.IN1_I2C_DATA_WRITE({8'h0,DISP_I2C_DATA_WRITE}), .IN1_I2C_DATA_WRITE({8'h0,DISP_I2C_DATA_WRITE}),
.IN1_TRANS_WIDTH(1'b0), .IN1_TRANS_WIDTH(1'b0),
.IN1_IGN_ACK(1'b0), .IN1_IGN_ACK(1'b0),
//.IN2_ERROR(), .IN1_ERROR(DISP_ERROR),
////// INPUT 2 /////// ////// INPUT 2 ///////
.IN2_ADDRESS(CPU_I2C_OUT_ADDRESS), .IN2_ADDRESS(CPU_I2C_OUT_ADDRESS),

View File

@ -30,10 +30,12 @@ module I2C_driver (
input wire DIR, input wire DIR,
input wire [15:0] i2c_data_write, input wire [15:0] i2c_data_write,
input wire transact_width, /* 0=byte 1=word */ input wire transact_width, /* 0=byte 1=word */
/* verilator lint_off UNUSEDSIGNAL */
input wire ignore_ack, input wire ignore_ack,
/* verilator lint_on UNUSEDSIGNAL */
output reg [15:0] i2c_data_read=16'h4141, output reg [15:0] i2c_data_read=16'h4141,
output reg error=0, output reg error=0
); );
//assign i2c_data_read=16'h0042; //assign i2c_data_read=16'h0042;