data/full_repos/permissive/136197078/hardware/ip/nt_recv_filter_mac/hdl/nt_recv_filter_mac_top.v
1: b'%Error: data/full_repos/permissive/136197078/hardware/ip/nt_recv_filter_mac/hdl/nt_recv_filter_mac_top.v:33: Cannot find include file: nt_recv_filter_mac_cpuregs_defines.vh\n`include "nt_recv_filter_mac_cpuregs_defines.vh" \n         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/136197078/hardware/ip/nt_recv_filter_mac/hdl,data/full_repos/permissive/136197078/nt_recv_filter_mac_cpuregs_defines.vh\n             data/full_repos/permissive/136197078/hardware/ip/nt_recv_filter_mac/hdl,data/full_repos/permissive/136197078/nt_recv_filter_mac_cpuregs_defines.vh.v\n             data/full_repos/permissive/136197078/hardware/ip/nt_recv_filter_mac/hdl,data/full_repos/permissive/136197078/nt_recv_filter_mac_cpuregs_defines.vh.sv\n             nt_recv_filter_mac_cpuregs_defines.vh\n             nt_recv_filter_mac_cpuregs_defines.vh.v\n             nt_recv_filter_mac_cpuregs_defines.vh.sv\n             obj_dir/nt_recv_filter_mac_cpuregs_defines.vh\n             obj_dir/nt_recv_filter_mac_cpuregs_defines.vh.v\n             obj_dir/nt_recv_filter_mac_cpuregs_defines.vh.sv\n%Error: data/full_repos/permissive/136197078/hardware/ip/nt_recv_filter_mac/hdl/nt_recv_filter_mac_top.v:83: Define or directive not defined: \'`CPUREG_CTRL_ADDR_DST_HI_BITS\'\n  wire [`CPUREG_CTRL_ADDR_DST_HI_BITS] cpureg_ctrl_addr_dst_hi;\n        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/136197078/hardware/ip/nt_recv_filter_mac/hdl/nt_recv_filter_mac_top.v:83: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n  wire [`CPUREG_CTRL_ADDR_DST_HI_BITS] cpureg_ctrl_addr_dst_hi;\n                                     ^\n%Error: data/full_repos/permissive/136197078/hardware/ip/nt_recv_filter_mac/hdl/nt_recv_filter_mac_top.v:84: Define or directive not defined: \'`CPUREG_CTRL_ADDR_DST_LO_BITS\'\n  wire [`CPUREG_CTRL_ADDR_DST_LO_BITS] cpureg_ctrl_addr_dst_lo;\n        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/136197078/hardware/ip/nt_recv_filter_mac/hdl/nt_recv_filter_mac_top.v:84: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n  wire [`CPUREG_CTRL_ADDR_DST_LO_BITS] cpureg_ctrl_addr_dst_lo;\n                                     ^\n%Error: data/full_repos/permissive/136197078/hardware/ip/nt_recv_filter_mac/hdl/nt_recv_filter_mac_top.v:85: Define or directive not defined: \'`CPUREG_CTRL_ADDR_MASK_DST_HI_BITS\'\n  wire [`CPUREG_CTRL_ADDR_MASK_DST_HI_BITS] cpureg_ctrl_addr_mask_dst_hi;\n        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/136197078/hardware/ip/nt_recv_filter_mac/hdl/nt_recv_filter_mac_top.v:85: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n  wire [`CPUREG_CTRL_ADDR_MASK_DST_HI_BITS] cpureg_ctrl_addr_mask_dst_hi;\n                                          ^\n%Error: data/full_repos/permissive/136197078/hardware/ip/nt_recv_filter_mac/hdl/nt_recv_filter_mac_top.v:86: Define or directive not defined: \'`CPUREG_CTRL_ADDR_MASK_DST_LO_BITS\'\n  wire [`CPUREG_CTRL_ADDR_MASK_DST_LO_BITS] cpureg_ctrl_addr_mask_dst_lo;\n        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/136197078/hardware/ip/nt_recv_filter_mac/hdl/nt_recv_filter_mac_top.v:86: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n  wire [`CPUREG_CTRL_ADDR_MASK_DST_LO_BITS] cpureg_ctrl_addr_mask_dst_lo;\n                                          ^\n%Error: Exiting due to 9 error(s)\n'
module nt_recv_filter_mac_top # (
  parameter C_AXI_BASE_ADDRESS = 32'h00000000
)
(

  input wire           clk,
  input wire           rstn,
  input wire           rst_sw,


  input wire [31:0]    s_axi_ctrl_awaddr,
  input wire [2:0]     s_axi_ctrl_awprot,
  input wire           s_axi_ctrl_awvalid,
  output wire          s_axi_ctrl_awready,
  input wire [31:0]    s_axi_ctrl_wdata,
  input wire [3:0]     s_axi_ctrl_wstrb,
  input wire           s_axi_ctrl_wvalid,
  output wire          s_axi_ctrl_wready,
  output wire [1:0]    s_axi_ctrl_bresp,
  output wire          s_axi_ctrl_bvalid,
  input wire           s_axi_ctrl_bready,
  input wire [31:0]    s_axi_ctrl_araddr,
  input wire [2:0]     s_axi_ctrl_arprot,
  output wire          s_axi_ctrl_arready,
  input wire           s_axi_ctrl_arvalid,
  output wire [31:0]   s_axi_ctrl_rdata,
  output wire [1:0]    s_axi_ctrl_rresp,
  output wire          s_axi_ctrl_rvalid,
  input wire           s_axi_ctrl_rready,


  input wire [63:0]    s_axis_tdata,
  input wire [7:0]     s_axis_tkeep,
  input wire           s_axis_tvalid,
  input wire           s_axis_tlast,
  input wire [52:0]    s_axis_tuser,
  output wire          s_axis_tready,


  output wire [63:0]   m_axis_tdata,
  output wire [7:0]    m_axis_tkeep,
  output wire          m_axis_tvalid,
  output wire          m_axis_tlast,
  output wire [52:0]   m_axis_tuser,
  input wire           m_axis_tready
);


  wire [`CPUREG_CTRL_ADDR_DST_HI_BITS] cpureg_ctrl_addr_dst_hi;
  wire [`CPUREG_CTRL_ADDR_DST_LO_BITS] cpureg_ctrl_addr_dst_lo;
  wire [`CPUREG_CTRL_ADDR_MASK_DST_HI_BITS] cpureg_ctrl_addr_mask_dst_hi;
  wire [`CPUREG_CTRL_ADDR_MASK_DST_LO_BITS] cpureg_ctrl_addr_mask_dst_lo;


  nt_recv_filter_mac_cpuregs # (
    .C_AXI_BASE_ADDRESS(C_AXI_BASE_ADDRESS)
  ) nt_recv_filter_mac_cpuregs_inst (
    .clk(clk),
    .rstn(rstn),

    .s_axi_awaddr(s_axi_ctrl_awaddr),
    .s_axi_awport(s_axi_ctrl_awprot),
    .s_axi_awvalid(s_axi_ctrl_awvalid),
    .s_axi_awready(s_axi_ctrl_awready),
    .s_axi_wdata(s_axi_ctrl_wdata),
    .s_axi_wstrb(s_axi_ctrl_wstrb),
    .s_axi_wvalid(s_axi_ctrl_wvalid),
    .s_axi_wready(s_axi_ctrl_wready),
    .s_axi_bresp(s_axi_ctrl_bresp),
    .s_axi_bvalid(s_axi_ctrl_bvalid),
    .s_axi_bready(s_axi_ctrl_bready),
    .s_axi_araddr(s_axi_ctrl_araddr),
    .s_axi_arprot(s_axi_ctrl_arprot),
    .s_axi_arready(s_axi_ctrl_arready),
    .s_axi_arvalid(s_axi_ctrl_arvalid),
    .s_axi_rdata(s_axi_ctrl_rdata),
    .s_axi_rresp(s_axi_ctrl_rresp),
    .s_axi_rvalid(s_axi_ctrl_rvalid),
    .s_axi_rready(s_axi_ctrl_rready),

    .cpureg_ctrl_addr_dst_hi_o(cpureg_ctrl_addr_dst_hi),
    .cpureg_ctrl_addr_dst_lo_o(cpureg_ctrl_addr_dst_lo),
    .cpureg_ctrl_addr_mask_dst_hi_o(cpureg_ctrl_addr_mask_dst_hi),
    .cpureg_ctrl_addr_mask_dst_lo_o(cpureg_ctrl_addr_mask_dst_lo)
  );


  wire [47:0] addr_dst;
  assign addr_dst = (cpureg_ctrl_addr_dst_hi << 32) | cpureg_ctrl_addr_dst_lo;

  wire [47:0] addr_mask_dst;
  assign addr_mask_dst = (cpureg_ctrl_addr_mask_dst_hi << 32)
                          | cpureg_ctrl_addr_mask_dst_lo;


  nt_recv_filter_mac nt_recv_filter_mac_inst (
    .clk(clk),
    .rstn(rstn),
    .rst_sw(rst_sw),

    .s_axis_tdata(s_axis_tdata),
    .s_axis_tkeep(s_axis_tkeep),
    .s_axis_tvalid(s_axis_tvalid),
    .s_axis_tlast(s_axis_tlast),
    .s_axis_tuser(s_axis_tuser),
    .s_axis_tready(s_axis_tready),

    .m_axis_tdata(m_axis_tdata),
    .m_axis_tkeep(m_axis_tkeep),
    .m_axis_tvalid(m_axis_tvalid),
    .m_axis_tlast(m_axis_tlast),
    .m_axis_tuser(m_axis_tuser),
    .m_axis_tready(m_axis_tready),

    .addr_dst_i(addr_dst),
    .addr_mask_dst_i(addr_mask_dst)
  );

endmodule
module nt_recv_filter_mac_top # (
  parameter C_AXI_BASE_ADDRESS = 32'h00000000
)
(

  input wire           clk,
  input wire           rstn,
  input wire           rst_sw,


  input wire [31:0]    s_axi_ctrl_awaddr,
  input wire [2:0]     s_axi_ctrl_awprot,
  input wire           s_axi_ctrl_awvalid,
  output wire          s_axi_ctrl_awready,
  input wire [31:0]    s_axi_ctrl_wdata,
  input wire [3:0]     s_axi_ctrl_wstrb,
  input wire           s_axi_ctrl_wvalid,
  output wire          s_axi_ctrl_wready,
  output wire [1:0]    s_axi_ctrl_bresp,
  output wire          s_axi_ctrl_bvalid,
  input wire           s_axi_ctrl_bready,
  input wire [31:0]    s_axi_ctrl_araddr,
  input wire [2:0]     s_axi_ctrl_arprot,
  output wire          s_axi_ctrl_arready,
  input wire           s_axi_ctrl_arvalid,
  output wire [31:0]   s_axi_ctrl_rdata,
  output wire [1:0]    s_axi_ctrl_rresp,
  output wire          s_axi_ctrl_rvalid,
  input wire           s_axi_ctrl_rready,


  input wire [63:0]    s_axis_tdata,
  input wire [7:0]     s_axis_tkeep,
  input wire           s_axis_tvalid,
  input wire           s_axis_tlast,
  input wire [52:0]    s_axis_tuser,
  output wire          s_axis_tready,


  output wire [63:0]   m_axis_tdata,
  output wire [7:0]    m_axis_tkeep,
  output wire          m_axis_tvalid,
  output wire          m_axis_tlast,
  output wire [52:0]   m_axis_tuser,
  input wire           m_axis_tready
);



  wire [`CPUREG_CTRL_ADDR_DST_HI_BITS] cpureg_ctrl_addr_dst_hi;
  wire [`CPUREG_CTRL_ADDR_DST_LO_BITS] cpureg_ctrl_addr_dst_lo;
  wire [`CPUREG_CTRL_ADDR_MASK_DST_HI_BITS] cpureg_ctrl_addr_mask_dst_hi;
  wire [`CPUREG_CTRL_ADDR_MASK_DST_LO_BITS] cpureg_ctrl_addr_mask_dst_lo;


  nt_recv_filter_mac_cpuregs # (
    .C_AXI_BASE_ADDRESS(C_AXI_BASE_ADDRESS)
  ) nt_recv_filter_mac_cpuregs_inst (
    .clk(clk),
    .rstn(rstn),

    .s_axi_awaddr(s_axi_ctrl_awaddr),
    .s_axi_awport(s_axi_ctrl_awprot),
    .s_axi_awvalid(s_axi_ctrl_awvalid),
    .s_axi_awready(s_axi_ctrl_awready),
    .s_axi_wdata(s_axi_ctrl_wdata),
    .s_axi_wstrb(s_axi_ctrl_wstrb),
    .s_axi_wvalid(s_axi_ctrl_wvalid),
    .s_axi_wready(s_axi_ctrl_wready),
    .s_axi_bresp(s_axi_ctrl_bresp),
    .s_axi_bvalid(s_axi_ctrl_bvalid),
    .s_axi_bready(s_axi_ctrl_bready),
    .s_axi_araddr(s_axi_ctrl_araddr),
    .s_axi_arprot(s_axi_ctrl_arprot),
    .s_axi_arready(s_axi_ctrl_arready),
    .s_axi_arvalid(s_axi_ctrl_arvalid),
    .s_axi_rdata(s_axi_ctrl_rdata),
    .s_axi_rresp(s_axi_ctrl_rresp),
    .s_axi_rvalid(s_axi_ctrl_rvalid),
    .s_axi_rready(s_axi_ctrl_rready),

    .cpureg_ctrl_addr_dst_hi_o(cpureg_ctrl_addr_dst_hi),
    .cpureg_ctrl_addr_dst_lo_o(cpureg_ctrl_addr_dst_lo),
    .cpureg_ctrl_addr_mask_dst_hi_o(cpureg_ctrl_addr_mask_dst_hi),
    .cpureg_ctrl_addr_mask_dst_lo_o(cpureg_ctrl_addr_mask_dst_lo)
  );


  wire [47:0] addr_dst;
  assign addr_dst = (cpureg_ctrl_addr_dst_hi << 32) | cpureg_ctrl_addr_dst_lo;

  wire [47:0] addr_mask_dst;
  assign addr_mask_dst = (cpureg_ctrl_addr_mask_dst_hi << 32)
                          | cpureg_ctrl_addr_mask_dst_lo;


  nt_recv_filter_mac nt_recv_filter_mac_inst (
    .clk(clk),
    .rstn(rstn),
    .rst_sw(rst_sw),

    .s_axis_tdata(s_axis_tdata),
    .s_axis_tkeep(s_axis_tkeep),
    .s_axis_tvalid(s_axis_tvalid),
    .s_axis_tlast(s_axis_tlast),
    .s_axis_tuser(s_axis_tuser),
    .s_axis_tready(s_axis_tready),

    .m_axis_tdata(m_axis_tdata),
    .m_axis_tkeep(m_axis_tkeep),
    .m_axis_tvalid(m_axis_tvalid),
    .m_axis_tlast(m_axis_tlast),
    .m_axis_tuser(m_axis_tuser),
    .m_axis_tready(m_axis_tready),

    .addr_dst_i(addr_dst),
    .addr_mask_dst_i(addr_mask_dst)
  );

endmodule