Rename types package to general trashernet package
This commit is contained in:
parent
1bff61d24a
commit
9addd97b57
@ -12,7 +12,7 @@ library ieee;
|
||||
use ieee.std_logic_1164.all;
|
||||
|
||||
library trashernet;
|
||||
use trashernet.trashernet_types.all;
|
||||
use trashernet.trashernet_pkg.all;
|
||||
|
||||
package bench_pkg is
|
||||
procedure send_data(signal rx_p : inout std_logic; constant data : in byte_vector);
|
||||
|
@ -16,7 +16,7 @@ use ieee.numeric_std.all;
|
||||
use work.bench_pkg.all;
|
||||
|
||||
library trashernet;
|
||||
use trashernet.trashernet_types.all;
|
||||
use trashernet.trashernet_pkg.all;
|
||||
|
||||
entity bench_trashernet_mac is
|
||||
end entity bench_trashernet_mac;
|
||||
|
@ -16,7 +16,7 @@ use ieee.numeric_std.all;
|
||||
use work.bench_pkg.all;
|
||||
|
||||
library trashernet;
|
||||
use trashernet.trashernet_types.all;
|
||||
use trashernet.trashernet_pkg.all;
|
||||
|
||||
entity bench_trashernet_phy is
|
||||
end entity bench_trashernet_phy;
|
||||
|
@ -13,7 +13,7 @@ library ieee;
|
||||
use ieee.std_logic_1164.all;
|
||||
use ieee.numeric_std.all;
|
||||
|
||||
use work.trashernet_types.all;
|
||||
use work.trashernet_pkg.all;
|
||||
|
||||
entity trashernet_mac is
|
||||
port(
|
||||
|
@ -14,7 +14,7 @@ use ieee.std_logic_1164.all;
|
||||
use ieee.numeric_std.all;
|
||||
use ieee.math_real.all;
|
||||
|
||||
use work.trashernet_types.all;
|
||||
use work.trashernet_pkg.all;
|
||||
|
||||
entity trashernet_phy is
|
||||
generic(
|
||||
|
@ -13,7 +13,7 @@ library ieee;
|
||||
use ieee.std_logic_1164.all;
|
||||
use ieee.numeric_std.all;
|
||||
|
||||
use work.trashernet_types.all;
|
||||
use work.trashernet_pkg.all;
|
||||
|
||||
entity trashernet_phy_cdc is
|
||||
generic(
|
||||
|
@ -11,14 +11,14 @@
|
||||
library ieee;
|
||||
use ieee.std_logic_1164.all;
|
||||
|
||||
package trashernet_types is
|
||||
package trashernet_pkg is
|
||||
subtype byte is std_logic_vector(7 downto 0);
|
||||
type byte_vector is array (natural range <>) of byte;
|
||||
subtype mac_addr_t is byte_vector(0 to 5);
|
||||
subtype ip_addr_t is byte_vector(0 to 3);
|
||||
subtype ethertype_t is byte_vector(0 to 1);
|
||||
end package trashernet_types;
|
||||
end package trashernet_pkg;
|
||||
|
||||
package body trashernet_types is
|
||||
package body trashernet_pkg is
|
||||
|
||||
end package body trashernet_types;
|
||||
end package body trashernet_pkg;
|
Loading…
Reference in New Issue
Block a user