data/full_repos/permissive/516533387/morsedecoder.v
1: b'%Warning-MULTITOP: data/full_repos/permissive/516533387/morsedecoder.v:391: Multiple top level modules\n                                                                          : ... Suggest see manual; fix the duplicates, or use --top-module to select top.\n                   ... Use "/* verilator lint_off MULTITOP */" and lint_on around source to disable this message.\n                                                                          : ... Top module \'morse_decoder\'\nmodule morse_decoder(\n       ^~~~~~~~~~~~~\n                                                                          : ... Top module \'unit_conter\'\nmodule unit_conter(clk, unit_freq , out_clk);\n       ^~~~~~~~~~~\n                                                                          : ... Top module \'lcdlab3\'\nmodule lcdlab3(\n       ^~~~~~~\n%Warning-IMPLICIT: data/full_repos/permissive/516533387/morsedecoder.v:37: Signal definition not found, creating implicitly: \'GIPO_0\'\n                                                                         : ... Suggested alternative: \'GPIO_0\'\nassign GIPO_0 = 36\'hzzzzzzzzz;\n       ^~~~~~\n%Warning-IMPLICIT: data/full_repos/permissive/516533387/morsedecoder.v:38: Signal definition not found, creating implicitly: \'GIPO_1\'\n                                                                         : ... Suggested alternative: \'GIPO_0\'\nassign GIPO_1 = 36\'hzzzzzzzzz;\n       ^~~~~~\n%Warning-IMPLICIT: data/full_repos/permissive/516533387/morsedecoder.v:41: Signal definition not found, creating implicitly: \'RST\'\nassign RST = KEY[0];\n       ^~~\n%Warning-IMPLICIT: data/full_repos/permissive/516533387/morsedecoder.v:54: Signal definition not found, creating implicitly: \'newsletter\'\n                                                                         : ... Suggested alternative: \'new_letter\'\nfsm F (clk2, beep, letter , LEDR[17:12] , newsletter);\n                                          ^~~~~~~~~~\n%Warning-IMPLICIT: data/full_repos/permissive/516533387/morsedecoder.v:71: Signal definition not found, creating implicitly: \'now_letter\'\n                                                                         : ... Suggested alternative: \'new_letter\'\nmux8bit9tol MUX1 (letter , now_letter);\n                           ^~~~~~~~~~\n%Error: data/full_repos/permissive/516533387/morsedecoder.v:105: Pin not found: \'hex2\'\n                                                               : ... Suggested alternative: \'hex1\'\n    .hex2(rhex2),\n     ^~~~\n%Error: data/full_repos/permissive/516533387/morsedecoder.v:106: Pin not found: \'hex3\'\n                                                               : ... Suggested alternative: \'hex1\'\n    .hex3(rhex3),\n     ^~~~\n%Error: data/full_repos/permissive/516533387/morsedecoder.v:107: Pin not found: \'hex4\'\n                                                               : ... Suggested alternative: \'hex1\'\n    .hex4(rhex4),\n     ^~~~\n%Error: data/full_repos/permissive/516533387/morsedecoder.v:108: Pin not found: \'hex5\'\n                                                               : ... Suggested alternative: \'hex1\'\n    .hex5(rhex5),\n     ^~~~\n%Error: data/full_repos/permissive/516533387/morsedecoder.v:109: Pin not found: \'hex6\'\n                                                               : ... Suggested alternative: \'hex1\'\n    .hex6(rhex6),\n     ^~~~\n%Error: data/full_repos/permissive/516533387/morsedecoder.v:110: Pin not found: \'hex7\'\n                                                               : ... Suggested alternative: \'hex1\'\n    .hex7(rhex7),\n     ^~~~\n%Error: data/full_repos/permissive/516533387/morsedecoder.v:111: Pin not found: \'hex8\'\n                                                               : ... Suggested alternative: \'hex1\'\n    .hex8(rhex8),\n     ^~~~\n%Error: Exiting due to 7 error(s), 6 warning(s)\n'
module morse_decoder(
    input CLOCK_50,
    input [3:0] KEY,
    input [17:0] SW,
    output [6:0]    HEX0,HEX1,HEX2,HEX3,HEX4,HEX5,HEX6,HEX7,
    output [8:0] LEDG,
    output [17:0] LEDR,
    inout [35:0] GPIO_0,GPIO_1,
    output LCD_ON,
    output LCD_BLON,
    output LCD_RW,
    output LCD_EN,
    output LCD_RS,
    inout [7:0] LCD_DATA,
    input CLOCK_27,
    output TD_RESET,
    inout I2C_SDAT,
    output I2C_SCLK,
    output AUD_ADCLRCK,
    input  AUD_ADCDAT,
    output AUD_DACLRCK,
    output AUD_DACDAT,
    inout AUD_BCLK, 
    output AUD_XCK
);
wire DLY_RST;
Reset_Delay r0(     .iCLK(CLOCK_50) ,.oRESET(DLY_RST) );

assign  LCD_ON = 1'b1;
assign LCD_BLON = 1'b1;

assign GIPO_0 = 36'hzzzzzzzzz;
assign GIPO_1 = 36'hzzzzzzzzz;

wire [6:0] myclock;
assign RST = KEY[0];

wire clk;
unit_counter U (CLOCK_50, SW[3:0], clk);

wire [1:0] beep;
wire clk2;
assign LEDG[0] = clk2;
assign LEDR[1:0] = beep;
keyer K (clk , KEY[0] , beep, clk2);

wire newletter;
wire [6:0] letter;
fsm F (clk2, beep, letter , LEDR[17:12] , newsletter);

reg [7:0] rhex0 = 8'h20;
reg [7:0] rhex1 = 8'h20;
reg [7:0] rhex2 = 8'h20;
reg [7:0] rhex3 = 8'h20;
reg [7:0] rhex4 = 8'h20;
reg [7:0] rhex5 = 8'h20;
reg [7:0] rhex6 = 8'h20;
reg [7:0] rhex7 = 8'h20;
reg [7:0] rhex8 = 8'h20;

wire [7:0] new_letter;

wire rst;
assign rst = KEY[1];

mux8bit9tol MUX1 (letter , now_letter);

assign LEDG[3] = new_letter;

always @(posedge newletter or negedge rst ) 
begin
    if (~rst) begin
        rhex8 = 8'h20;
        rhex7 = 8'h20;
        rhex6 = 8'h20;
        rhex5 = 8'h20;
        rhex4 = 8'h20;
        rhex3 = 8'h20;
        rhex2 = 8'h20;
        rhex1 = 8'h20;
        rhex0 = 8'h20;
    end else begin
        rhex8 = rhex7;
        rhex7 = rhex6;
        rhex6 = rhex5;
        rhex5 = rhex4;
        rhex4 = rhex3;
        rhex3 = rhex2;
        rhex2 = rhex1;
        rhex1 = rhex0;
        rhex0 = new_letter;
    end
end

LCD_Display u1(
     .iCLK_50MHZ(CLOCK_50),
     .iRST_N(DLY_RST),
     .hex0(rhex0),
    .hex1(rhex1),
    .hex2(rhex2),
    .hex3(rhex3),
    .hex4(rhex4),
    .hex5(rhex5),
    .hex6(rhex6),
    .hex7(rhex7),
    .hex8(rhex8),
    .DATA_BUS(LCD_DATA),
    .LCD_RW(LCD_RW),
    .LCD_E(LCD_EN),
    .LCD_RS(LCD_RS)
);

endmodule
module morse_decoder(
    input CLOCK_50,
    input [3:0] KEY,
    input [17:0] SW,
    output [6:0]    HEX0,HEX1,HEX2,HEX3,HEX4,HEX5,HEX6,HEX7,
    output [8:0] LEDG,
    output [17:0] LEDR,
    inout [35:0] GPIO_0,GPIO_1,
    output LCD_ON,
    output LCD_BLON,
    output LCD_RW,
    output LCD_EN,
    output LCD_RS,
    inout [7:0] LCD_DATA,
    input CLOCK_27,
    output TD_RESET,
    inout I2C_SDAT,
    output I2C_SCLK,
    output AUD_ADCLRCK,
    input  AUD_ADCDAT,
    output AUD_DACLRCK,
    output AUD_DACDAT,
    inout AUD_BCLK, 
    output AUD_XCK
);

wire DLY_RST;
Reset_Delay r0(     .iCLK(CLOCK_50) ,.oRESET(DLY_RST) );

assign  LCD_ON = 1'b1;
assign LCD_BLON = 1'b1;

assign GIPO_0 = 36'hzzzzzzzzz;
assign GIPO_1 = 36'hzzzzzzzzz;

wire [6:0] myclock;
assign RST = KEY[0];

wire clk;
unit_counter U (CLOCK_50, SW[3:0], clk);

wire [1:0] beep;
wire clk2;
assign LEDG[0] = clk2;
assign LEDR[1:0] = beep;
keyer K (clk , KEY[0] , beep, clk2);

wire newletter;
wire [6:0] letter;
fsm F (clk2, beep, letter , LEDR[17:12] , newsletter);

reg [7:0] rhex0 = 8'h20;
reg [7:0] rhex1 = 8'h20;
reg [7:0] rhex2 = 8'h20;
reg [7:0] rhex3 = 8'h20;
reg [7:0] rhex4 = 8'h20;
reg [7:0] rhex5 = 8'h20;
reg [7:0] rhex6 = 8'h20;
reg [7:0] rhex7 = 8'h20;
reg [7:0] rhex8 = 8'h20;

wire [7:0] new_letter;

wire rst;
assign rst = KEY[1];

mux8bit9tol MUX1 (letter , now_letter);

assign LEDG[3] = new_letter;

always @(posedge newletter or negedge rst ) 
begin
    if (~rst) begin
        rhex8 = 8'h20;
        rhex7 = 8'h20;
        rhex6 = 8'h20;
        rhex5 = 8'h20;
        rhex4 = 8'h20;
        rhex3 = 8'h20;
        rhex2 = 8'h20;
        rhex1 = 8'h20;
        rhex0 = 8'h20;
    end else begin
        rhex8 = rhex7;
        rhex7 = rhex6;
        rhex6 = rhex5;
        rhex5 = rhex4;
        rhex4 = rhex3;
        rhex3 = rhex2;
        rhex2 = rhex1;
        rhex1 = rhex0;
        rhex0 = new_letter;
    end
end

LCD_Display u1(
     .iCLK_50MHZ(CLOCK_50),
     .iRST_N(DLY_RST),
     .hex0(rhex0),
    .hex1(rhex1),
    .hex2(rhex2),
    .hex3(rhex3),
    .hex4(rhex4),
    .hex5(rhex5),
    .hex6(rhex6),
    .hex7(rhex7),
    .hex8(rhex8),
    .DATA_BUS(LCD_DATA),
    .LCD_RW(LCD_RW),
    .LCD_E(LCD_EN),
    .LCD_RS(LCD_RS)
);

endmodule