data/full_repos/permissive/159954591/rtl/fm_tx_top.v
1: b"%Error: data/full_repos/permissive/159954591/rtl/fm_tx_top.v:51: Cannot find file containing module: 'PLL'\n    PLL PLL_inst (\n    ^~~\n        ... Looked in:\n             data/full_repos/permissive/159954591/rtl,data/full_repos/permissive/159954591/PLL\n             data/full_repos/permissive/159954591/rtl,data/full_repos/permissive/159954591/PLL.v\n             data/full_repos/permissive/159954591/rtl,data/full_repos/permissive/159954591/PLL.sv\n             PLL\n             PLL.v\n             PLL.sv\n             obj_dir/PLL\n             obj_dir/PLL.v\n             obj_dir/PLL.sv\n%Error: data/full_repos/permissive/159954591/rtl/fm_tx_top.v:61: Cannot find file containing module: 'uart2reg_if'\n    uart2reg_if uart2reg_if (\n    ^~~~~~~~~~~\n%Error: data/full_repos/permissive/159954591/rtl/fm_tx_top.v:74: Cannot find file containing module: 'reg_map'\n    reg_map reg_map_inst (\n    ^~~~~~~\n%Error: data/full_repos/permissive/159954591/rtl/fm_tx_top.v:89: Cannot find file containing module: 'audio_input'\n    audio_input audio_input_inst (\n    ^~~~~~~~~~~\n%Error: data/full_repos/permissive/159954591/rtl/fm_tx_top.v:102: Cannot find file containing module: 'fmSigMix'\n    fmSigMix fmSigMix_inst (\n    ^~~~~~~~\n%Error: data/full_repos/permissive/159954591/rtl/fm_tx_top.v:116: Cannot find file containing module: 'nco_tx'\n    nco_tx nco_tx_inst (\n    ^~~~~~\n%Error: data/full_repos/permissive/159954591/rtl/fm_tx_top.v:126: Cannot find file containing module: 'barLedDrv'\n    barLedDrv barLedDrv_inst (\n    ^~~~~~~~~\n%Error: Exiting due to 7 error(s)\n"
module fm_tx (
    input       mco50m,
    input       rst_n,
    output      led_onb,
    output      osc_oe,
    output      rf_out,


    input       uart_mosi,
    output      uart_miso,
    

    input       analog_L,
    output      analog_L_cmp,
    input       analog_R,
    output      analog_R_cmp,
    

    output      o_ser,
    output      o_srclk,
    output      o_rclk
    );
    
    wire    [15:0]  addr;
    wire    [15:0]  wdata;
    wire            wen;
    wire    [31:0]  reg0000_2;
    wire    [15:0]  reg0004;
    wire    [15:0]  reg0006;
    wire    [15:0]  reg_q;
    wire            clk50m;
    wire            clk_rfnco;
    wire    [31:0]  rf_mod_sig;
    wire    [ 9:0]  audio_l;
    wire    [ 9:0]  audio_r;

    assign osc_oe = 1'b1;
    assign led_onb = 1;
    
    

    PLL PLL_inst (
        .areset ( 1'b0 ),
        .inclk0 ( mco50m ),
        .c0 ( clk50m ),
        .c1 ( clk_rfnco ),
        .locked (  )
    );
    
    

    uart2reg_if uart2reg_if (
        .i_clk ( clk50m ),
        .i_rst_n ( rst_n ),
        .i_rdata ( reg_q ),
        .i_uart_mosi ( uart_mosi ),
        .o_rwaddr ( addr ),
        .o_wdata ( wdata ),
        .o_wen ( wen ),
        .o_uart_miso ( uart_miso )
    );
    
    

    reg_map reg_map_inst (
        .i_clk ( clk50m ),
        .i_rst_n ( rst_n ),
        .i_addr ( addr[15:0] ),
        .i_wdata ( wdata[15:0] ),
        .i_wen ( wen ),
        .o_q ( reg_q ),
        .o_reg0000 ( reg0000_2[15:0] ),
        .o_reg0002 ( reg0000_2[31:16] ),
        .o_reg0004 ( reg0004[15:0] ),
        .o_reg0006 ( reg0006[15:0] )
    );
    
    

    audio_input audio_input_inst (
        .i_clk ( clk50m ),
        .i_rst_n ( rst_n ),
        .i_analog_l ( analog_L ),
        .i_analog_r ( analog_R ),
        .o_cmpdac_l ( analog_L_cmp ),
        .o_cmpdac_r ( analog_R_cmp ),
        .o_adcdt_l ( audio_l ),
        .o_adcdt_r ( audio_r )
    );
    
    

    fmSigMix fmSigMix_inst (
        .i_clk ( clk50m ),
        .i_clk_rf ( clk_rfnco ),
        .i_rst_n ( rst_n ),
        .i_audio_l ( audio_l ),
        .i_audio_r ( audio_r ),
        .i_audio_gain ( reg0004 ),
        .i_pilot_gain ( reg0006 ),
        .i_rf_freq ( reg0000_2 ),
        .o_rf_mod_sig ( rf_mod_sig )
    );
    
    

    nco_tx nco_tx_inst (
        .i_clk ( clk_rfnco ),
        .i_rst_n ( rst_n ),
        .i_addr ( rf_mod_sig ),
        .i_en ( 1'b1 ),
        .o_sig ( rf_out )
    );
    


    barLedDrv barLedDrv_inst (
        .i_clk ( clk50m ),
        .i_rst_n ( rst_n ),

        .o_ser ( o_ser ),
        .o_srclk ( o_srclk ),
        .o_rclk ( o_rclk ),

        .i_audioLv_L ( audio_l ),
        .i_audioLv_R ( audio_r )
    );

endmodule
module fm_tx (
    input       mco50m,
    input       rst_n,
    output      led_onb,
    output      osc_oe,
    output      rf_out,


    input       uart_mosi,
    output      uart_miso,
    

    input       analog_L,
    output      analog_L_cmp,
    input       analog_R,
    output      analog_R_cmp,
    

    output      o_ser,
    output      o_srclk,
    output      o_rclk
    );

    
    wire    [15:0]  addr;
    wire    [15:0]  wdata;
    wire            wen;
    wire    [31:0]  reg0000_2;
    wire    [15:0]  reg0004;
    wire    [15:0]  reg0006;
    wire    [15:0]  reg_q;
    wire            clk50m;
    wire            clk_rfnco;
    wire    [31:0]  rf_mod_sig;
    wire    [ 9:0]  audio_l;
    wire    [ 9:0]  audio_r;

    assign osc_oe = 1'b1;
    assign led_onb = 1;
    
    

    PLL PLL_inst (
        .areset ( 1'b0 ),
        .inclk0 ( mco50m ),
        .c0 ( clk50m ),
        .c1 ( clk_rfnco ),
        .locked (  )
    );
    
    

    uart2reg_if uart2reg_if (
        .i_clk ( clk50m ),
        .i_rst_n ( rst_n ),
        .i_rdata ( reg_q ),
        .i_uart_mosi ( uart_mosi ),
        .o_rwaddr ( addr ),
        .o_wdata ( wdata ),
        .o_wen ( wen ),
        .o_uart_miso ( uart_miso )
    );
    
    

    reg_map reg_map_inst (
        .i_clk ( clk50m ),
        .i_rst_n ( rst_n ),
        .i_addr ( addr[15:0] ),
        .i_wdata ( wdata[15:0] ),
        .i_wen ( wen ),
        .o_q ( reg_q ),
        .o_reg0000 ( reg0000_2[15:0] ),
        .o_reg0002 ( reg0000_2[31:16] ),
        .o_reg0004 ( reg0004[15:0] ),
        .o_reg0006 ( reg0006[15:0] )
    );
    
    

    audio_input audio_input_inst (
        .i_clk ( clk50m ),
        .i_rst_n ( rst_n ),
        .i_analog_l ( analog_L ),
        .i_analog_r ( analog_R ),
        .o_cmpdac_l ( analog_L_cmp ),
        .o_cmpdac_r ( analog_R_cmp ),
        .o_adcdt_l ( audio_l ),
        .o_adcdt_r ( audio_r )
    );
    
    

    fmSigMix fmSigMix_inst (
        .i_clk ( clk50m ),
        .i_clk_rf ( clk_rfnco ),
        .i_rst_n ( rst_n ),
        .i_audio_l ( audio_l ),
        .i_audio_r ( audio_r ),
        .i_audio_gain ( reg0004 ),
        .i_pilot_gain ( reg0006 ),
        .i_rf_freq ( reg0000_2 ),
        .o_rf_mod_sig ( rf_mod_sig )
    );
    
    

    nco_tx nco_tx_inst (
        .i_clk ( clk_rfnco ),
        .i_rst_n ( rst_n ),
        .i_addr ( rf_mod_sig ),
        .i_en ( 1'b1 ),
        .o_sig ( rf_out )
    );
    


    barLedDrv barLedDrv_inst (
        .i_clk ( clk50m ),
        .i_rst_n ( rst_n ),

        .o_ser ( o_ser ),
        .o_srclk ( o_srclk ),
        .o_rclk ( o_rclk ),

        .i_audioLv_L ( audio_l ),
        .i_audioLv_R ( audio_r )
    );

endmodule