From ebbd9477b9b46c0b3f0b0fee38c24becd37a2ee0 Mon Sep 17 00:00:00 2001
From: Daniel van der Schuur <schuur@astron.nl>
Date: Wed, 28 Sep 2016 12:06:28 +0000
Subject: [PATCH] -Added eth_statistics.vhd  . Author,Purpose,Description  .
 Empty architecture

---
 libraries/io/eth/hdllib.cfg                  |  1 +
 libraries/io/eth/src/vhdl/eth_statistics.vhd | 58 ++++++++++++++++++++
 2 files changed, 59 insertions(+)
 create mode 100644 libraries/io/eth/src/vhdl/eth_statistics.vhd

diff --git a/libraries/io/eth/hdllib.cfg b/libraries/io/eth/hdllib.cfg
index 1a3baef26f..3c998bbbdd 100644
--- a/libraries/io/eth/hdllib.cfg
+++ b/libraries/io/eth/hdllib.cfg
@@ -21,6 +21,7 @@ synth_files =
     src/vhdl/eth_control.vhd
     src/vhdl/eth_ihl_to_20.vhd
     src/vhdl/eth.vhd
+    src/vhdl/eth_statistics.vhd
     
 test_bench_files = 
     tb/vhdl/tb_eth_checksum.vhd
diff --git a/libraries/io/eth/src/vhdl/eth_statistics.vhd b/libraries/io/eth/src/vhdl/eth_statistics.vhd
new file mode 100644
index 0000000000..3647085944
--- /dev/null
+++ b/libraries/io/eth/src/vhdl/eth_statistics.vhd
@@ -0,0 +1,58 @@
+-------------------------------------------------------------------------------
+--
+-- Copyright (C) 2016
+-- ASTRON (Netherlands Institute for Radio Astronomy) <http://www.astron.nl/>
+-- P.O.Box 2, 7990 AA Dwingeloo, The Netherlands
+--
+-- This program is free software: you can redistribute it and/or modify
+-- it under the terms of the GNU General Public License as published by
+-- the Free Software Foundation, either version 3 of the License, or
+-- (at your option) any later version.
+--
+-- This program is distributed in the hope that it will be useful,
+-- but WITHOUT ANY WARRANTY; without even the implied warranty of
+-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+-- GNU General Public License for more details.
+--
+-- You should have received a copy of the GNU General Public License
+-- along with this program.  If not, see <http://www.gnu.org/licenses/>.
+--
+-------------------------------------------------------------------------------
+
+-- Author:
+-- . Daniel van der Schuur
+-- Purpose:
+-- . Provide Ethernet statistics from serial input
+-- Description:
+-- . The packets on the serial input are disassembled (header stripped) and
+--   the following statistics are provided:
+--   . Entity outputs:
+--     . Packet count
+--     . Packet length
+--   . Transcript window output:
+--     . Packet header field names&values
+
+LIBRARY IEEE, common_lib, work, technology_lib, dp_lib, tech_tse_lib;
+USE IEEE.STD_LOGIC_1164.ALL;
+USE IEEE.NUMERIC_STD.ALL;
+USE common_lib.common_pkg.ALL;
+USE dp_lib.dp_stream_pkg.ALL;
+USE common_lib.common_field_pkg.ALL;
+USE tech_tse_lib.tech_tse_pkg.ALL;
+USE technology_lib.technology_select_pkg.ALL;
+
+ENTITY eth_statistics IS
+  PORT (
+    serial_in : IN  STD_LOGIC;
+
+    pkt_cnt   : OUT NATURAL;
+    pkt_len   : OUT NATURAL
+  );
+END eth_statistics;
+
+
+ARCHITECTURE str OF eth_statistics IS
+
+BEGIN
+
+END str;
-- 
GitLab