data/full_repos/permissive/105269489/src/verilog/Test benches/tb_FSMandControl/Módulos involucrados/micro_sim.v
 line:23: before: "localparam"
1: b'%Error: Cannot find file containing module: benches/tb_FSMandControl/M\xc3\xb3dulos\n        ... Looked in:\n             data/full_repos/permissive/105269489/src/verilog/Test/benches/tb_FSMandControl/M\xc3\xb3dulos\n             data/full_repos/permissive/105269489/src/verilog/Test/benches/tb_FSMandControl/M\xc3\xb3dulos.v\n             data/full_repos/permissive/105269489/src/verilog/Test/benches/tb_FSMandControl/M\xc3\xb3dulos.sv\n             benches/tb_FSMandControl/M\xc3\xb3dulos\n             benches/tb_FSMandControl/M\xc3\xb3dulos.v\n             benches/tb_FSMandControl/M\xc3\xb3dulos.sv\n             obj_dir/benches/tb_FSMandControl/M\xc3\xb3dulos\n             obj_dir/benches/tb_FSMandControl/M\xc3\xb3dulos.v\n             obj_dir/benches/tb_FSMandControl/M\xc3\xb3dulos.sv\n%Error: Cannot find file containing module: involucrados,data/full_repos/permissive/105269489\n%Error: Cannot find file containing module: data/full_repos/permissive/105269489/src/verilog/Test\n%Error: Cannot find file containing module: involucrados/micro_sim.v\n%Error: Exiting due to 4 error(s)\n'
module micro_sim#(
    parameter BIT_LEN       = `BIT_LEN,
    parameter CONV_LEN      = `CONV_LEN,
    parameter CONV_LPOS     = `CONV_LPOS,
    parameter M_LEN         = `M_LEN,
    parameter NB_ADDRESS    = `NB_ADDRESS,
    parameter BITS_IMAGE    = `BITS_IMAGE,
    parameter RAM_WIDTH     = `RAM_WIDTH,
    parameter GPIO_D        = `GPIO_D,
    parameter BITS_STATES   = `BITS_STATES,
    localparam limit        =  16384
    )(
    
    output 		   		o_led,
    input           	i_CLK,
    input [GPIO_D-1:0] 	gpio_o_data_tri_o
    );

    
    
    

    reg [12:0] MCUdata;   
    reg [14:0] counter;    

    reg valid_output_latch;
    reg sop_fromfsm_latch;

    reg [31:0] controlGPIOoutput_latch;
    reg [12:0] MCUoutput_latch;
    reg        changeBlock_latch;
    reg        EOP_fromFSM_latch;
    wire        load_net;
    wire        sop_fromFSM;
    
    

    wire        valid_for_conv;
    wire [NB_ADDRESS-1:0] wrAdd;
    wire [NB_ADDRESS-1:0] rdAdd;

    wire EOP_from_FSM_to_CTRL;
    wire [23:0] krnlData;    

    wire [9:0]imgLength_from_CTRL_to_FSM;    

    wire ledControl;    

    wire EoP_to_MCU;    

    wire SOP_from_CTRL;

    wire valid_from_ctrl_to_FSM;
    wire validCONV;
    wire KorI;    

    wire changeBlock;    
    wire [12:0] output_MCUdata;
    

    wire validGPIO;    
    wire rst_sw;
    wire [2:0]  GPIOctrl;
    wire [23:0] GPIOdata;    
    

    wire [31:0] outGPIOctrl;
   
    assign rst_sw                     = gpio_o_data_tri_o[0];   
    assign GPIOctrl                   = gpio_o_data_tri_o[31:29];
    assign validGPIO                  = gpio_o_data_tri_o[28];
    assign GPIOdata                   = gpio_o_data_tri_o[24:1];
   
   
    
    initial begin
        MCUdata     <= 13'd0;
        counter     <= 13'd0;
        sop_fromfsm_latch<=1'b0;
        valid_output_latch<=1'b0;
        controlGPIOoutput_latch<='d0;
        MCUoutput_latch<='d0;
        changeBlock_latch<='d0;
        EOP_fromFSM_latch<='d0;
        
    end
    
    
    

    always @(posedge i_CLK ) begin
        
        valid_output_latch <= valid_for_conv;
        MCUoutput_latch<= output_MCUdata;
        controlGPIOoutput_latch <= outGPIOctrl;
        changeBlock_latch <= changeBlock;
        EOP_fromFSM_latch <=EOP_from_FSM_to_CTRL;
        sop_fromfsm_latch<=sop_fromFSM;
        
        if (rst_sw) begin
            MCUdata     <= 13'd0;
            counter     <= 13'd0;
            sop_fromfsm_latch<=1'b0;
            valid_output_latch<=1'b0;
            controlGPIOoutput_latch<='d0;
            MCUoutput_latch<='d0;
            changeBlock_latch<='d0;
            EOP_fromFSM_latch<='d0;
            
        end
        else begin
            counter <= counter + 1;
                        
            if (counter == limit) begin
                MCUdata<=MCUdata+1;
                
                if (MCUdata==13'b1111111111111)
                    MCUdata<='d0;
            end
                    
        
        end 
        
        
      
    end

ControlBlock
   u_RegisterFile
           (
            .i_GPIOdata(GPIOdata),
            .i_MCUdata(MCUdata),
            .i_GPIOctrl(GPIOctrl),
            .i_GPIOvalid(validGPIO),
            .i_rst(rst_sw),
            .i_CLK(i_CLK),
            .i_EOP_from_FSM(EOP_from_FSM_to_CTRL),
            .o_GPIOdata(outGPIOctrl),
            .o_KNLdata(krnlData),
            .o_imgLength(imgLength_from_CTRL_to_FSM),
            .o_led(ledControl),
            .o_load(load_net),
            .o_EOP_to_MCU(EoP_to_MCU),
            .o_run(SOP_from_CTRL),
            .o_valid_to_FSM(valid_from_ctrl_to_FSM),
            .o_valid_to_CONV(validCONV),
            .o_KNorIMG(KorI),
            .o_MCUdata(output_MCUdata)
           );


FSMv2
   #(  
            .NB_ADDRESS(NB_ADDRESS),
            .NB_IMAGE (BITS_IMAGE),
            .NB_STATES(BITS_STATES)
            )
   u_FSM
		(
		.i_CLK(i_CLK),
		.i_load(load_net),
		.i_reset(rst_sw),
		.i_SoP(SOP_from_CTRL),
		.i_imgLength(imgLength_from_CTRL_to_FSM),
		.i_valid(valid_from_ctrl_to_FSM),
		.o_valid_fromFSM_toCONV(valid_for_conv),
		.o_readAdd(rdAdd),
		.o_SOP_fromFSM(sop_fromFSM),
		.o_writeAdd(wrAdd),
		.o_EoP(EOP_from_FSM_to_CTRL),
		.o_changeBlock(changeBlock)
		);

endmodule
module micro_sim#(
    parameter BIT_LEN       = `BIT_LEN,
    parameter CONV_LEN      = `CONV_LEN,
    parameter CONV_LPOS     = `CONV_LPOS,
    parameter M_LEN         = `M_LEN,
    parameter NB_ADDRESS    = `NB_ADDRESS,
    parameter BITS_IMAGE    = `BITS_IMAGE,
    parameter RAM_WIDTH     = `RAM_WIDTH,
    parameter GPIO_D        = `GPIO_D,
    parameter BITS_STATES   = `BITS_STATES,
    localparam limit        =  16384
    )(
    
    output 		   		o_led,
    input           	i_CLK,
    input [GPIO_D-1:0] 	gpio_o_data_tri_o
    );


    
    
    

    reg [12:0] MCUdata;   
    reg [14:0] counter;    

    reg valid_output_latch;
    reg sop_fromfsm_latch;

    reg [31:0] controlGPIOoutput_latch;
    reg [12:0] MCUoutput_latch;
    reg        changeBlock_latch;
    reg        EOP_fromFSM_latch;
    wire        load_net;
    wire        sop_fromFSM;
    
    

    wire        valid_for_conv;
    wire [NB_ADDRESS-1:0] wrAdd;
    wire [NB_ADDRESS-1:0] rdAdd;

    wire EOP_from_FSM_to_CTRL;
    wire [23:0] krnlData;    

    wire [9:0]imgLength_from_CTRL_to_FSM;    

    wire ledControl;    

    wire EoP_to_MCU;    

    wire SOP_from_CTRL;

    wire valid_from_ctrl_to_FSM;
    wire validCONV;
    wire KorI;    

    wire changeBlock;    
    wire [12:0] output_MCUdata;
    

    wire validGPIO;    
    wire rst_sw;
    wire [2:0]  GPIOctrl;
    wire [23:0] GPIOdata;    
    

    wire [31:0] outGPIOctrl;
   
    assign rst_sw                     = gpio_o_data_tri_o[0];   
    assign GPIOctrl                   = gpio_o_data_tri_o[31:29];
    assign validGPIO                  = gpio_o_data_tri_o[28];
    assign GPIOdata                   = gpio_o_data_tri_o[24:1];
   
   
    
    initial begin
        MCUdata     <= 13'd0;
        counter     <= 13'd0;
        sop_fromfsm_latch<=1'b0;
        valid_output_latch<=1'b0;
        controlGPIOoutput_latch<='d0;
        MCUoutput_latch<='d0;
        changeBlock_latch<='d0;
        EOP_fromFSM_latch<='d0;
        
    end
    
    
    

    always @(posedge i_CLK ) begin
        
        valid_output_latch <= valid_for_conv;
        MCUoutput_latch<= output_MCUdata;
        controlGPIOoutput_latch <= outGPIOctrl;
        changeBlock_latch <= changeBlock;
        EOP_fromFSM_latch <=EOP_from_FSM_to_CTRL;
        sop_fromfsm_latch<=sop_fromFSM;
        
        if (rst_sw) begin
            MCUdata     <= 13'd0;
            counter     <= 13'd0;
            sop_fromfsm_latch<=1'b0;
            valid_output_latch<=1'b0;
            controlGPIOoutput_latch<='d0;
            MCUoutput_latch<='d0;
            changeBlock_latch<='d0;
            EOP_fromFSM_latch<='d0;
            
        end
        else begin
            counter <= counter + 1;
                        
            if (counter == limit) begin
                MCUdata<=MCUdata+1;
                
                if (MCUdata==13'b1111111111111)
                    MCUdata<='d0;
            end
                    
        
        end 
        
        
      
    end

ControlBlock
   u_RegisterFile
           (
            .i_GPIOdata(GPIOdata),
            .i_MCUdata(MCUdata),
            .i_GPIOctrl(GPIOctrl),
            .i_GPIOvalid(validGPIO),
            .i_rst(rst_sw),
            .i_CLK(i_CLK),
            .i_EOP_from_FSM(EOP_from_FSM_to_CTRL),
            .o_GPIOdata(outGPIOctrl),
            .o_KNLdata(krnlData),
            .o_imgLength(imgLength_from_CTRL_to_FSM),
            .o_led(ledControl),
            .o_load(load_net),
            .o_EOP_to_MCU(EoP_to_MCU),
            .o_run(SOP_from_CTRL),
            .o_valid_to_FSM(valid_from_ctrl_to_FSM),
            .o_valid_to_CONV(validCONV),
            .o_KNorIMG(KorI),
            .o_MCUdata(output_MCUdata)
           );


FSMv2
   #(  
            .NB_ADDRESS(NB_ADDRESS),
            .NB_IMAGE (BITS_IMAGE),
            .NB_STATES(BITS_STATES)
            )
   u_FSM
		(
		.i_CLK(i_CLK),
		.i_load(load_net),
		.i_reset(rst_sw),
		.i_SoP(SOP_from_CTRL),
		.i_imgLength(imgLength_from_CTRL_to_FSM),
		.i_valid(valid_from_ctrl_to_FSM),
		.o_valid_fromFSM_toCONV(valid_for_conv),
		.o_readAdd(rdAdd),
		.o_SOP_fromFSM(sop_fromFSM),
		.o_writeAdd(wrAdd),
		.o_EoP(EOP_from_FSM_to_CTRL),
		.o_changeBlock(changeBlock)
		);

endmodule