Fix classifier logic

This commit is contained in:
Alex Forencich 2017-06-09 21:27:29 -07:00
parent 9a507b388d
commit 77211926f2
4 changed files with 10 additions and 4 deletions

View File

@ -240,7 +240,9 @@ assign arp_rx_eth_payload_tvalid = input_select_arp_reg & input_eth_payload_tval
assign arp_rx_eth_payload_tlast = input_eth_payload_tlast; assign arp_rx_eth_payload_tlast = input_eth_payload_tlast;
assign arp_rx_eth_payload_tuser = input_eth_payload_tuser; assign arp_rx_eth_payload_tuser = input_eth_payload_tuser;
assign input_eth_hdr_ready = arp_rx_eth_hdr_ready & ip_rx_eth_hdr_ready; assign input_eth_hdr_ready = (input_select_ip & ip_rx_eth_hdr_ready) |
(input_select_arp & arp_rx_eth_hdr_ready) |
(input_select_none);
assign input_eth_payload_tready = (input_select_ip_reg & ip_rx_eth_payload_tready) | assign input_eth_payload_tready = (input_select_ip_reg & ip_rx_eth_payload_tready) |
(input_select_arp_reg & arp_rx_eth_payload_tready) | (input_select_arp_reg & arp_rx_eth_payload_tready) |

View File

@ -250,7 +250,9 @@ assign arp_rx_eth_payload_tvalid = input_select_arp_reg & input_eth_payload_tval
assign arp_rx_eth_payload_tlast = input_eth_payload_tlast; assign arp_rx_eth_payload_tlast = input_eth_payload_tlast;
assign arp_rx_eth_payload_tuser = input_eth_payload_tuser; assign arp_rx_eth_payload_tuser = input_eth_payload_tuser;
assign input_eth_hdr_ready = arp_rx_eth_hdr_ready & ip_rx_eth_hdr_ready; assign input_eth_hdr_ready = (input_select_ip & ip_rx_eth_hdr_ready) |
(input_select_arp & arp_rx_eth_hdr_ready) |
(input_select_none);
assign input_eth_payload_tready = (input_select_ip_reg & ip_rx_eth_payload_tready) | assign input_eth_payload_tready = (input_select_ip_reg & ip_rx_eth_payload_tready) |
(input_select_arp_reg & arp_rx_eth_payload_tready) | (input_select_arp_reg & arp_rx_eth_payload_tready) |

View File

@ -344,7 +344,8 @@ assign output_ip_payload_tvalid = input_select_ip_reg & ip_rx_ip_payload_tvalid;
assign output_ip_payload_tlast = ip_rx_ip_payload_tlast; assign output_ip_payload_tlast = ip_rx_ip_payload_tlast;
assign output_ip_payload_tuser = ip_rx_ip_payload_tuser; assign output_ip_payload_tuser = ip_rx_ip_payload_tuser;
assign ip_rx_ip_hdr_ready = udp_rx_ip_hdr_ready & output_ip_hdr_ready; assign ip_rx_ip_hdr_ready = (input_select_udp & udp_rx_ip_hdr_ready) |
(input_select_ip & output_ip_hdr_ready);
assign ip_rx_ip_payload_tready = (input_select_udp_reg & udp_rx_ip_payload_tready) | assign ip_rx_ip_payload_tready = (input_select_udp_reg & udp_rx_ip_payload_tready) |
(input_select_ip_reg & output_ip_payload_tready); (input_select_ip_reg & output_ip_payload_tready);

View File

@ -356,7 +356,8 @@ assign output_ip_payload_tvalid = input_select_ip_reg & ip_rx_ip_payload_tvalid;
assign output_ip_payload_tlast = ip_rx_ip_payload_tlast; assign output_ip_payload_tlast = ip_rx_ip_payload_tlast;
assign output_ip_payload_tuser = ip_rx_ip_payload_tuser; assign output_ip_payload_tuser = ip_rx_ip_payload_tuser;
assign ip_rx_ip_hdr_ready = udp_rx_ip_hdr_ready & output_ip_hdr_ready; assign ip_rx_ip_hdr_ready = (input_select_udp & udp_rx_ip_hdr_ready) |
(input_select_ip & output_ip_hdr_ready);
assign ip_rx_ip_payload_tready = (input_select_udp_reg & udp_rx_ip_payload_tready) | assign ip_rx_ip_payload_tready = (input_select_udp_reg & udp_rx_ip_payload_tready) |
(input_select_ip_reg & output_ip_payload_tready); (input_select_ip_reg & output_ip_payload_tready);