SHARE
TWEET

Untitled

a guest Jun 21st, 2019 88 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. module top_comparator_v2(
  2.  
  3.     input clk_400Mhz,
  4.     input rst,
  5.  
  6.     input rx_core_clk,
  7.     input [63:0] rx_axis_tdata,
  8.     input [7:0] rx_axis_tkeep,
  9.     input rx_axis_tvalid,
  10.     input rx_axis_tlast,
  11.     input packet_new_pulse,
  12.  
  13.  
  14.     input condition_valid_in1,
  15.     input [15:0]condition_begin1,
  16.     input [15:0]condition_end1,
  17.     input [63:0]condition_pattern1,
  18.     output condition_match1,
  19.     output fail1,
  20.  
  21.  
  22.     input condition_valid_in2,
  23.     input [15:0]condition_begin2,
  24.     input [15:0]condition_end2,
  25.     input [63:0]condition_pattern2,
  26.     output condition_match2,
  27.     output fail2,
  28.  
  29.  
  30.     input condition_valid_in3,
  31.     input [15:0]condition_begin3,
  32.     input [15:0]condition_end3,
  33.     input [63:0]condition_pattern3,
  34.     output condition_match3,
  35.     output fail3,
  36.  
  37.     input condition_valid_in4,
  38.     input [15:0]condition_begin4,
  39.     input [15:0]condition_end4,
  40.     input [63:0]condition_pattern4,
  41.     output condition_match4,
  42.     output fail4
  43. );
  44.  
  45.  
  46. wire [63:0]rx_axis_tdata_out;
  47. wire rx_axis_tvalid_out;
  48. wire rx_axis_tlast_out;
  49. wire packet_new_pulse;
  50. wire [15:0]packet_begin;
  51. wire [15:0]packet_end;
  52.  
  53. mac_to_comparator mac_to_comparator(
  54.  
  55.     .rst(rst),
  56.     .rx_core_clk(rx_core_clk),
  57.     .clk_400Mhz(clk_400Mhz),
  58.     .rx_axis_tdata(rx_axis_tdata_out),
  59.     .rx_axis_tkeep(rx_axis_tkeep),
  60.     .rx_axis_tvalid(rx_axis_tvalid),
  61.     .rx_axis_tlast(rx_axis_tlast),
  62.  
  63.     .rx_axis_tdata_out(rx_axis_tdata_out),
  64.     .rx_axis_tvalid_out(rx_axis_tvalid_out),
  65.     .rx_axis_tlast_out(rx_axis_tlast_out),
  66.  
  67.     .packet_new_pulse(packet_new_pulse),
  68.     .packet_begin(packet_begin),
  69.     .packet_end(packet_end)
  70. );
  71.  
  72. one_condition pkt2(
  73.  
  74.     .clk_400Mhz(clk_400Mhz),
  75.     .rst(rst),
  76.     .rx_core_clk(rx_core_clk),
  77.     .rx_axis_tdata(rx_axis_tdata_out),
  78.     .rx_axis_tvalid(rx_axis_tvalid_out),
  79.     .rx_axis_tlast(rx_axis_tlast_out),
  80.     .packet_new_pulse(packet_new_pulse),
  81.     .packet_begin(packet_begin),
  82.     .packet_end(packet_end),
  83.  
  84.     .condition_valid_in(condition_valid_in2),
  85.     .condition_begin(condition_begin2),
  86.     .condition_end(condition_end2),
  87.     .condition_pattern(condition_pattern2),
  88.     .condition_match(condition_match2),
  89.     .fail(fail2)
  90.  
  91. );
  92.  
  93. one_condition pkt3(
  94.  
  95.     .clk_400Mhz(clk_400Mhz),
  96.     .rst(rst),
  97.     .rx_core_clk(rx_core_clk),
  98.     .rx_axis_tdata(rx_axis_tdata_out),
  99.     .rx_axis_tvalid(rx_axis_tvalid_out),
  100.     .rx_axis_tlast(rx_axis_tlast_out),
  101.     .packet_new_pulse(packet_new_pulse),
  102.     .packet_begin(packet_begin),
  103.     .packet_end(packet_end),
  104.  
  105.     .condition_valid_in(condition_valid_in3),
  106.     .condition_begin(condition_begin3),
  107.     .condition_end(condition_end3),
  108.     .condition_pattern(condition_pattern3),
  109.     .condition_match(condition_match3),
  110.     .fail(fail3)
  111.  
  112. );
  113.  
  114. one_condition pkt4(
  115.  
  116.     .clk_400Mhz(clk_400Mhz),
  117.     .rst(rst),
  118.     .rx_core_clk(rx_core_clk),
  119.     .rx_axis_tdata(rx_axis_tdata_out),
  120.     .rx_axis_tvalid(rx_axis_tvalid_out),
  121.     .rx_axis_tlast(rx_axis_tlast_out),
  122.     .packet_new_pulse(packet_new_pulse),
  123.     .packet_begin(packet_begin),
  124.     .packet_end(packet_end),
  125.  
  126.     .condition_valid_in(condition_valid_in4),
  127.     .condition_begin(condition_begin4),
  128.     .condition_end(condition_end4),
  129.     .condition_pattern(condition_pattern4),
  130.     .condition_match(condition_match4),
  131.     .fail(fail4)
  132.  
  133. );
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top