data/full_repos/permissive/489306513/logiana.v
1: b'%Warning-WIDTH: data/full_repos/permissive/489306513/logiana.v:56: Operator VAR \'PROBE_SPEED_1_KHZ\' expects 16 bits on the Initial value, but Initial value\'s SUB generates 32 or 17 bits.\n                                                                 : ... In instance logiana\nlocalparam [15:0] PROBE_SPEED_1_KHZ =    (100000 / 2) - 1;\n                  ^~~~~~~~~~~~~~~~~\n                ... Use "/* verilator lint_off WIDTH */" and lint_on around source to disable this message.\n%Error: Exiting due to 1 warning(s)\n'
function [15:0] select_sample_rate;
	input [3:0] clk_sel;
	begin
		case (clk_sel)
			4'd2: select_sample_rate = PROBE_SPEED_25_0_MHZ;
			4'd3: select_sample_rate = PROBE_SPEED_16_6_MHZ;
			4'd4: select_sample_rate = PROBE_SPEED_12_5_MHZ;
			4'd5: select_sample_rate = PROBE_SPEED_10_0_MHZ;
			4'd6: select_sample_rate = PROBE_SPEED_8_3_MHZ;
			4'd7: select_sample_rate = PROBE_SPEED_5_0_MHZ;
			4'd8: select_sample_rate = PROBE_SPEED_3_8_MHZ;
			4'd9: select_sample_rate = PROBE_SPEED_2_0_MHZ;
			4'd10: select_sample_rate = PROBE_SPEED_1_0_MHZ;
			4'd11: select_sample_rate = PROBE_SPEED_500_KHZ;
			4'd12: select_sample_rate = PROBE_SPEED_100_KHZ;
			4'd13: select_sample_rate = PROBE_SPEED_10_KHZ;
			4'd14: select_sample_rate = PROBE_SPEED_1_KHZ;
			default: select_sample_rate = 0;
		endcase
	end
endfunction
function [15:0] select_sample_rate;

	input [3:0] clk_sel;
	begin
		case (clk_sel)
			4'd2: select_sample_rate = PROBE_SPEED_25_0_MHZ;
			4'd3: select_sample_rate = PROBE_SPEED_16_6_MHZ;
			4'd4: select_sample_rate = PROBE_SPEED_12_5_MHZ;
			4'd5: select_sample_rate = PROBE_SPEED_10_0_MHZ;
			4'd6: select_sample_rate = PROBE_SPEED_8_3_MHZ;
			4'd7: select_sample_rate = PROBE_SPEED_5_0_MHZ;
			4'd8: select_sample_rate = PROBE_SPEED_3_8_MHZ;
			4'd9: select_sample_rate = PROBE_SPEED_2_0_MHZ;
			4'd10: select_sample_rate = PROBE_SPEED_1_0_MHZ;
			4'd11: select_sample_rate = PROBE_SPEED_500_KHZ;
			4'd12: select_sample_rate = PROBE_SPEED_100_KHZ;
			4'd13: select_sample_rate = PROBE_SPEED_10_KHZ;
			4'd14: select_sample_rate = PROBE_SPEED_1_KHZ;
			default: select_sample_rate = 0;
		endcase
	end
endfunction