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

Subversion Repositories qaz_libs

[/] [qaz_libs/] [trunk/] [PCIe/] [src/] [RIFFA/] [riffa_chnl_rx_fsm.sv] - Diff between revs 32 and 35

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

Rev 32 Rev 35
Line 28... Line 28...
module
module
  riffa_chnl_rx_fsm
  riffa_chnl_rx_fsm
  (
  (
    input   rx,
    input   rx,
    input   rx_data_valid,
    input   rx_data_valid,
 
    input   rx_ready,
    output  rx_ack,
    output  rx_ack,
    output  rx_done,
    output  rx_done,
 
 
    input   reset,
    input   reset,
    input   clk
    input   clk
Line 65... Line 66...
      IDLE:     if(rx)
      IDLE:     if(rx)
                  next_state <= ACK;
                  next_state <= ACK;
                else
                else
                  next_state <= IDLE;
                  next_state <= IDLE;
 
 
      ACK:      next_state <= RX;
      // ACK:      next_state <= RX;
 
      ACK:      if(rx_ready)
 
                  next_state <= RX;
 
                else
 
                  next_state <= ACK;
 
 
      RX:       if(rx)
      RX:       if(rx)
                  next_state <= RX;
                  next_state <= RX;
                else if(rx_data_valid)
                else if(rx_data_valid)
                  next_state <= PENDING;
                  next_state <= PENDING;

powered by: WebSVN 2.1.0

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