diff --git a/gateware/cal/cal.sv b/gateware/cal/cal.sv index 44ea2b8..3c3f9fc 100644 --- a/gateware/cal/cal.sv +++ b/gateware/cal/cal.sv @@ -15,14 +15,10 @@ // for any inputs for which a jack is not connected. `default_nettype none +`define HW_R33 module cal #( parameter W = 16, // sample width -`ifdef HW_R33 - parameter CAL_MEM_FILE = "cal/cal_mem_default_r33.hex" -`else - parameter CAL_MEM_FILE = "cal/cal_mem_default_r31.hex" -`endif )( input rst, input clk_256fs, @@ -46,6 +42,8 @@ module cal #( output logic signed [W-1:0] out7 ); +localparam CAL_MEM_FILE = "/home/seb/dev/eurorack-pmod-litex/deps/eurorack-pmod/gateware/cal/cal_mem_default_r33.hex"; + localparam N_CHANNELS = 8; localparam LAST_CH_IX = 3'd7; diff --git a/gateware/drivers/pmod_i2c_master.sv b/gateware/drivers/pmod_i2c_master.sv index 2746e0f..aac144e 100644 --- a/gateware/drivers/pmod_i2c_master.sv +++ b/gateware/drivers/pmod_i2c_master.sv @@ -13,6 +13,7 @@ // functions of the board without having to resort to using a softcore. `default_nettype none +`define HW_R33 module pmod_i2c_master #( parameter CODEC_CFG = "drivers/ak4619-cfg.hex" diff --git a/gateware/eurorack_pmod.sv b/gateware/eurorack_pmod.sv index 3a240f6..685f458 100644 --- a/gateware/eurorack_pmod.sv +++ b/gateware/eurorack_pmod.sv @@ -6,6 +6,7 @@ // handled by external user-defined logic. `default_nettype none +`define HW_R33 module eurorack_pmod #( parameter W = 16, // sample width, bits