Description:
When trying to simulate your iCEcube2 design in Modelsim, below error might occur:
Error: (vsim-3067) Debug module called from nondebug module
Solution:
Include the "sb_ice_ipenc_modelsim.v" in your simulation which can be found in the installation folder of iCECUbe then Verilog folder.