data/full_repos/permissive/153023217/mfp_ahb.v
1: b'%Error: data/full_repos/permissive/153023217/mfp_ahb.v:10: Cannot find include file: mfp_ahb_const.vh\n`include "mfp_ahb_const.vh" \n         ^~~~~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/153023217,data/full_repos/permissive/153023217/mfp_ahb_const.vh\n             data/full_repos/permissive/153023217,data/full_repos/permissive/153023217/mfp_ahb_const.vh.v\n             data/full_repos/permissive/153023217,data/full_repos/permissive/153023217/mfp_ahb_const.vh.sv\n             mfp_ahb_const.vh\n             mfp_ahb_const.vh.v\n             mfp_ahb_const.vh.sv\n             obj_dir/mfp_ahb_const.vh\n             obj_dir/mfp_ahb_const.vh.v\n             obj_dir/mfp_ahb_const.vh.sv\n%Error: data/full_repos/permissive/153023217/mfp_ahb.v:31: Define or directive not defined: \'`MFP_N_SW\'\n    input      [`MFP_N_SW-1 :0] IO_Switch,\n                ^~~~~~~~~\n%Error: data/full_repos/permissive/153023217/mfp_ahb.v:32: Define or directive not defined: \'`MFP_N_PB\'\n    input      [`MFP_N_PB-1 :0] IO_PB,\n                ^~~~~~~~~\n%Error: data/full_repos/permissive/153023217/mfp_ahb.v:33: Define or directive not defined: \'`MFP_N_LED\'\n    output     [`MFP_N_LED-1:0] IO_LED,\n                ^~~~~~~~~~\n%Error: data/full_repos/permissive/153023217/mfp_ahb.v:81: Define or directive not defined: \'`H_RAM_RESET_ADDR_Match\'\n  assign HSEL[0] = (HADDR[28:22] == `H_RAM_RESET_ADDR_Match);  \n                                    ^~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/153023217/mfp_ahb.v:81: syntax error, unexpected \')\', expecting TYPE-IDENTIFIER\n  assign HSEL[0] = (HADDR[28:22] == `H_RAM_RESET_ADDR_Match);  \n                                                           ^\n%Error: data/full_repos/permissive/153023217/mfp_ahb.v:82: Define or directive not defined: \'`H_RAM_ADDR_Match\'\n  assign HSEL[1] = (HADDR[28]    == `H_RAM_ADDR_Match);        \n                                    ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/153023217/mfp_ahb.v:82: syntax error, unexpected \')\', expecting TYPE-IDENTIFIER\n  assign HSEL[1] = (HADDR[28]    == `H_RAM_ADDR_Match);        \n                                                     ^\n%Error: data/full_repos/permissive/153023217/mfp_ahb.v:83: Define or directive not defined: \'`H_LED_ADDR_Match\'\n  assign HSEL[2] = (HADDR[28:22] == `H_LED_ADDR_Match);        \n                                    ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/153023217/mfp_ahb.v:83: syntax error, unexpected \')\', expecting TYPE-IDENTIFIER\n  assign HSEL[2] = (HADDR[28:22] == `H_LED_ADDR_Match);        \n                                                     ^\n%Error: data/full_repos/permissive/153023217/mfp_ahb.v:84: Define or directive not defined: \'`H_SEVEN_SEG_ADDR_Match\'\n  assign HSEL[3] = (HADDR[28:22] == `H_SEVEN_SEG_ADDR_Match);   \n                                    ^~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/153023217/mfp_ahb.v:84: syntax error, unexpected \')\', expecting TYPE-IDENTIFIER\n  assign HSEL[3] = (HADDR[28:22] == `H_SEVEN_SEG_ADDR_Match);   \n                                                           ^\n%Error: Exiting due to 12 error(s)\n'
module mfp_ahb
(
    input                       HCLK,
    input                       HRESETn,
    input      [ 31         :0] HADDR,
    input      [  2         :0] HBURST,
    input                       HMASTLOCK,
    input      [  3         :0] HPROT,
    input      [  2         :0] HSIZE,
    input      [  1         :0] HTRANS,
    input      [ 31         :0] HWDATA,
    input                       HWRITE,
    output     [ 31         :0] HRDATA,
    output                      HREADY,
    output                      HRESP,
    input                       SI_Endian,


    input      [`MFP_N_SW-1 :0] IO_Switch,
    input      [`MFP_N_PB-1 :0] IO_PB,
    output     [`MFP_N_LED-1:0] IO_LED,





    output [7:0] dispenout,
    output [7:0] disout 
);


  wire [31:0] HRDATA3,HRDATA2, HRDATA1, HRDATA0;
  wire [ 3:0] HSEL;
  reg  [ 3:0] HSEL_d;

  assign HREADY = 1;
  assign HRESP = 0;
	

  always @(posedge HCLK)
    HSEL_d <= HSEL;


  mfp_ahb_b_ram mfp_ahb_b_ram(HCLK, HRESETn, HADDR, HBURST, HMASTLOCK, HPROT, HSIZE,
                              HTRANS, HWDATA, HWRITE, HRDATA0, HSEL[0]);

  mfp_ahb_p_ram mfp_ahb_p_ram(HCLK, HRESETn, HADDR, HBURST, HMASTLOCK, HPROT, HSIZE,
                              HTRANS, HWDATA, HWRITE, HRDATA1, HSEL[1]);

  mfp_ahb_gpio mfp_ahb_gpio(HCLK, HRESETn, HADDR[5:2], HTRANS, HWDATA, HWRITE, HSEL[2], 
                            HRDATA2, IO_Switch, IO_PB, IO_LED);
							

  mfp_ahb_seven mfp_ahb_sevenseg(HCLK,HRESETn,HADDR[5:2],HTRANS,HWDATA,HWRITE,HSEL[3],dispenout,disout);

  ahb_decoder ahb_decoder(HADDR, HSEL);
  ahb_mux ahb_mux(HCLK, HSEL_d,HRDATA2, HRDATA1, HRDATA0, HRDATA);

endmodule
module mfp_ahb
(
    input                       HCLK,
    input                       HRESETn,
    input      [ 31         :0] HADDR,
    input      [  2         :0] HBURST,
    input                       HMASTLOCK,
    input      [  3         :0] HPROT,
    input      [  2         :0] HSIZE,
    input      [  1         :0] HTRANS,
    input      [ 31         :0] HWDATA,
    input                       HWRITE,
    output     [ 31         :0] HRDATA,
    output                      HREADY,
    output                      HRESP,
    input                       SI_Endian,


    input      [`MFP_N_SW-1 :0] IO_Switch,
    input      [`MFP_N_PB-1 :0] IO_PB,
    output     [`MFP_N_LED-1:0] IO_LED,





    output [7:0] dispenout,
    output [7:0] disout 
);



  wire [31:0] HRDATA3,HRDATA2, HRDATA1, HRDATA0;
  wire [ 3:0] HSEL;
  reg  [ 3:0] HSEL_d;

  assign HREADY = 1;
  assign HRESP = 0;
	

  always @(posedge HCLK)
    HSEL_d <= HSEL;


  mfp_ahb_b_ram mfp_ahb_b_ram(HCLK, HRESETn, HADDR, HBURST, HMASTLOCK, HPROT, HSIZE,
                              HTRANS, HWDATA, HWRITE, HRDATA0, HSEL[0]);

  mfp_ahb_p_ram mfp_ahb_p_ram(HCLK, HRESETn, HADDR, HBURST, HMASTLOCK, HPROT, HSIZE,
                              HTRANS, HWDATA, HWRITE, HRDATA1, HSEL[1]);

  mfp_ahb_gpio mfp_ahb_gpio(HCLK, HRESETn, HADDR[5:2], HTRANS, HWDATA, HWRITE, HSEL[2], 
                            HRDATA2, IO_Switch, IO_PB, IO_LED);
							

  mfp_ahb_seven mfp_ahb_sevenseg(HCLK,HRESETn,HADDR[5:2],HTRANS,HWDATA,HWRITE,HSEL[3],dispenout,disout);

  ahb_decoder ahb_decoder(HADDR, HSEL);
  ahb_mux ahb_mux(HCLK, HSEL_d,HRDATA2, HRDATA1, HRDATA0, HRDATA);

endmodule