data/full_repos/permissive/447976230/fpga/usrp3/top/n3xx/ip/aurora_64b66b_pcs_pma/aurora_phy_mmcm.v
1: b"%Error: data/full_repos/permissive/447976230/fpga/usrp3/top/n3xx/ip/aurora_64b66b_pcs_pma/aurora_phy_mmcm.v:19: Cannot find file containing module: 'BUFG'\n  BUFG txout_clock_net_i (\n  ^~~~\n        ... Looked in:\n             data/full_repos/permissive/447976230/fpga/usrp3/top/n3xx/ip/aurora_64b66b_pcs_pma,data/full_repos/permissive/447976230/BUFG\n             data/full_repos/permissive/447976230/fpga/usrp3/top/n3xx/ip/aurora_64b66b_pcs_pma,data/full_repos/permissive/447976230/BUFG.v\n             data/full_repos/permissive/447976230/fpga/usrp3/top/n3xx/ip/aurora_64b66b_pcs_pma,data/full_repos/permissive/447976230/BUFG.sv\n             BUFG\n             BUFG.v\n             BUFG.sv\n             obj_dir/BUFG\n             obj_dir/BUFG.v\n             obj_dir/BUFG.sv\n%Error: data/full_repos/permissive/447976230/fpga/usrp3/top/n3xx/ip/aurora_64b66b_pcs_pma/aurora_phy_mmcm.v:32: Cannot find file containing module: 'MMCME2_ADV'\n  MMCME2_ADV #(\n  ^~~~~~~~~~\n%Error: data/full_repos/permissive/447976230/fpga/usrp3/top/n3xx/ip/aurora_64b66b_pcs_pma/aurora_phy_mmcm.v:100: Cannot find file containing module: 'BUFG'\n  BUFG user_clk_net_i (\n  ^~~~\n%Error: data/full_repos/permissive/447976230/fpga/usrp3/top/n3xx/ip/aurora_64b66b_pcs_pma/aurora_phy_mmcm.v:104: Cannot find file containing module: 'BUFG'\n  BUFG sync_clock_net_i (\n  ^~~~\n%Error: Exiting due to 4 error(s)\n"
module aurora_phy_mmcm 
(
   input  aurora_tx_clk_unbuf,
   input  mmcm_reset,
   output user_clk,
   output sync_clk,
   output mmcm_locked
);

  wire mmcm_fb_clk;
  wire user_clk_i;
  wire sync_clk_i;
  wire aurora_tx_clk;

  BUFG txout_clock_net_i (
    .I(aurora_tx_clk_unbuf),
    .O(aurora_tx_clk)
  );

  localparam MULT        = 10;
  localparam DIVIDE      = 5;
  localparam CLK_PERIOD  = 3.103;
  localparam OUT0_DIVIDE = 4;
  localparam OUT1_DIVIDE = 2;
  localparam OUT2_DIVIDE = 6;
  localparam OUT3_DIVIDE = 8;

  MMCME2_ADV #(
    .BANDWIDTH            ("OPTIMIZED"),
    .CLKOUT4_CASCADE      ("FALSE"),
    .COMPENSATION         ("ZHOLD"),
    .STARTUP_WAIT         ("FALSE"),
    .DIVCLK_DIVIDE        (DIVIDE),
    .CLKFBOUT_MULT_F      (MULT),
    .CLKFBOUT_PHASE       (0.000),
    .CLKFBOUT_USE_FINE_PS ("FALSE"),
    .CLKOUT0_DIVIDE_F     (OUT0_DIVIDE),
    .CLKOUT0_PHASE        (0.000),
    .CLKOUT0_DUTY_CYCLE   (0.500),
    .CLKOUT0_USE_FINE_PS  ("FALSE"),
    .CLKIN1_PERIOD        (CLK_PERIOD),
    .CLKOUT1_DIVIDE       (OUT1_DIVIDE),
    .CLKOUT1_PHASE        (0.000),
    .CLKOUT1_DUTY_CYCLE   (0.500),
    .CLKOUT1_USE_FINE_PS  ("FALSE"),
    .CLKOUT2_DIVIDE       (OUT2_DIVIDE),
    .CLKOUT2_PHASE        (0.000),
    .CLKOUT2_DUTY_CYCLE   (0.500),
    .CLKOUT2_USE_FINE_PS  ("FALSE"),
    .CLKOUT3_DIVIDE       (OUT3_DIVIDE),
    .CLKOUT3_PHASE        (0.000),
    .CLKOUT3_DUTY_CYCLE   (0.500),
    .CLKOUT3_USE_FINE_PS  ("FALSE"),
    .REF_JITTER1          (0.010)
  ) mmcm_adv_inst (
    .CLKFBOUT            (mmcm_fb_clk),
    .CLKFBOUTB           (),
    .CLKOUT0             (user_clk_i),
    .CLKOUT0B            (),
    .CLKOUT1             (sync_clk_i),
    .CLKOUT1B            (),
    .CLKOUT2             (),
    .CLKOUT2B            (),
    .CLKOUT3             (),
    .CLKOUT3B            (),
    .CLKOUT4             (),
    .CLKOUT5             (),
    .CLKOUT6             (),

    .CLKFBIN             (mmcm_fb_clk),
    .CLKIN1              (aurora_tx_clk),
    .CLKIN2              (1'b0),

    .CLKINSEL            (1'b1),

    .DADDR               (7'h0),
    .DCLK                (1'b0),
    .DEN                 (1'b0),
    .DI                  (16'h0),
    .DO                  (),
    .DRDY                (),
    .DWE                 (1'b0),

    .PSCLK               (1'b0),
    .PSEN                (1'b0),
    .PSINCDEC            (1'b0),
    .PSDONE              (),

    .LOCKED              (mmcm_locked),
    .CLKINSTOPPED        (),
    .CLKFBSTOPPED        (),
    .PWRDWN              (1'b0),
    .RST                 (mmcm_reset)
  );

  BUFG user_clk_net_i (
     .I(user_clk_i),
     .O(user_clk)
  );
  BUFG sync_clock_net_i (
     .I(sync_clk_i),
     .O(sync_clk)
  );
endmodule
module aurora_phy_mmcm 
(
   input  aurora_tx_clk_unbuf,
   input  mmcm_reset,
   output user_clk,
   output sync_clk,
   output mmcm_locked
);


  wire mmcm_fb_clk;
  wire user_clk_i;
  wire sync_clk_i;
  wire aurora_tx_clk;

  BUFG txout_clock_net_i (
    .I(aurora_tx_clk_unbuf),
    .O(aurora_tx_clk)
  );

  localparam MULT        = 10;
  localparam DIVIDE      = 5;
  localparam CLK_PERIOD  = 3.103;
  localparam OUT0_DIVIDE = 4;
  localparam OUT1_DIVIDE = 2;
  localparam OUT2_DIVIDE = 6;
  localparam OUT3_DIVIDE = 8;

  MMCME2_ADV #(
    .BANDWIDTH            ("OPTIMIZED"),
    .CLKOUT4_CASCADE      ("FALSE"),
    .COMPENSATION         ("ZHOLD"),
    .STARTUP_WAIT         ("FALSE"),
    .DIVCLK_DIVIDE        (DIVIDE),
    .CLKFBOUT_MULT_F      (MULT),
    .CLKFBOUT_PHASE       (0.000),
    .CLKFBOUT_USE_FINE_PS ("FALSE"),
    .CLKOUT0_DIVIDE_F     (OUT0_DIVIDE),
    .CLKOUT0_PHASE        (0.000),
    .CLKOUT0_DUTY_CYCLE   (0.500),
    .CLKOUT0_USE_FINE_PS  ("FALSE"),
    .CLKIN1_PERIOD        (CLK_PERIOD),
    .CLKOUT1_DIVIDE       (OUT1_DIVIDE),
    .CLKOUT1_PHASE        (0.000),
    .CLKOUT1_DUTY_CYCLE   (0.500),
    .CLKOUT1_USE_FINE_PS  ("FALSE"),
    .CLKOUT2_DIVIDE       (OUT2_DIVIDE),
    .CLKOUT2_PHASE        (0.000),
    .CLKOUT2_DUTY_CYCLE   (0.500),
    .CLKOUT2_USE_FINE_PS  ("FALSE"),
    .CLKOUT3_DIVIDE       (OUT3_DIVIDE),
    .CLKOUT3_PHASE        (0.000),
    .CLKOUT3_DUTY_CYCLE   (0.500),
    .CLKOUT3_USE_FINE_PS  ("FALSE"),
    .REF_JITTER1          (0.010)
  ) mmcm_adv_inst (
    .CLKFBOUT            (mmcm_fb_clk),
    .CLKFBOUTB           (),
    .CLKOUT0             (user_clk_i),
    .CLKOUT0B            (),
    .CLKOUT1             (sync_clk_i),
    .CLKOUT1B            (),
    .CLKOUT2             (),
    .CLKOUT2B            (),
    .CLKOUT3             (),
    .CLKOUT3B            (),
    .CLKOUT4             (),
    .CLKOUT5             (),
    .CLKOUT6             (),

    .CLKFBIN             (mmcm_fb_clk),
    .CLKIN1              (aurora_tx_clk),
    .CLKIN2              (1'b0),

    .CLKINSEL            (1'b1),

    .DADDR               (7'h0),
    .DCLK                (1'b0),
    .DEN                 (1'b0),
    .DI                  (16'h0),
    .DO                  (),
    .DRDY                (),
    .DWE                 (1'b0),

    .PSCLK               (1'b0),
    .PSEN                (1'b0),
    .PSINCDEC            (1'b0),
    .PSDONE              (),

    .LOCKED              (mmcm_locked),
    .CLKINSTOPPED        (),
    .CLKFBSTOPPED        (),
    .PWRDWN              (1'b0),
    .RST                 (mmcm_reset)
  );

  BUFG user_clk_net_i (
     .I(user_clk_i),
     .O(user_clk)
  );
  BUFG sync_clock_net_i (
     .I(sync_clk_i),
     .O(sync_clk)
  );
endmodule