data/full_repos/permissive/436253691/hardware/nios_sys/nios_system/synthesis/submodules/OFMI.v
1: b'%Error: data/full_repos/permissive/436253691/hardware/nios_sys/nios_system/synthesis/submodules/OFMI.v:102: Cannot find file containing module: \'COUNTER_OFFSET_POS\'\nCOUNTER_OFFSET_POS #(.BITWIDTH(OFFMEN_ADDR_WIDTH)) Counter(\n^~~~~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/436253691/hardware/nios_sys/nios_system/synthesis/submodules,data/full_repos/permissive/436253691/COUNTER_OFFSET_POS\n             data/full_repos/permissive/436253691/hardware/nios_sys/nios_system/synthesis/submodules,data/full_repos/permissive/436253691/COUNTER_OFFSET_POS.v\n             data/full_repos/permissive/436253691/hardware/nios_sys/nios_system/synthesis/submodules,data/full_repos/permissive/436253691/COUNTER_OFFSET_POS.sv\n             COUNTER_OFFSET_POS\n             COUNTER_OFFSET_POS.v\n             COUNTER_OFFSET_POS.sv\n             obj_dir/COUNTER_OFFSET_POS\n             obj_dir/COUNTER_OFFSET_POS.v\n             obj_dir/COUNTER_OFFSET_POS.sv\n%Error: data/full_repos/permissive/436253691/hardware/nios_sys/nios_system/synthesis/submodules/OFMI.v:121: Cannot find file containing module: \'OFMI_STATEMACHINE\'\nOFMI_STATEMACHINE Ofmi_Statemachine(\n^~~~~~~~~~~~~~~~~\n%Warning-WIDTH: data/full_repos/permissive/436253691/hardware/nios_sys/nios_system/synthesis/submodules/OFMI.v:158: Operator ADD expects 32 bits on the RHS, but RHS\'s VARREF \'OFMI_W_Size\' generates 9 bits.\n                                                                                                                  : ... In instance OFMI\nassign Counter_Offset = Ofmi_Statemachine_Counter_Sel_Offset == 1\'b0 ? OFMI_Addr_Offset : OFMI_Addr_Offset + OFMI_W_Size +1\'b1;\n                                                                                                           ^\n                ... Use "/* verilator lint_off WIDTH */" and lint_on around source to disable this message.\n%Error: Exiting due to 2 error(s), 1 warning(s)\n'
module OFMI #(parameter W_ADDR_WIDTH=9, IF_BITWIDTH_MAXSIZE=22, OFFMEN_ADDR_WIDTH=32)(


OFMI_Clk,
OFMI_Reset,
OFMI_If_Size,
OFMI_Of_Size,
OFMI_W_Size,
OFMI_Addr_Offset,
OFMI_Mst_Start_Loading_Weights,
OFMI_Mst_Loading_Weights_Already_Ok,
OFMI_Owmc_Loading_Weights_Already,
OFMI_Mst_Start_Feeding_Datapath,
OFMI_Mst_Stop_Feeding_Datapath,
OFMI_Feeding_Datapath_finished_OK,
OFMI_Mst_Start_Writing_Data,
OFMI_Mst_Writing_Data_Already_Ok,


OFMI_Mst_Loading_Weights_Already,
OFMI_Mst_Feeding_Datapath_finished,
OFMI_Mst_Writing_Data_Already,
OFMI_Offmem_We,
OFMI_Offmem_Re,
OFMI_Offmem_Addr,
OFMI_Mux_Sel,
OFMI_Mux_En

);





input OFMI_Clk;
input OFMI_Reset;
input [IF_BITWIDTH_MAXSIZE-1:0] OFMI_If_Size;
input [IF_BITWIDTH_MAXSIZE-1:0] OFMI_Of_Size;
input	[W_ADDR_WIDTH-1:0] OFMI_W_Size;
input [OFFMEN_ADDR_WIDTH-1:0] OFMI_Addr_Offset;
input OFMI_Mst_Start_Loading_Weights;
input OFMI_Mst_Loading_Weights_Already_Ok;
input OFMI_Owmc_Loading_Weights_Already;
input OFMI_Mst_Start_Feeding_Datapath;
input OFMI_Mst_Stop_Feeding_Datapath;
input OFMI_Feeding_Datapath_finished_OK;
input OFMI_Mst_Start_Writing_Data;
input OFMI_Mst_Writing_Data_Already_Ok;
output OFMI_Mst_Loading_Weights_Already;
output OFMI_Mst_Feeding_Datapath_finished;
output OFMI_Mst_Writing_Data_Already;
output OFMI_Offmem_We;
output OFMI_Offmem_Re;
output [OFFMEN_ADDR_WIDTH-1:0] OFMI_Offmem_Addr;
output OFMI_Mux_Sel;
output OFMI_Mux_En;







wire Counter_Eqn_Flag;


wire[OFFMEN_ADDR_WIDTH-1:0]  Counter_Upper_Limit;
wire[OFFMEN_ADDR_WIDTH-1:0] Counter_Offset;


wire Ofmi_Statemachine_Counter_Sel_Offset;
wire Ofmi_Statemachine_Counter_Sel_UpperLim;
wire Ofmi_Statemachine_Counter_en;
wire Ofmi_Statemachine_Counter_Reset;






COUNTER_OFFSET_POS #(.BITWIDTH(OFFMEN_ADDR_WIDTH)) Counter(



.COUNTER_OFFSET_Clk(OFMI_Clk),
.COUNTER_OFFSET_Clr(Ofmi_Statemachine_Counter_Reset),
.COUNTER_OFFSET_En(Ofmi_Statemachine_Counter_en),
.COUNTER_OFFSET_Number(Counter_Upper_Limit),
.COUNTER_OFFSET_offset(Counter_Offset),



.COUNTER_OFFSET_Out(OFMI_Offmem_Addr),
.COUNTER_OFFSET_Eqn_Flag(Counter_Eqn_Flag)

);



OFMI_STATEMACHINE Ofmi_Statemachine(



.OFMI_STATEMACHINE_Clk(OFMI_Clk),
.OFMI_STATEMACHINE_Reset(OFMI_Reset),
.OFMI_STATEMACHINE_Mst_Start_Loading_Weights(OFMI_Mst_Start_Loading_Weights),
.OFMI_STATEMACHINE_Mst_Loading_Weights_Already_Ok(OFMI_Mst_Loading_Weights_Already_Ok),
.OFMI_STATEMACHINE_Owmc_Loading_Weights_Already(OFMI_Owmc_Loading_Weights_Already),
.OFMI_STATEMACHINE_Mst_Start_Feeding_Datapath(OFMI_Mst_Start_Feeding_Datapath),
.OFMI_STATEMACHINE_Mst_Stop_Feeding_Datapath(OFMI_Mst_Stop_Feeding_Datapath),
.OFMI_STATEMACHINE_Mst_Feeding_Datapath_finished_OK(OFMI_Feeding_Datapath_finished_OK),
.OFMI_STATEMACHINE_Mst_Start_Writing_Data(OFMI_Mst_Start_Writing_Data),
.OFMI_STATEMACHINE_Mst_Writing_Data_Already_Ok(OFMI_Mst_Writing_Data_Already_Ok),
.OFMI_STATEMACHINE_Counter_Finish_Already(Counter_Eqn_Flag),



.OFMI_STATEMACHINE_Mst_Loading_Weights_Already(OFMI_Mst_Loading_Weights_Already),
.OFMI_STATEMACHINE_Mst_Feeding_Datapath_finished(OFMI_Mst_Feeding_Datapath_finished),
.OFMI_STATEMACHINE_Mst_Writing_Data_Already(OFMI_Mst_Writing_Data_Already),
.OFMI_STATEMACHINE_Offmem_We(OFMI_Offmem_We),
.OFMI_STATEMACHINE_Offmem_Re(OFMI_Offmem_Re),
.OFMI_STATEMACHINE_Counter_Sel_Offset(Ofmi_Statemachine_Counter_Sel_Offset),
.OFMI_STATEMACHINE_Counter_Sel_UpperLim(Ofmi_Statemachine_Counter_Sel_UpperLim),
.OFMI_STATEMACHINE_Counter_en(Ofmi_Statemachine_Counter_en),
.OFMI_STATEMACHINE_Counter_Reset(Ofmi_Statemachine_Counter_Reset),
.OFMI_STATEMACHINE_Mux_Sel(OFMI_Mux_Sel),
.OFMI_STATEMACHINE_Mux_En(OFMI_Mux_En)

);





assign Counter_Upper_Limit = Ofmi_Statemachine_Counter_Sel_UpperLim == 1'b0 ? {10'b0,OFMI_If_Size} : {10'b0,(OFMI_Of_Size +1'b1)};
assign Counter_Offset = Ofmi_Statemachine_Counter_Sel_Offset == 1'b0 ? OFMI_Addr_Offset : OFMI_Addr_Offset + OFMI_W_Size +1'b1;



endmodule
module OFMI #(parameter W_ADDR_WIDTH=9, IF_BITWIDTH_MAXSIZE=22, OFFMEN_ADDR_WIDTH=32)(


OFMI_Clk,
OFMI_Reset,
OFMI_If_Size,
OFMI_Of_Size,
OFMI_W_Size,
OFMI_Addr_Offset,
OFMI_Mst_Start_Loading_Weights,
OFMI_Mst_Loading_Weights_Already_Ok,
OFMI_Owmc_Loading_Weights_Already,
OFMI_Mst_Start_Feeding_Datapath,
OFMI_Mst_Stop_Feeding_Datapath,
OFMI_Feeding_Datapath_finished_OK,
OFMI_Mst_Start_Writing_Data,
OFMI_Mst_Writing_Data_Already_Ok,


OFMI_Mst_Loading_Weights_Already,
OFMI_Mst_Feeding_Datapath_finished,
OFMI_Mst_Writing_Data_Already,
OFMI_Offmem_We,
OFMI_Offmem_Re,
OFMI_Offmem_Addr,
OFMI_Mux_Sel,
OFMI_Mux_En

);






input OFMI_Clk;
input OFMI_Reset;
input [IF_BITWIDTH_MAXSIZE-1:0] OFMI_If_Size;
input [IF_BITWIDTH_MAXSIZE-1:0] OFMI_Of_Size;
input	[W_ADDR_WIDTH-1:0] OFMI_W_Size;
input [OFFMEN_ADDR_WIDTH-1:0] OFMI_Addr_Offset;
input OFMI_Mst_Start_Loading_Weights;
input OFMI_Mst_Loading_Weights_Already_Ok;
input OFMI_Owmc_Loading_Weights_Already;
input OFMI_Mst_Start_Feeding_Datapath;
input OFMI_Mst_Stop_Feeding_Datapath;
input OFMI_Feeding_Datapath_finished_OK;
input OFMI_Mst_Start_Writing_Data;
input OFMI_Mst_Writing_Data_Already_Ok;
output OFMI_Mst_Loading_Weights_Already;
output OFMI_Mst_Feeding_Datapath_finished;
output OFMI_Mst_Writing_Data_Already;
output OFMI_Offmem_We;
output OFMI_Offmem_Re;
output [OFFMEN_ADDR_WIDTH-1:0] OFMI_Offmem_Addr;
output OFMI_Mux_Sel;
output OFMI_Mux_En;







wire Counter_Eqn_Flag;


wire[OFFMEN_ADDR_WIDTH-1:0]  Counter_Upper_Limit;
wire[OFFMEN_ADDR_WIDTH-1:0] Counter_Offset;


wire Ofmi_Statemachine_Counter_Sel_Offset;
wire Ofmi_Statemachine_Counter_Sel_UpperLim;
wire Ofmi_Statemachine_Counter_en;
wire Ofmi_Statemachine_Counter_Reset;






COUNTER_OFFSET_POS #(.BITWIDTH(OFFMEN_ADDR_WIDTH)) Counter(



.COUNTER_OFFSET_Clk(OFMI_Clk),
.COUNTER_OFFSET_Clr(Ofmi_Statemachine_Counter_Reset),
.COUNTER_OFFSET_En(Ofmi_Statemachine_Counter_en),
.COUNTER_OFFSET_Number(Counter_Upper_Limit),
.COUNTER_OFFSET_offset(Counter_Offset),



.COUNTER_OFFSET_Out(OFMI_Offmem_Addr),
.COUNTER_OFFSET_Eqn_Flag(Counter_Eqn_Flag)

);



OFMI_STATEMACHINE Ofmi_Statemachine(



.OFMI_STATEMACHINE_Clk(OFMI_Clk),
.OFMI_STATEMACHINE_Reset(OFMI_Reset),
.OFMI_STATEMACHINE_Mst_Start_Loading_Weights(OFMI_Mst_Start_Loading_Weights),
.OFMI_STATEMACHINE_Mst_Loading_Weights_Already_Ok(OFMI_Mst_Loading_Weights_Already_Ok),
.OFMI_STATEMACHINE_Owmc_Loading_Weights_Already(OFMI_Owmc_Loading_Weights_Already),
.OFMI_STATEMACHINE_Mst_Start_Feeding_Datapath(OFMI_Mst_Start_Feeding_Datapath),
.OFMI_STATEMACHINE_Mst_Stop_Feeding_Datapath(OFMI_Mst_Stop_Feeding_Datapath),
.OFMI_STATEMACHINE_Mst_Feeding_Datapath_finished_OK(OFMI_Feeding_Datapath_finished_OK),
.OFMI_STATEMACHINE_Mst_Start_Writing_Data(OFMI_Mst_Start_Writing_Data),
.OFMI_STATEMACHINE_Mst_Writing_Data_Already_Ok(OFMI_Mst_Writing_Data_Already_Ok),
.OFMI_STATEMACHINE_Counter_Finish_Already(Counter_Eqn_Flag),



.OFMI_STATEMACHINE_Mst_Loading_Weights_Already(OFMI_Mst_Loading_Weights_Already),
.OFMI_STATEMACHINE_Mst_Feeding_Datapath_finished(OFMI_Mst_Feeding_Datapath_finished),
.OFMI_STATEMACHINE_Mst_Writing_Data_Already(OFMI_Mst_Writing_Data_Already),
.OFMI_STATEMACHINE_Offmem_We(OFMI_Offmem_We),
.OFMI_STATEMACHINE_Offmem_Re(OFMI_Offmem_Re),
.OFMI_STATEMACHINE_Counter_Sel_Offset(Ofmi_Statemachine_Counter_Sel_Offset),
.OFMI_STATEMACHINE_Counter_Sel_UpperLim(Ofmi_Statemachine_Counter_Sel_UpperLim),
.OFMI_STATEMACHINE_Counter_en(Ofmi_Statemachine_Counter_en),
.OFMI_STATEMACHINE_Counter_Reset(Ofmi_Statemachine_Counter_Reset),
.OFMI_STATEMACHINE_Mux_Sel(OFMI_Mux_Sel),
.OFMI_STATEMACHINE_Mux_En(OFMI_Mux_En)

);





assign Counter_Upper_Limit = Ofmi_Statemachine_Counter_Sel_UpperLim == 1'b0 ? {10'b0,OFMI_If_Size} : {10'b0,(OFMI_Of_Size +1'b1)};
assign Counter_Offset = Ofmi_Statemachine_Counter_Sel_Offset == 1'b0 ? OFMI_Addr_Offset : OFMI_Addr_Offset + OFMI_W_Size +1'b1;



endmodule