data/full_repos/permissive/205673649/MIPS/Source/debug_unit.v
 line:52 column:40: Illegal character "'"
data/verilator_xmls/5666dd44-bd24-476a-be99-558294675b9d.xml
module debug_unit
     #(
        parameter LEN = 32,
        parameter LEN_UART= 8,
        parameter CANT_REG = 16,
        parameter CANT_MEM = 10,
        parameter NB_IF_ID = 96,
        parameter NB_ID_EX = 160,
        parameter NB_EX_MEM = 128,
        parameter NB_MEM_WB = 96
    )
    (
        input i_clk,
        input i_rst,
        input i_halt,
        input [NB_IF_ID-1:0] i_if_id,
        input [NB_ID_EX-1:0] i_id_ex,
        input [NB_EX_MEM-1:0] i_ex_mem,
        input [NB_MEM_WB-1:0] i_mem_wb,
        input i_tx_done,
        input i_rx_done,
        input [LEN_UART-1:0] i_uart_data,
        output o_tx_start,
        output [LEN_UART-1:0] o_uart_data
    );


  localparam [2:0]  IDLE           = 3'b 000,
                    PROGRAMMING    = 3'b 001,
                    WAITING        = 3'b 010,
                    STEP_BY_STEP   = 3'b 011,
                    SENDING_DATA   = 3'b 100,
                    CONTINUOUS     = 3'b 101;

  localparam [2:0]  SUB_INIT       = 3'b 000,
                    SUB_READ_1     = 3'b 001,  
                    SUB_READ_2     = 3'b 010,
                    SUB_READ_3     = 3'b 011,
                    SUB_READ_4     = 3'b 100,
                    SUB_WRITE_MEM  = 3'b 101; 
    
    
endmodule
module debug_unit
     #(
        parameter LEN = 32,
        parameter LEN_UART= 8,
        parameter CANT_REG = 16,
        parameter CANT_MEM = 10,
        parameter NB_IF_ID = 96,
        parameter NB_ID_EX = 160,
        parameter NB_EX_MEM = 128,
        parameter NB_MEM_WB = 96
    )
    (
        input i_clk,
        input i_rst,
        input i_halt,
        input [NB_IF_ID-1:0] i_if_id,
        input [NB_ID_EX-1:0] i_id_ex,
        input [NB_EX_MEM-1:0] i_ex_mem,
        input [NB_MEM_WB-1:0] i_mem_wb,
        input i_tx_done,
        input i_rx_done,
        input [LEN_UART-1:0] i_uart_data,
        output o_tx_start,
        output [LEN_UART-1:0] o_uart_data
    );



  localparam [2:0]  IDLE           = 3'b 000,
                    PROGRAMMING    = 3'b 001,
                    WAITING        = 3'b 010,
                    STEP_BY_STEP   = 3'b 011,
                    SENDING_DATA   = 3'b 100,
                    CONTINUOUS     = 3'b 101;

  localparam [2:0]  SUB_INIT       = 3'b 000,
                    SUB_READ_1     = 3'b 001,  
                    SUB_READ_2     = 3'b 010,
                    SUB_READ_3     = 3'b 011,
                    SUB_READ_4     = 3'b 100,
                    SUB_WRITE_MEM  = 3'b 101; 
    
    
endmodule