]> jspc29.x-matter.uni-frankfurt.de Git - trbnet.git/commitdiff
*** empty log message ***
authorhadeshyp <hadeshyp>
Fri, 11 May 2012 17:30:21 +0000 (17:30 +0000)
committerhadeshyp <hadeshyp>
Fri, 11 May 2012 17:30:21 +0000 (17:30 +0000)
gbe2_ecp3/trb_net16_gbe_main_control.vhd
gbe2_ecp3/trb_net16_gbe_response_constructor_SCTRL.vhd

index 30bb2b8a04810c6bda70d8a7a45180a96a660718..659c6fd1dc991d8781b79540164141a3e608aec3 100644 (file)
@@ -174,9 +174,18 @@ signal stats_ctr                    : integer range 0 to 15;
 signal stat_data                    : std_logic_vector(31 downto 0);
 signal stat_addr                    : std_logic_vector(7 downto 0);
 
+signal unique_id                    : std_logic_vector(63 downto 0);
+
+attribute syn_preserve : boolean;
+attribute syn_keep : boolean;
+attribute syn_keep of unique_id : signal is true;
+attribute syn_preserve of unique_id : signal is true;
+
 
 begin
 
+unique_id <= MC_UNIQUE_ID_IN;
+
 protocol_selector : trb_net16_gbe_protocol_selector
 port map(
        CLK                     => CLK,
@@ -601,7 +610,7 @@ MC_LINK_OK_OUT <= link_ok;
 --*************
 -- GENERATE MAC_ADDRESS
 --TODO: take the unique id from regio and generate a mac address
-g_MY_MAC <= x"efbeefbe0000";
+g_MY_MAC <= unique_id(15 downto 0) & x"efbe0000";
 --
 --*************
 
index 0af43f063bad2c693e7443ed6cf29eaf49bbeee6..90d1691f6d9f13866cde17da5cafdfd9b153cb4a 100644 (file)
@@ -199,7 +199,7 @@ TC_FRAME_SIZE_OUT  <= tx_data_ctr;
 TC_FRAME_TYPE_OUT  <= x"0008";
 TC_DEST_MAC_OUT    <= PS_SRC_MAC_ADDRESS_IN;
 TC_DEST_IP_OUT     <= PS_SRC_IP_ADDRESS_IN;
-TC_DEST_UDP_OUT    <= x"a861";
+TC_DEST_UDP_OUT    <= PS_SRC_UDP_PORT_IN; --x"a861";
 TC_SRC_MAC_OUT     <= g_MY_MAC;
 TC_SRC_IP_OUT      <= g_MY_IP;
 TC_SRC_UDP_OUT     <= x"a861";