data/full_repos/permissive/531041697/rtl/ym3526/jtopl.v
1: b"%Error: data/full_repos/permissive/531041697/rtl/ym3526/jtopl.v:93: Cannot find file containing module: 'jtopl_mmr'\njtopl_mmr #(.OPL_TYPE(OPL_TYPE)) u_mmr(\n^~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/531041697/rtl/ym3526,data/full_repos/permissive/531041697/jtopl_mmr\n             data/full_repos/permissive/531041697/rtl/ym3526,data/full_repos/permissive/531041697/jtopl_mmr.v\n             data/full_repos/permissive/531041697/rtl/ym3526,data/full_repos/permissive/531041697/jtopl_mmr.sv\n             jtopl_mmr\n             jtopl_mmr.v\n             jtopl_mmr.sv\n             obj_dir/jtopl_mmr\n             obj_dir/jtopl_mmr.v\n             obj_dir/jtopl_mmr.sv\n%Error: data/full_repos/permissive/531041697/rtl/ym3526/jtopl.v:143: Cannot find file containing module: 'jtopl_timers'\njtopl_timers u_timers(\n^~~~~~~~~~~~\n%Error: data/full_repos/permissive/531041697/rtl/ym3526/jtopl.v:162: Cannot find file containing module: 'jtopl_lfo'\njtopl_lfo u_lfo(\n^~~~~~~~~\n%Error: data/full_repos/permissive/531041697/rtl/ym3526/jtopl.v:171: Cannot find file containing module: 'jtopl_pg'\njtopl_pg u_pg(\n^~~~~~~~\n%Error: data/full_repos/permissive/531041697/rtl/ym3526/jtopl.v:193: Cannot find file containing module: 'jtopl_eg'\njtopl_eg u_eg(\n^~~~~~~~\n%Error: data/full_repos/permissive/531041697/rtl/ym3526/jtopl.v:221: Cannot find file containing module: 'jtopl_op'\njtopl_op #(.OPL_TYPE(OPL_TYPE)) u_op(\n^~~~~~~~\n%Error: data/full_repos/permissive/531041697/rtl/ym3526/jtopl.v:242: Cannot find file containing module: 'jtopl_acc'\njtopl_acc u_acc(\n^~~~~~~~~\n%Error: Exiting due to 7 error(s)\n"
module jtopl  #(parameter OPL_TYPE=1)
    (
    input   wire               rst,
    input   wire               clk,
    input   wire               cen,
    input   wire        [ 7:0] din,
    input   wire               addr,
    input   wire               cs_n,
    input   wire               wr_n,
    output  wire        [ 7:0] dout,
    output  wire               irq_n,

    output  wire signed  [15:0] snd,
    output  wire               sample
);



wire          cenop;
wire          write;
wire  [ 1:0]  group;
wire  [17:0]  slot;
wire  [ 3:0]  trem;


wire          flag_A, flag_B, flagen_A, flagen_B;
wire  [ 7:0]  value_A;
wire  [ 7:0]  value_B;
wire          load_A, load_B;
wire          clr_flag_A, clr_flag_B;
wire          overflow_A;
wire          zero;


wire  [ 9:0]  fnum_I;
wire  [ 2:0]  block_I;
wire  [ 3:0]  mul_II;
wire  [ 9:0]  phase_IV;
wire          pg_rst_II;
wire          viben_I;
wire  [ 2:0]  vib_cnt;

wire          en_sus_I;
wire  [ 3:0]  keycode_II;
wire  [ 3:0]  arate_I;
wire  [ 3:0]  drate_I;
wire  [ 3:0]  rrate_I;
wire  [ 3:0]  sl_I;
wire          ksr_II;
wire  [ 1:0]  ksl_IV;

wire          keyon_I;
wire          eg_stop;

wire          amen_IV;
wire  [ 5:0]  tl_IV;
wire  [ 9:0]  eg_V;

wire          am_dep, vib_dep, rhy_en;

wire  [ 2:0]  fb_I;
wire  [ 1:0]  wavsel_I;
wire          op, con_I, op_out, con_out;

wire signed [12:0] op_result;

assign          write   = !cs_n && !wr_n;
assign          dout    = { ~irq_n, flag_A, flag_B, 5'd6 };
assign          eg_stop = 0;
assign          sample  = zero;

jtopl_mmr #(.OPL_TYPE(OPL_TYPE)) u_mmr(
    .rst        ( rst           ),
    .clk        ( clk           ),
    .cen        ( cen           ),
    .cenop      ( cenop         ),
    .din        ( din           ),
    .write      ( write         ),
    .addr       ( addr          ),
    .zero       ( zero          ),
    .group      ( group         ),
    .op         ( op            ),
    .slot       ( slot          ),
    .rhy_en     ( rhy_en        ),

    .value_A    ( value_A       ),
    .value_B    ( value_B       ),
    .load_A     ( load_A        ),
    .load_B     ( load_B        ),
    .flagen_A   ( flagen_A      ),
    .flagen_B   ( flagen_B      ),
    .clr_flag_A ( clr_flag_A    ),
    .clr_flag_B ( clr_flag_B    ),
    .flag_A     ( flag_A        ),
    .overflow_A ( overflow_A    ),

    .fnum_I     ( fnum_I        ),
    .block_I    ( block_I       ),
    .mul_II     ( mul_II        ),

    .wavsel_I   ( wavsel_I      ),

    .keyon_I    ( keyon_I       ),
    .en_sus_I   ( en_sus_I      ),
    .arate_I    ( arate_I       ),
    .drate_I    ( drate_I       ),
    .rrate_I    ( rrate_I       ),
    .sl_I       ( sl_I          ),
    .ks_II      ( ksr_II        ),
    .tl_IV      ( tl_IV         ),
    .ksl_IV     ( ksl_IV        ),
    .amen_IV    ( amen_IV       ),
    .viben_I    ( viben_I       ),

    .am_dep     ( am_dep        ),
    .vib_dep    ( vib_dep       ),

    .fb_I       ( fb_I          ),
    .con_I      ( con_I         )
);

jtopl_timers u_timers(
    .rst        ( rst           ),
    .clk        ( clk           ),
    .cenop      ( cenop         ),
    .zero       ( zero          ),
    .value_A    ( value_A       ),
    .value_B    ( value_B       ),
    .load_A     ( load_A        ),
    .load_B     ( load_B        ),
    .flagen_A   ( flagen_A      ),
    .flagen_B   ( flagen_B      ),
    .clr_flag_A ( clr_flag_A    ),
    .clr_flag_B ( clr_flag_B    ),
    .flag_A     ( flag_A        ),
    .flag_B     ( flag_B        ),
    .overflow_A ( overflow_A    ),
    .irq_n      ( irq_n         )
);

jtopl_lfo u_lfo(
    .rst        ( rst           ),
    .clk        ( clk           ),
    .cenop      ( cenop         ),
    .slot       ( slot          ),
    .vib_cnt    ( vib_cnt       ),
    .trem       ( trem          )
);

jtopl_pg u_pg(
    .rst        ( rst           ),
    .clk        ( clk           ),
    .cenop      ( cenop         ),
    .slot       ( slot          ),
    .rhy_en     ( rhy_en        ),

    .fnum_I     ( fnum_I        ),
    .block_I    ( block_I       ),

    .mul_II     ( mul_II        ),

    .vib_cnt    ( vib_cnt       ),
    .vib_dep    ( vib_dep       ),
    .viben_I    ( viben_I       ),

    .pg_rst_II  ( pg_rst_II     ),

    .keycode_II ( keycode_II    ),
    .phase_IV   ( phase_IV      )
);

jtopl_eg u_eg(
    .rst        ( rst           ),
    .clk        ( clk           ),
    .cenop      ( cenop         ),
    .zero       ( zero          ),
    .eg_stop    ( eg_stop       ),

    .en_sus_I   ( en_sus_I      ),
    .keycode_II ( keycode_II    ),
    .arate_I    ( arate_I       ),
    .drate_I    ( drate_I       ),
    .rrate_I    ( rrate_I       ),
    .sl_I       ( sl_I          ),
    .ksr_II     ( ksr_II        ),

    .keyon_I    ( keyon_I       ),

    .fnum_I     ( fnum_I        ),
    .block_I    ( block_I       ),
    .lfo_mod    ( trem          ),
    .amsen_IV   ( amen_IV       ),
    .ams_IV     ( am_dep        ),
    .tl_IV      ( tl_IV         ),
    .ksl_IV     ( ksl_IV        ),
    .eg_V       ( eg_V          ),
    .pg_rst_II  ( pg_rst_II     )
);

jtopl_op #(.OPL_TYPE(OPL_TYPE)) u_op(
    .rst        ( rst           ),
    .clk        ( clk           ),
    .cenop      ( cenop         ),


    .group      ( group         ),
    .op         ( op            ),
    .zero       ( zero          ),

    .pg_phase_I ( phase_IV      ),
    .eg_atten_II( eg_V          ),
    .fb_I       ( fb_I          ),
    .wavsel_I   ( wavsel_I      ),

    .con_I      ( con_I         ),
    .op_result  ( op_result     ),
    .op_out     ( op_out        ),
    .con_out    ( con_out       )
);

jtopl_acc u_acc(
    .rst        ( rst           ),
    .clk        ( clk           ),
    .cenop      ( cenop         ),
    .zero       ( zero          ),
    .op_result  ( op_result     ),
    .op         ( op_out        ),
    .con        ( con_out       ),
    .snd        ( snd           )
);

endmodule
module jtopl  #(parameter OPL_TYPE=1)
    (
    input   wire               rst,
    input   wire               clk,
    input   wire               cen,
    input   wire        [ 7:0] din,
    input   wire               addr,
    input   wire               cs_n,
    input   wire               wr_n,
    output  wire        [ 7:0] dout,
    output  wire               irq_n,

    output  wire signed  [15:0] snd,
    output  wire               sample
);




wire          cenop;
wire          write;
wire  [ 1:0]  group;
wire  [17:0]  slot;
wire  [ 3:0]  trem;


wire          flag_A, flag_B, flagen_A, flagen_B;
wire  [ 7:0]  value_A;
wire  [ 7:0]  value_B;
wire          load_A, load_B;
wire          clr_flag_A, clr_flag_B;
wire          overflow_A;
wire          zero;


wire  [ 9:0]  fnum_I;
wire  [ 2:0]  block_I;
wire  [ 3:0]  mul_II;
wire  [ 9:0]  phase_IV;
wire          pg_rst_II;
wire          viben_I;
wire  [ 2:0]  vib_cnt;

wire          en_sus_I;
wire  [ 3:0]  keycode_II;
wire  [ 3:0]  arate_I;
wire  [ 3:0]  drate_I;
wire  [ 3:0]  rrate_I;
wire  [ 3:0]  sl_I;
wire          ksr_II;
wire  [ 1:0]  ksl_IV;

wire          keyon_I;
wire          eg_stop;

wire          amen_IV;
wire  [ 5:0]  tl_IV;
wire  [ 9:0]  eg_V;

wire          am_dep, vib_dep, rhy_en;

wire  [ 2:0]  fb_I;
wire  [ 1:0]  wavsel_I;
wire          op, con_I, op_out, con_out;

wire signed [12:0] op_result;

assign          write   = !cs_n && !wr_n;
assign          dout    = { ~irq_n, flag_A, flag_B, 5'd6 };
assign          eg_stop = 0;
assign          sample  = zero;

jtopl_mmr #(.OPL_TYPE(OPL_TYPE)) u_mmr(
    .rst        ( rst           ),
    .clk        ( clk           ),
    .cen        ( cen           ),
    .cenop      ( cenop         ),
    .din        ( din           ),
    .write      ( write         ),
    .addr       ( addr          ),
    .zero       ( zero          ),
    .group      ( group         ),
    .op         ( op            ),
    .slot       ( slot          ),
    .rhy_en     ( rhy_en        ),

    .value_A    ( value_A       ),
    .value_B    ( value_B       ),
    .load_A     ( load_A        ),
    .load_B     ( load_B        ),
    .flagen_A   ( flagen_A      ),
    .flagen_B   ( flagen_B      ),
    .clr_flag_A ( clr_flag_A    ),
    .clr_flag_B ( clr_flag_B    ),
    .flag_A     ( flag_A        ),
    .overflow_A ( overflow_A    ),

    .fnum_I     ( fnum_I        ),
    .block_I    ( block_I       ),
    .mul_II     ( mul_II        ),

    .wavsel_I   ( wavsel_I      ),

    .keyon_I    ( keyon_I       ),
    .en_sus_I   ( en_sus_I      ),
    .arate_I    ( arate_I       ),
    .drate_I    ( drate_I       ),
    .rrate_I    ( rrate_I       ),
    .sl_I       ( sl_I          ),
    .ks_II      ( ksr_II        ),
    .tl_IV      ( tl_IV         ),
    .ksl_IV     ( ksl_IV        ),
    .amen_IV    ( amen_IV       ),
    .viben_I    ( viben_I       ),

    .am_dep     ( am_dep        ),
    .vib_dep    ( vib_dep       ),

    .fb_I       ( fb_I          ),
    .con_I      ( con_I         )
);

jtopl_timers u_timers(
    .rst        ( rst           ),
    .clk        ( clk           ),
    .cenop      ( cenop         ),
    .zero       ( zero          ),
    .value_A    ( value_A       ),
    .value_B    ( value_B       ),
    .load_A     ( load_A        ),
    .load_B     ( load_B        ),
    .flagen_A   ( flagen_A      ),
    .flagen_B   ( flagen_B      ),
    .clr_flag_A ( clr_flag_A    ),
    .clr_flag_B ( clr_flag_B    ),
    .flag_A     ( flag_A        ),
    .flag_B     ( flag_B        ),
    .overflow_A ( overflow_A    ),
    .irq_n      ( irq_n         )
);

jtopl_lfo u_lfo(
    .rst        ( rst           ),
    .clk        ( clk           ),
    .cenop      ( cenop         ),
    .slot       ( slot          ),
    .vib_cnt    ( vib_cnt       ),
    .trem       ( trem          )
);

jtopl_pg u_pg(
    .rst        ( rst           ),
    .clk        ( clk           ),
    .cenop      ( cenop         ),
    .slot       ( slot          ),
    .rhy_en     ( rhy_en        ),

    .fnum_I     ( fnum_I        ),
    .block_I    ( block_I       ),

    .mul_II     ( mul_II        ),

    .vib_cnt    ( vib_cnt       ),
    .vib_dep    ( vib_dep       ),
    .viben_I    ( viben_I       ),

    .pg_rst_II  ( pg_rst_II     ),

    .keycode_II ( keycode_II    ),
    .phase_IV   ( phase_IV      )
);

jtopl_eg u_eg(
    .rst        ( rst           ),
    .clk        ( clk           ),
    .cenop      ( cenop         ),
    .zero       ( zero          ),
    .eg_stop    ( eg_stop       ),

    .en_sus_I   ( en_sus_I      ),
    .keycode_II ( keycode_II    ),
    .arate_I    ( arate_I       ),
    .drate_I    ( drate_I       ),
    .rrate_I    ( rrate_I       ),
    .sl_I       ( sl_I          ),
    .ksr_II     ( ksr_II        ),

    .keyon_I    ( keyon_I       ),

    .fnum_I     ( fnum_I        ),
    .block_I    ( block_I       ),
    .lfo_mod    ( trem          ),
    .amsen_IV   ( amen_IV       ),
    .ams_IV     ( am_dep        ),
    .tl_IV      ( tl_IV         ),
    .ksl_IV     ( ksl_IV        ),
    .eg_V       ( eg_V          ),
    .pg_rst_II  ( pg_rst_II     )
);

jtopl_op #(.OPL_TYPE(OPL_TYPE)) u_op(
    .rst        ( rst           ),
    .clk        ( clk           ),
    .cenop      ( cenop         ),


    .group      ( group         ),
    .op         ( op            ),
    .zero       ( zero          ),

    .pg_phase_I ( phase_IV      ),
    .eg_atten_II( eg_V          ),
    .fb_I       ( fb_I          ),
    .wavsel_I   ( wavsel_I      ),

    .con_I      ( con_I         ),
    .op_result  ( op_result     ),
    .op_out     ( op_out        ),
    .con_out    ( con_out       )
);

jtopl_acc u_acc(
    .rst        ( rst           ),
    .clk        ( clk           ),
    .cenop      ( cenop         ),
    .zero       ( zero          ),
    .op_result  ( op_result     ),
    .op         ( op_out        ),
    .con        ( con_out       ),
    .snd        ( snd           )
);

endmodule