data/full_repos/permissive/205673649/UART/Sources/top_level.v
 line:48: before: "("
1: b"%Error: data/full_repos/permissive/205673649/UART/Sources/top_level.v:49: syntax error, unexpected '(', expecting IDENTIFIER\n    .i_clk(i_clk),\n    ^\n%Error: data/full_repos/permissive/205673649/UART/Sources/top_level.v:60: syntax error, unexpected '(', expecting IDENTIFIER\n    .i_clk(i_clk),\n    ^\n%Error: Exiting due to 2 error(s)\n"
module UART #(parameter NB_DATA = 8,
                   parameter SB_TICK =16



                   )
(
    input i_clk,
    input i_rst,
    input i_int_tx,
    input [NB_DATA-1:0] i_interfaz_tx_data,
    input i_rx,
    output o_tx_interfaz_done_data,
    output o_tx,
    output o_rx_interfaz_done_data,
    output [NB_DATA-1:0] o_rx_interfaz_data
);


wire tick;



tx #(.NB_DATA(NB_DATA), .SB_TICK(SB_TICK))
(
    .i_clk(i_clk),
    .i_rst(i_rst),
    .i_tx_start(i_int_tx),
    .i_tick(tick),
    .i_data(i_interfaz_tx_data),       
    .o_done_tx(o_tx_interfaz_done_data),       
    .o_tx(o_tx) 
);

rx #(.NB_DATA(NB_DATA), .SB_TICK(SB_TICK))
(
    .i_clk(i_clk),
    .i_rst(i_rst),
    .i_bit(i_rx),                  
    .i_tick(tick),
    .o_done_data(o_rx_interfaz_done_data),  
    .o_data(o_rx_interfaz_data)      
);
    
baudrate_gen
(
    .i_clk(i_clk),
    .i_rst(i_rst),
    .o_tick(tick)
);




endmodule
module UART #(parameter NB_DATA = 8,
                   parameter SB_TICK =16



                   )
(
    input i_clk,
    input i_rst,
    input i_int_tx,
    input [NB_DATA-1:0] i_interfaz_tx_data,
    input i_rx,
    output o_tx_interfaz_done_data,
    output o_tx,
    output o_rx_interfaz_done_data,
    output [NB_DATA-1:0] o_rx_interfaz_data
);



wire tick;



tx #(.NB_DATA(NB_DATA), .SB_TICK(SB_TICK))
(
    .i_clk(i_clk),
    .i_rst(i_rst),
    .i_tx_start(i_int_tx),
    .i_tick(tick),
    .i_data(i_interfaz_tx_data),       
    .o_done_tx(o_tx_interfaz_done_data),       
    .o_tx(o_tx) 
);

rx #(.NB_DATA(NB_DATA), .SB_TICK(SB_TICK))
(
    .i_clk(i_clk),
    .i_rst(i_rst),
    .i_bit(i_rx),                  
    .i_tick(tick),
    .o_done_data(o_rx_interfaz_done_data),  
    .o_data(o_rx_interfaz_data)      
);
    
baudrate_gen
(
    .i_clk(i_clk),
    .i_rst(i_rst),
    .o_tick(tick)
);




endmodule