OpenCores
URL https://opencores.org/ocsvn/srdydrdy_lib/srdydrdy_lib/trunk

Subversion Repositories srdydrdy_lib

[/] [srdydrdy_lib/] [trunk/] [examples/] [bridge/] [rtl/] [fib_lookup_fsm.v] - Diff between revs 13 and 15

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 13 Rev 15
Line 72... Line 72...
 
 
      case (1'b1)
      case (1'b1)
        state[s_idle] :
        state[s_idle] :
          begin
          begin
            // DA lookup
            // DA lookup
 
            if (lpp_srdy)
 
              begin
            if (lpp_data[`PAR_MACDA] & `MULTICAST)
            if (lpp_data[`PAR_MACDA] & `MULTICAST)
              begin
              begin
                // flood the packet, don't bother to do DA lookup
                // flood the packet, don't bother to do DA lookup
                lout_data = ~source_port_mask;
                lout_data = ~source_port_mask;
                lout_srdy = 1;
                lout_srdy = 1;
                if (lout_drdy)
                if (lout_drdy)
                  nxt_state = ns_sa_lookup;
                  nxt_state = ns_sa_lookup;
              end
              end
            else if (lpp_srdy)
                else
              begin
              begin
                hf_in = lpp_data[`PAR_MACDA];
                hf_in = lpp_data[`PAR_MACDA];
                ft_rd_en = 1;
                ft_rd_en = 1;
                nxt_state = ns_da_lookup;
                nxt_state = ns_da_lookup;
 
                  end // else: !if(lpp_data[`PAR_MACDA] & `MULTICAST)
              end
              end
          end
          end
 
 
        // results from DA lookup are available this
        // results from DA lookup are available this
        // state.  Make forwarding decision at this
        // state.  Make forwarding decision at this

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.