data/full_repos/permissive/174323821/target/neptuno/jtframe_neptuno_joy.v
1: b"%Error: data/full_repos/permissive/174323821/target/neptuno/jtframe_neptuno_joy.v:77: Cannot find file containing module: 'MC2_HID'\nMC2_HID #( .CLK_SPEED( 48000 ) ) u_hid\n^~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/174323821/target/neptuno,data/full_repos/permissive/174323821/MC2_HID\n             data/full_repos/permissive/174323821/target/neptuno,data/full_repos/permissive/174323821/MC2_HID.v\n             data/full_repos/permissive/174323821/target/neptuno,data/full_repos/permissive/174323821/MC2_HID.sv\n             MC2_HID\n             MC2_HID.v\n             MC2_HID.sv\n             obj_dir/MC2_HID\n             obj_dir/MC2_HID.v\n             obj_dir/MC2_HID.sv\n%Error: Exiting due to 1 error(s)\n"
module jtframe_neptuno_joy(
  
    input         clk,
    input         reset,

    input  [5:0]  joy1_bus,
    input  [5:0]  joy2_bus,
    output        joy_select,
    
    input         ps2_kbd_clk,
    input         ps2_kbd_data,
    input  [3:0]  BUTTON_n,

    output [11:0] joy1,
    output [11:0] joy2,
    output [8:0]  controls,
    
    output [7:0]  osd,
    output        mc_reset,
    output        toggle_scandb

);

wire [11:0] inv1, inv2;
wire [ 7:0] osd_s;
wire [ 8:0] controls_s;
wire [ 3:0] btn_n_s;






assign joy1 = { inv1[11], inv1[7], inv1[10], inv1[9], inv1[8], inv1[5], inv1[4], inv1[6], inv1[3:0] };
assign joy2 = { inv2[11], inv2[7], inv2[10], inv2[9], inv2[8], inv2[5], inv2[4], inv2[6], inv2[3:0] };
assign controls = { controls_s[8:5], ~btn_n_s[2] | controls_s[4], controls_s[3:2], ~btn_n_s[1] | controls_s[1], ~btn_n_s[0] | controls_s[0] };

assign osd = osd_s;
assign mc_reset = ~btn_n_s[3];

`ifdef JTFRAME_CLK96 
    `define CLK_SPEED 96000
`else
    `define CLK_SPEED 48000
`endif

MC2_HID #( .CLK_SPEED( `CLK_SPEED ) ) u_hid
(
    .clk_i          ( clk          ),
    .reset_i        ( reset        ),
    .kbd_clk_i      ( ps2_kbd_clk  ),
    .kbd_dat_i      ( ps2_kbd_data ),
    
    .joystick_0_i   ( joy1_bus     ),
    .joystick_1_i   ( joy2_bus     ),
      

    .controls_o     ( controls_s   ),



    .player1_o      ( inv1         ),
    .player2_o      ( inv2         ),


    .osd_o          ( osd_s        ),
    .osd_enable_i   ( 1'b1         ),
    
    .toggle_scandb_o(toggle_scandb ),
    

    .sega_strobe_o  ( joy_select  ),


    .front_buttons_i( BUTTON_n    ),
    .front_buttons_o( btn_n_s     )
);

endmodule
module jtframe_neptuno_joy(
  
    input         clk,
    input         reset,

    input  [5:0]  joy1_bus,
    input  [5:0]  joy2_bus,
    output        joy_select,
    
    input         ps2_kbd_clk,
    input         ps2_kbd_data,
    input  [3:0]  BUTTON_n,

    output [11:0] joy1,
    output [11:0] joy2,
    output [8:0]  controls,
    
    output [7:0]  osd,
    output        mc_reset,
    output        toggle_scandb

);


wire [11:0] inv1, inv2;
wire [ 7:0] osd_s;
wire [ 8:0] controls_s;
wire [ 3:0] btn_n_s;






assign joy1 = { inv1[11], inv1[7], inv1[10], inv1[9], inv1[8], inv1[5], inv1[4], inv1[6], inv1[3:0] };
assign joy2 = { inv2[11], inv2[7], inv2[10], inv2[9], inv2[8], inv2[5], inv2[4], inv2[6], inv2[3:0] };
assign controls = { controls_s[8:5], ~btn_n_s[2] | controls_s[4], controls_s[3:2], ~btn_n_s[1] | controls_s[1], ~btn_n_s[0] | controls_s[0] };

assign osd = osd_s;
assign mc_reset = ~btn_n_s[3];

`ifdef JTFRAME_CLK96 
    `define CLK_SPEED 96000
`else
    `define CLK_SPEED 48000
`endif

MC2_HID #( .CLK_SPEED( `CLK_SPEED ) ) u_hid
(
    .clk_i          ( clk          ),
    .reset_i        ( reset        ),
    .kbd_clk_i      ( ps2_kbd_clk  ),
    .kbd_dat_i      ( ps2_kbd_data ),
    
    .joystick_0_i   ( joy1_bus     ),
    .joystick_1_i   ( joy2_bus     ),
      

    .controls_o     ( controls_s   ),



    .player1_o      ( inv1         ),
    .player2_o      ( inv2         ),


    .osd_o          ( osd_s        ),
    .osd_enable_i   ( 1'b1         ),
    
    .toggle_scandb_o(toggle_scandb ),
    

    .sega_strobe_o  ( joy_select  ),


    .front_buttons_i( BUTTON_n    ),
    .front_buttons_o( btn_n_s     )
);

endmodule