pkg: Add configuration_t to trashernet

This commit is contained in:
Markus Koch 2022-05-13 20:36:52 +02:00
parent 4b4e5fdbfa
commit 8f3420bd54
2 changed files with 5 additions and 4 deletions

View File

@ -52,10 +52,6 @@ architecture rtl of top_mac_test is
others => false
);
type configuration_t is record
mac_address : mac_addr_t;
end record configuration_t;
constant ETH_CONFIG : configuration_t := (
mac_address => (x"00", x"ff", x"ff", x"11", x"22", x"33")
);

View File

@ -29,6 +29,11 @@ package trashernet_pkg is
-- IP specific types
subtype ip_addr_t is byte_vector(0 to 3);
-- Configuration interface
type configuration_t is record
mac_address : mac_addr_t; -- MAC address of this node
end record configuration_t;
-- PHY interface
type phy_in_t is record
tx_data : byte; -- TX Data