pkg: Add configuration_t to trashernet
This commit is contained in:
parent
4b4e5fdbfa
commit
8f3420bd54
@ -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")
|
||||
);
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user