data/full_repos/permissive/436253691/hardware/nios_sys/nios_system/synthesis/submodules/OWMC.v
1: b"%Error: data/full_repos/permissive/436253691/hardware/nios_sys/nios_system/synthesis/submodules/OWMC.v:99: Cannot find file containing module: 'RAM'\nRAM #(.DATA_WIDTH(W_DATA_WIDTH),.MEM_SIZE(W_MEM_SIZE),.ADDR_WIDTH(W_ADDR_WIDTH)) OWM\n^~~\n        ... Looked in:\n             data/full_repos/permissive/436253691/hardware/nios_sys/nios_system/synthesis/submodules,data/full_repos/permissive/436253691/RAM\n             data/full_repos/permissive/436253691/hardware/nios_sys/nios_system/synthesis/submodules,data/full_repos/permissive/436253691/RAM.v\n             data/full_repos/permissive/436253691/hardware/nios_sys/nios_system/synthesis/submodules,data/full_repos/permissive/436253691/RAM.sv\n             RAM\n             RAM.v\n             RAM.sv\n             obj_dir/RAM\n             obj_dir/RAM.v\n             obj_dir/RAM.sv\n%Error: data/full_repos/permissive/436253691/hardware/nios_sys/nios_system/synthesis/submodules/OWMC.v:115: Cannot find file containing module: 'COUNTER_NEG'\nCOUNTER_NEG #(.BITWIDTH(W_ADDR_WIDTH)) Counter_Dmux (\n^~~~~~~~~~~\n%Error: data/full_repos/permissive/436253691/hardware/nios_sys/nios_system/synthesis/submodules/OWMC.v:127: Cannot find file containing module: 'COUNTER_OFFSET_NEG'\nCOUNTER_OFFSET_NEG #(.BITWIDTH(W_ADDR_WIDTH)) Counter_Ram(\n^~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/436253691/hardware/nios_sys/nios_system/synthesis/submodules/OWMC.v:143: Cannot find file containing module: 'OFFSET_ADDER'\nOFFSET_ADDER #(.BITWIDTH(W_ADDR_WIDTH)) Offset_Adder(\n^~~~~~~~~~~~\n%Error: data/full_repos/permissive/436253691/hardware/nios_sys/nios_system/synthesis/submodules/OWMC.v:157: Cannot find file containing module: 'OWMC_STATEMACHINE'\nOWMC_STATEMACHINE Owmc_Statemachine (\n^~~~~~~~~~~~~~~~~\n%Error: Exiting due to 5 error(s)\n"
module OWMC #(parameter W_DATA_WIDTH = 8, W_MEM_SIZE=507  ,W_ADDR_WIDTH = 9)(


OWMC_Clk,
OWMC_Reset,
OWMC_W_Size,
OWMC_W_COXRW,
OWMC_Input_Data,
OWMC_Start_Loading_Weights,
OWMC_Start_Loading_Regs,
OWMC_Loading_Weights_Already_Ok,
OWMC_Loading_Regs_Already_Ok,


OWMC_Loading_Weights_Already,
OWMC_Loading_Regs_Already,
OWMC_Output_Data,
OWMC_Muxes_En,
OWMC_Muxes_Sel

);



input OWMC_Clk;
input OWMC_Reset;
input [W_ADDR_WIDTH-1:0] OWMC_W_Size;
input [W_ADDR_WIDTH-1:0] OWMC_W_COXRW;
input [W_DATA_WIDTH-1:0] OWMC_Input_Data;
input OWMC_Start_Loading_Weights;
input OWMC_Start_Loading_Regs;
input OWMC_Loading_Weights_Already_Ok;
input OWMC_Loading_Regs_Already_Ok;

output OWMC_Loading_Weights_Already;
output OWMC_Loading_Regs_Already;
output [W_DATA_WIDTH-1:0] OWMC_Output_Data;
output OWMC_Muxes_En;
output [W_ADDR_WIDTH-1:0] OWMC_Muxes_Sel;








wire Counter_Dmux_Eqn_Flag;


wire [W_ADDR_WIDTH-1:0] Counter_Ram_Output;
wire Counter_Ram_Eqn_Flag;


wire [W_ADDR_WIDTH-1:0] Counter_Ram_Number;
wire [W_ADDR_WIDTH-1:0] Counter_Ram_Lower_Limit;


wire [W_ADDR_WIDTH-1:0] Offset_Adder_Lower_Limit;



wire Owmc_Statemachine_Counter_Dmux_En;
wire Owmc_Statemachine_Counter_Dmux_Reset;
wire Owmc_Statemachine_Counter_Ram_En;
wire Owmc_Statemachine_Counter_Ram_Reset;
wire Owmc_Statemachine_Counter_Ram_Input_Sel;
wire Owmc_Statemachine_Offset_Adder_Reset;
wire Owmc_Statemachine_Offset_Adder_Sum_En;
wire Owmc_Statemachine_Ram_Oe;
wire Owmc_Statemachine_Ram_We;






RAM #(.DATA_WIDTH(W_DATA_WIDTH),.MEM_SIZE(W_MEM_SIZE),.ADDR_WIDTH(W_ADDR_WIDTH)) OWM
(


.RAM_Clk(OWMC_Clk),
.RAM_We(Owmc_Statemachine_Ram_We),
.RAM_Oe(Owmc_Statemachine_Ram_Oe),
.RAM_Address(Counter_Ram_Output),
.RAM_Data_In(OWMC_Input_Data),


.RAM_Data_Out(OWMC_Output_Data)
);



COUNTER_NEG #(.BITWIDTH(W_ADDR_WIDTH)) Counter_Dmux (

.COUNTER_Clk(OWMC_Clk),
.COUNTER_Clr(Owmc_Statemachine_Counter_Dmux_Reset),
.COUNTER_En(Owmc_Statemachine_Counter_Dmux_En),
.COUNTER_Number(OWMC_W_COXRW),


.COUNTER_Out(OWMC_Muxes_Sel),
.COUNTER_Eqn_Flag(Counter_Dmux_Eqn_Flag)
);

COUNTER_OFFSET_NEG #(.BITWIDTH(W_ADDR_WIDTH)) Counter_Ram(


.COUNTER_OFFSET_Clk(OWMC_Clk),
.COUNTER_OFFSET_Clr(Owmc_Statemachine_Counter_Ram_Reset),
.COUNTER_OFFSET_En(Owmc_Statemachine_Counter_Ram_En),
.COUNTER_OFFSET_Number(Counter_Ram_Number),
.COUNTER_OFFSET_offset(Counter_Ram_Lower_Limit),


.COUNTER_OFFSET_Out(Counter_Ram_Output),
.COUNTER_OFFSET_Eqn_Flag(Counter_Ram_Eqn_Flag)

);


OFFSET_ADDER #(.BITWIDTH(W_ADDR_WIDTH)) Offset_Adder(


.OFFSET_ADDER_clk(OWMC_Clk),
.OFFSET_ADDER_Sum_En(Owmc_Statemachine_Offset_Adder_Sum_En),
.OFFSET_ADDER_Reset(Owmc_Statemachine_Offset_Adder_Reset),
.OFFSET_ADDER_offset(OWMC_W_COXRW),


.OFFSET_ADDER_Lower_Limit(Offset_Adder_Lower_Limit)

);


OWMC_STATEMACHINE Owmc_Statemachine (


.OWMC_STATEMACHINE_Clk(OWMC_Clk),
.OWMC_STATEMACHINE_Reset(OWMC_Reset),
.OWMC_STATEMACHINE_Start_Loading_Weights(OWMC_Start_Loading_Weights),
.OWMC_STATEMACHINE_Start_Loading_Regs(OWMC_Start_Loading_Regs),
.OWMC_STATEMACHINE_Loading_Weights_Already_Ok(OWMC_Loading_Weights_Already_Ok),
.OWMC_STATEMACHINE_Loading_Regs_Already_Ok(OWMC_Loading_Regs_Already_Ok),
.OWMC_STATEMACHINE_Counter_Ram_Finish_Already(Counter_Ram_Eqn_Flag),
.OWMC_STATEMACHINE_Counter_Dmux_Finish_Already(Counter_Dmux_Eqn_Flag),


.OWMC_STATEMACHINE_Loading_Weights_Already(OWMC_Loading_Weights_Already),
.OWMC_STATEMACHINE_Loading_Regs_Already(OWMC_Loading_Regs_Already),
.OWMC_STATEMACHINE_Counter_Dmux_En(Owmc_Statemachine_Counter_Dmux_En),
.OWMC_STATEMACHINE_Counter_Dmux_Reset(Owmc_Statemachine_Counter_Dmux_Reset),
.OWMC_STATEMACHINE_Counter_Ram_En(Owmc_Statemachine_Counter_Ram_En),
.OWMC_STATEMACHINE_Counter_Ram_Reset(Owmc_Statemachine_Counter_Ram_Reset),
.OWMC_STATEMACHINE_Counter_Ram_Input_Sel(Owmc_Statemachine_Counter_Ram_Input_Sel),
.OWMC_STATEMACHINE_Offset_Adder_Reset(Owmc_Statemachine_Offset_Adder_Reset),
.OWMC_STATEMACHINE_Offset_Adder_Sum_En(Owmc_Statemachine_Offset_Adder_Sum_En),
.OWMC_STATEMACHINE_Muxes_en(OWMC_Muxes_En),
.OWMC_STATEMACHINE_Ram_Oe(Owmc_Statemachine_Ram_Oe),
.OWMC_STATEMACHINE_Ram_We(Owmc_Statemachine_Ram_We)
);





assign Counter_Ram_Lower_Limit = Owmc_Statemachine_Counter_Ram_Input_Sel == 1'b1 ? Offset_Adder_Lower_Limit : 9'b0;
assign Counter_Ram_Number = Owmc_Statemachine_Counter_Ram_Input_Sel == 1'b1 ? OWMC_W_COXRW : OWMC_W_Size;


endmodule
module OWMC #(parameter W_DATA_WIDTH = 8, W_MEM_SIZE=507  ,W_ADDR_WIDTH = 9)(


OWMC_Clk,
OWMC_Reset,
OWMC_W_Size,
OWMC_W_COXRW,
OWMC_Input_Data,
OWMC_Start_Loading_Weights,
OWMC_Start_Loading_Regs,
OWMC_Loading_Weights_Already_Ok,
OWMC_Loading_Regs_Already_Ok,


OWMC_Loading_Weights_Already,
OWMC_Loading_Regs_Already,
OWMC_Output_Data,
OWMC_Muxes_En,
OWMC_Muxes_Sel

);




input OWMC_Clk;
input OWMC_Reset;
input [W_ADDR_WIDTH-1:0] OWMC_W_Size;
input [W_ADDR_WIDTH-1:0] OWMC_W_COXRW;
input [W_DATA_WIDTH-1:0] OWMC_Input_Data;
input OWMC_Start_Loading_Weights;
input OWMC_Start_Loading_Regs;
input OWMC_Loading_Weights_Already_Ok;
input OWMC_Loading_Regs_Already_Ok;

output OWMC_Loading_Weights_Already;
output OWMC_Loading_Regs_Already;
output [W_DATA_WIDTH-1:0] OWMC_Output_Data;
output OWMC_Muxes_En;
output [W_ADDR_WIDTH-1:0] OWMC_Muxes_Sel;








wire Counter_Dmux_Eqn_Flag;


wire [W_ADDR_WIDTH-1:0] Counter_Ram_Output;
wire Counter_Ram_Eqn_Flag;


wire [W_ADDR_WIDTH-1:0] Counter_Ram_Number;
wire [W_ADDR_WIDTH-1:0] Counter_Ram_Lower_Limit;


wire [W_ADDR_WIDTH-1:0] Offset_Adder_Lower_Limit;



wire Owmc_Statemachine_Counter_Dmux_En;
wire Owmc_Statemachine_Counter_Dmux_Reset;
wire Owmc_Statemachine_Counter_Ram_En;
wire Owmc_Statemachine_Counter_Ram_Reset;
wire Owmc_Statemachine_Counter_Ram_Input_Sel;
wire Owmc_Statemachine_Offset_Adder_Reset;
wire Owmc_Statemachine_Offset_Adder_Sum_En;
wire Owmc_Statemachine_Ram_Oe;
wire Owmc_Statemachine_Ram_We;






RAM #(.DATA_WIDTH(W_DATA_WIDTH),.MEM_SIZE(W_MEM_SIZE),.ADDR_WIDTH(W_ADDR_WIDTH)) OWM
(


.RAM_Clk(OWMC_Clk),
.RAM_We(Owmc_Statemachine_Ram_We),
.RAM_Oe(Owmc_Statemachine_Ram_Oe),
.RAM_Address(Counter_Ram_Output),
.RAM_Data_In(OWMC_Input_Data),


.RAM_Data_Out(OWMC_Output_Data)
);



COUNTER_NEG #(.BITWIDTH(W_ADDR_WIDTH)) Counter_Dmux (

.COUNTER_Clk(OWMC_Clk),
.COUNTER_Clr(Owmc_Statemachine_Counter_Dmux_Reset),
.COUNTER_En(Owmc_Statemachine_Counter_Dmux_En),
.COUNTER_Number(OWMC_W_COXRW),


.COUNTER_Out(OWMC_Muxes_Sel),
.COUNTER_Eqn_Flag(Counter_Dmux_Eqn_Flag)
);

COUNTER_OFFSET_NEG #(.BITWIDTH(W_ADDR_WIDTH)) Counter_Ram(


.COUNTER_OFFSET_Clk(OWMC_Clk),
.COUNTER_OFFSET_Clr(Owmc_Statemachine_Counter_Ram_Reset),
.COUNTER_OFFSET_En(Owmc_Statemachine_Counter_Ram_En),
.COUNTER_OFFSET_Number(Counter_Ram_Number),
.COUNTER_OFFSET_offset(Counter_Ram_Lower_Limit),


.COUNTER_OFFSET_Out(Counter_Ram_Output),
.COUNTER_OFFSET_Eqn_Flag(Counter_Ram_Eqn_Flag)

);


OFFSET_ADDER #(.BITWIDTH(W_ADDR_WIDTH)) Offset_Adder(


.OFFSET_ADDER_clk(OWMC_Clk),
.OFFSET_ADDER_Sum_En(Owmc_Statemachine_Offset_Adder_Sum_En),
.OFFSET_ADDER_Reset(Owmc_Statemachine_Offset_Adder_Reset),
.OFFSET_ADDER_offset(OWMC_W_COXRW),


.OFFSET_ADDER_Lower_Limit(Offset_Adder_Lower_Limit)

);


OWMC_STATEMACHINE Owmc_Statemachine (


.OWMC_STATEMACHINE_Clk(OWMC_Clk),
.OWMC_STATEMACHINE_Reset(OWMC_Reset),
.OWMC_STATEMACHINE_Start_Loading_Weights(OWMC_Start_Loading_Weights),
.OWMC_STATEMACHINE_Start_Loading_Regs(OWMC_Start_Loading_Regs),
.OWMC_STATEMACHINE_Loading_Weights_Already_Ok(OWMC_Loading_Weights_Already_Ok),
.OWMC_STATEMACHINE_Loading_Regs_Already_Ok(OWMC_Loading_Regs_Already_Ok),
.OWMC_STATEMACHINE_Counter_Ram_Finish_Already(Counter_Ram_Eqn_Flag),
.OWMC_STATEMACHINE_Counter_Dmux_Finish_Already(Counter_Dmux_Eqn_Flag),


.OWMC_STATEMACHINE_Loading_Weights_Already(OWMC_Loading_Weights_Already),
.OWMC_STATEMACHINE_Loading_Regs_Already(OWMC_Loading_Regs_Already),
.OWMC_STATEMACHINE_Counter_Dmux_En(Owmc_Statemachine_Counter_Dmux_En),
.OWMC_STATEMACHINE_Counter_Dmux_Reset(Owmc_Statemachine_Counter_Dmux_Reset),
.OWMC_STATEMACHINE_Counter_Ram_En(Owmc_Statemachine_Counter_Ram_En),
.OWMC_STATEMACHINE_Counter_Ram_Reset(Owmc_Statemachine_Counter_Ram_Reset),
.OWMC_STATEMACHINE_Counter_Ram_Input_Sel(Owmc_Statemachine_Counter_Ram_Input_Sel),
.OWMC_STATEMACHINE_Offset_Adder_Reset(Owmc_Statemachine_Offset_Adder_Reset),
.OWMC_STATEMACHINE_Offset_Adder_Sum_En(Owmc_Statemachine_Offset_Adder_Sum_En),
.OWMC_STATEMACHINE_Muxes_en(OWMC_Muxes_En),
.OWMC_STATEMACHINE_Ram_Oe(Owmc_Statemachine_Ram_Oe),
.OWMC_STATEMACHINE_Ram_We(Owmc_Statemachine_Ram_We)
);





assign Counter_Ram_Lower_Limit = Owmc_Statemachine_Counter_Ram_Input_Sel == 1'b1 ? Offset_Adder_Lower_Limit : 9'b0;
assign Counter_Ram_Number = Owmc_Statemachine_Counter_Ram_Input_Sel == 1'b1 ? OWMC_W_COXRW : OWMC_W_Size;


endmodule