]> jspc29.x-matter.uni-frankfurt.de Git - trbnet.git/commitdiff
gk: fixed reversed dhcp ip address
authorYour Name <you@example.com>
Fri, 24 Nov 2017 09:32:28 +0000 (10:32 +0100)
committerJan Michel <j.michel@gsi.de>
Fri, 2 Feb 2018 11:06:18 +0000 (12:06 +0100)
gbe_trb/protocols/trb_net16_gbe_response_constructor_DHCP.vhd

index 10fac6453e388b4884de1abb8afda83696c78112..a62c40bbf7c87d7427ae8116e396c9b17461641a 100644 (file)
@@ -169,10 +169,12 @@ process(CLK)
 begin
   if rising_edge(CLK) then
     if (main_current_state = ESTABLISHED) then
-      my_ip(31 downto 24) <= saved_true_ip(7 downto 0);
-      my_ip(23 downto 16) <= saved_true_ip(15 downto 8);
-      my_ip(15 downto 8) <= saved_true_ip(23 downto 16);
-      my_ip(7 downto 0) <= saved_true_ip(31 downto 24);
+--       my_ip(31 downto 24) <= saved_true_ip(7 downto 0);
+--       my_ip(23 downto 16) <= saved_true_ip(15 downto 8);
+--       my_ip(15 downto 8) <= saved_true_ip(23 downto 16);
+--       my_ip(7 downto 0) <= saved_true_ip(31 downto 24);
+
+      my_ip <= saved_true_ip;
     elsif (CFG_IP_IN /= x"0000_0000") then
       my_ip(31 downto 24) <= CFG_IP_IN(7 downto 0);
       my_ip(23 downto 16) <= CFG_IP_IN(15 downto 8);