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

Subversion Repositories usbhostslave

[/] [usbhostslave/] [tags/] [rel_01_01/] [RTL/] [serialInterfaceEngine/] [siereceiver.v] - Diff between revs 2 and 5

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

Rev 2 Rev 5
Line 1... Line 1...
//--------------------------------------------------------------------------------------------------
 
//
//////////////////////////////////////////////////////////////////////
// Title       : No Title
////                                                              ////
// Design      : usbhostslave
//// SIEReceiver
// Author      : Steve
////                                                              ////
// Company     : Base2Designs
//// This file is part of the usbhostslave opencores effort.
//
//// http://www.opencores.org/cores/usbhostslave/                 ////
//-------------------------------------------------------------------------------------------------
////                                                              ////
 
//// Module Description:                                          ////
 
//// 
 
////                                                              ////
 
//// To Do:                                                       ////
 
//// 
 
////                                                              ////
 
//// Author(s):                                                   ////
 
//// - Steve Fielding, sfielding@base2designs.com                 ////
 
////                                                              ////
 
//////////////////////////////////////////////////////////////////////
 
////                                                              ////
 
//// Copyright (C) 2004 Steve Fielding and OPENCORES.ORG          ////
 
////                                                              ////
 
//// This source file may be used and distributed without         ////
 
//// restriction provided that this copyright statement is not    ////
 
//// removed from the file and that any derivative work contains  ////
 
//// the original copyright notice and the associated disclaimer. ////
 
////                                                              ////
 
//// This source file is free software; you can redistribute it   ////
 
//// and/or modify it under the terms of the GNU Lesser General   ////
 
//// Public License as published by the Free Software Foundation; ////
 
//// either version 2.1 of the License, or (at your option) any   ////
 
//// later version.                                               ////
 
////                                                              ////
 
//// This source is distributed in the hope that it will be       ////
 
//// useful, but WITHOUT ANY WARRANTY; without even the implied   ////
 
//// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR      ////
 
//// PURPOSE. See the GNU Lesser General Public License for more  ////
 
//// details.                                                     ////
 
////                                                              ////
 
//// You should have received a copy of the GNU Lesser General    ////
 
//// Public License along with this source; if not, download it   ////
 
//// from http://www.opencores.org/lgpl.shtml                     ////
 
////                                                              ////
 
//////////////////////////////////////////////////////////////////////
//
//
// File        : c:\projects\USBHostSlave\Aldec\usbhostslave\usbhostslave\compile\siereceiver.v
// $Id: siereceiver.v,v 1.2 2004-12-18 14:36:16 sfielding Exp $
// Generated   : 09/06/04 06:18:21
 
// From        : c:\projects\USBHostSlave\RTL\serialInterfaceEngine\siereceiver.asf
 
// By          : FSM2VHDL ver. 4.0.3.8
 
//
//
//-------------------------------------------------------------------------------------------------
// CVS Revision History
//
//
// Description : 
// $Log: not supported by cvs2svn $
//
//
//-------------------------------------------------------------------------------------------------
 
 
 
`timescale 1ns / 1ps
`timescale 1ns / 1ps
`include "usbSerialInterfaceEngine_h.v"
`include "usbSerialInterfaceEngine_h.v"
 
 
 
 
module SIEReceiver (RxBitsOut, RxWireDataIn, RxWireDataWEn, SIERxRdyOut, clk, connectState, processRxBitRdyIn, processRxBitsWEn, rst);
module SIEReceiver (clk, connectState, processRxBitRdyIn, processRxBitsWEn, rst, RxBitsOut, RxWireDataIn, RxWireDataWEn, SIERxRdyOut);
input   [1:0] RxWireDataIn;
 
input   RxWireDataWEn;
 
input   clk;
input   clk;
input   processRxBitRdyIn;
input   processRxBitRdyIn;
input   rst;
input   rst;
output  [1:0] RxBitsOut;
input   [1:0]RxWireDataIn;
output  SIERxRdyOut;
input   RxWireDataWEn;
output  [1:0] connectState;
output  [1:0] connectState;
output  processRxBitsWEn;
output  processRxBitsWEn;
 
output  [1:0]RxBitsOut;
 
output  SIERxRdyOut;
 
 
reg     [1:0] RxBitsOut, next_RxBitsOut;
 
wire    [1:0] RxWireDataIn;
 
wire    RxWireDataWEn;
 
reg     SIERxRdyOut, next_SIERxRdyOut;
 
wire    clk;
wire    clk;
reg     [1:0] connectState, next_connectState;
reg     [1:0] connectState, next_connectState;
wire    processRxBitRdyIn;
wire    processRxBitRdyIn;
reg     processRxBitsWEn, next_processRxBitsWEn;
reg     processRxBitsWEn, next_processRxBitsWEn;
wire    rst;
wire    rst;
 
reg     [1:0]RxBitsOut, next_RxBitsOut;
 
wire    [1:0]RxWireDataIn;
 
wire    RxWireDataWEn;
 
reg     SIERxRdyOut, next_SIERxRdyOut;
 
 
// diagram signals declarations
// diagram signals declarations
 
reg  [1:0]RxBits, next_RxBits;
reg  [3:0]RXStMachCurrState, next_RXStMachCurrState;
reg  [3:0]RXStMachCurrState, next_RXStMachCurrState;
reg  [7:0]RXWaitCount, next_RXWaitCount;
reg  [7:0]RXWaitCount, next_RXWaitCount;
reg  [1:0]RxBits, next_RxBits;
 
 
 
// BINARY ENCODED state machine: rcvr
// BINARY ENCODED state machine: rcvr
// State codes definitions:
// State codes definitions:
`define WAIT_FS_CONN_CHK_RX_BITS 4'b0000
`define WAIT_FS_CONN_CHK_RX_BITS 4'b0000
`define WAIT_LS_CONN_CHK_RX_BITS 4'b0001
`define WAIT_LS_CONN_CHK_RX_BITS 4'b0001
Line 62... Line 92...
`define WAIT_LS_DIS_PROC_RX_BITS 4'b1001
`define WAIT_LS_DIS_PROC_RX_BITS 4'b1001
`define WAIT_FS_DIS_PROC_RX_BITS2 4'b1010
`define WAIT_FS_DIS_PROC_RX_BITS2 4'b1010
`define WAIT_FS_DIS_CHK_RX_BITS2 4'b1011
`define WAIT_FS_DIS_CHK_RX_BITS2 4'b1011
`define FS_CONN_PROC_RX_BITS1 4'b1100
`define FS_CONN_PROC_RX_BITS1 4'b1100
 
 
reg [3:0] CurrState_rcvr;
reg [3:0]CurrState_rcvr, NextState_rcvr;
reg [3:0] NextState_rcvr;
 
 
 
 
 
//--------------------------------------------------------------------
 
// Machine: rcvr
// Machine: rcvr
//--------------------------------------------------------------------
 
//----------------------------------
 
// NextState logic (combinatorial)
// NextState logic (combinatorial)
//----------------------------------
always @ (RXWaitCount or processRxBitRdyIn or RxBits or RxWireDataWEn or RxWireDataIn or connectState or RXStMachCurrState or processRxBitsWEn or RxBitsOut or SIERxRdyOut or CurrState_rcvr)
always @ (RxWireDataIn or RxBits or RXWaitCount or RxWireDataWEn or RXStMachCurrState or processRxBitRdyIn or SIERxRdyOut or connectState or RxBitsOut or processRxBitsWEn or CurrState_rcvr)
begin
begin : rcvr_NextState
 
        NextState_rcvr <= CurrState_rcvr;
        NextState_rcvr <= CurrState_rcvr;
        // Set default values for outputs and signals
        // Set default values for outputs and signals
        next_RxBits <= RxBits;
 
        next_SIERxRdyOut <= SIERxRdyOut;
 
        next_RXStMachCurrState <= RXStMachCurrState;
 
        next_RXWaitCount <= RXWaitCount;
        next_RXWaitCount <= RXWaitCount;
        next_connectState <= connectState;
        next_connectState <= connectState;
        next_RxBitsOut <= RxBitsOut;
  next_RXStMachCurrState <= RXStMachCurrState;
        next_processRxBitsWEn <= processRxBitsWEn;
        next_processRxBitsWEn <= processRxBitsWEn;
 
  next_RxBitsOut <= RxBitsOut;
 
  next_RxBits <= RxBits;
 
  next_SIERxRdyOut <= SIERxRdyOut;
        case (CurrState_rcvr) // synopsys parallel_case full_case
        case (CurrState_rcvr) // synopsys parallel_case full_case
                `WAIT_BIT:
                `WAIT_BIT:
                        if ((RxWireDataWEn == 1'b1) && (RXStMachCurrState == `WAIT_LOW_SP_DISCONNECT_ST))
 
                        begin
                        begin
                                NextState_rcvr <= `WAIT_LS_DIS_CHK_RX_BITS;
      if ((RxWireDataWEn == 1'b1) && (RXStMachCurrState == `WAIT_LOW_SPEED_CONN_ST))
 
      begin
 
        NextState_rcvr <= `WAIT_LS_CONN_CHK_RX_BITS;
                                next_RxBits <= RxWireDataIn;
                                next_RxBits <= RxWireDataIn;
                                next_SIERxRdyOut <= 1'b0;
                                next_SIERxRdyOut <= 1'b0;
                        end
                        end
                        else if ((RxWireDataWEn == 1'b1) && (RXStMachCurrState == `CONNECT_FULL_SPEED_ST))
      else if ((RxWireDataWEn == 1'b1) && (RXStMachCurrState == `CONNECT_LOW_SPEED_ST))
                        begin
                        begin
                                NextState_rcvr <= `FS_CONN_CHK_RX_BITS1;
        NextState_rcvr <= `LS_CONN_CHK_RX_BITS;
                                next_RxBits <= RxWireDataIn;
                                next_RxBits <= RxWireDataIn;
                                next_SIERxRdyOut <= 1'b0;
                                next_SIERxRdyOut <= 1'b0;
                        end
                        end
                        else if ((RxWireDataWEn == 1'b1) && (RXStMachCurrState == `CONNECT_LOW_SPEED_ST))
      else if ((RxWireDataWEn == 1'b1) && (RXStMachCurrState == `CONNECT_FULL_SPEED_ST))
                        begin
                        begin
                                NextState_rcvr <= `LS_CONN_CHK_RX_BITS;
        NextState_rcvr <= `FS_CONN_CHK_RX_BITS1;
                                next_RxBits <= RxWireDataIn;
                                next_RxBits <= RxWireDataIn;
                                next_SIERxRdyOut <= 1'b0;
                                next_SIERxRdyOut <= 1'b0;
                        end
                        end
                        else if ((RxWireDataWEn == 1'b1) && (RXStMachCurrState == `WAIT_LOW_SPEED_CONN_ST))
      else if ((RxWireDataWEn == 1'b1) && (RXStMachCurrState == `WAIT_LOW_SP_DISCONNECT_ST))
                        begin
                        begin
                                NextState_rcvr <= `WAIT_LS_CONN_CHK_RX_BITS;
        NextState_rcvr <= `WAIT_LS_DIS_CHK_RX_BITS;
                                next_RxBits <= RxWireDataIn;
                                next_RxBits <= RxWireDataIn;
                                next_SIERxRdyOut <= 1'b0;
                                next_SIERxRdyOut <= 1'b0;
                        end
                        end
                        else if ((RxWireDataWEn == 1'b1) && (RXStMachCurrState == `WAIT_FULL_SPEED_CONN_ST))
      else if ((RxWireDataWEn == 1'b1) && (RXStMachCurrState == `WAIT_FULL_SP_DISCONNECT_ST))
                        begin
                        begin
                                NextState_rcvr <= `WAIT_FS_CONN_CHK_RX_BITS;
        NextState_rcvr <= `WAIT_FS_DIS_CHK_RX_BITS2;
                                next_RxBits <= RxWireDataIn;
                                next_RxBits <= RxWireDataIn;
                                next_SIERxRdyOut <= 1'b0;
                                next_SIERxRdyOut <= 1'b0;
                        end
                        end
                        else if ((RxWireDataWEn == 1'b1) && (RXStMachCurrState == `DISCONNECT_ST))
                        else if ((RxWireDataWEn == 1'b1) && (RXStMachCurrState == `DISCONNECT_ST))
                        begin
                        begin
                                NextState_rcvr <= `DISCNCT_CHK_RXBITS;
                                NextState_rcvr <= `DISCNCT_CHK_RXBITS;
                                next_RxBits <= RxWireDataIn;
                                next_RxBits <= RxWireDataIn;
                                next_SIERxRdyOut <= 1'b0;
                                next_SIERxRdyOut <= 1'b0;
                        end
                        end
                        else if ((RxWireDataWEn == 1'b1) && (RXStMachCurrState == `WAIT_FULL_SP_DISCONNECT_ST))
      else if ((RxWireDataWEn == 1'b1) && (RXStMachCurrState == `WAIT_FULL_SPEED_CONN_ST))
                        begin
                        begin
                                NextState_rcvr <= `WAIT_FS_DIS_CHK_RX_BITS2;
        NextState_rcvr <= `WAIT_FS_CONN_CHK_RX_BITS;
                                next_RxBits <= RxWireDataIn;
                                next_RxBits <= RxWireDataIn;
                                next_SIERxRdyOut <= 1'b0;
                                next_SIERxRdyOut <= 1'b0;
                        end
                        end
 
    end
                `START_SRX:
                `START_SRX:
                begin
                begin
                        next_RXStMachCurrState <= `DISCONNECT_ST;
                        next_RXStMachCurrState <= `DISCONNECT_ST;
                        next_RXWaitCount <= 8'h00;
                        next_RXWaitCount <= 8'h00;
                        next_connectState <= `DISCONNECT;
                        next_connectState <= `DISCONNECT;
Line 139... Line 167...
                        next_processRxBitsWEn <= 1'b0;
                        next_processRxBitsWEn <= 1'b0;
                        next_SIERxRdyOut <= 1'b1;
                        next_SIERxRdyOut <= 1'b1;
                        NextState_rcvr <= `WAIT_BIT;
                        NextState_rcvr <= `WAIT_BIT;
                end
                end
                `DISCNCT_CHK_RXBITS:
                `DISCNCT_CHK_RXBITS:
 
    begin
                        if (RxBits == `ZERO_ONE)
                        if (RxBits == `ZERO_ONE)
                        begin
                        begin
                                NextState_rcvr <= `WAIT_BIT;
                                NextState_rcvr <= `WAIT_BIT;
                                next_RXStMachCurrState <= `WAIT_LOW_SPEED_CONN_ST;
                                next_RXStMachCurrState <= `WAIT_LOW_SPEED_CONN_ST;
                                next_RXWaitCount <= 8'h00;
                                next_RXWaitCount <= 8'h00;
Line 158... Line 187...
                        else
                        else
                        begin
                        begin
                                NextState_rcvr <= `WAIT_BIT;
                                NextState_rcvr <= `WAIT_BIT;
                                next_SIERxRdyOut <= 1'b1;
                                next_SIERxRdyOut <= 1'b1;
                        end
                        end
 
    end
                `WAIT_FS_CONN_CHK_RX_BITS:
                `WAIT_FS_CONN_CHK_RX_BITS:
                begin
                begin
                        if (RxBits == `ONE_ZERO)
                        if (RxBits == `ONE_ZERO)
                        begin
                        begin
                          next_RXWaitCount <= RXWaitCount + 1'b1;
                          next_RXWaitCount <= RXWaitCount + 1'b1;
Line 171... Line 201...
                            next_RXStMachCurrState <= `CONNECT_FULL_SPEED_ST;
                            next_RXStMachCurrState <= `CONNECT_FULL_SPEED_ST;
                            end
                            end
                        end
                        end
                        else
                        else
                        begin
                        begin
                          next_RXStMachCurrState = `DISCONNECT_ST;
      next_RXStMachCurrState <= `DISCONNECT_ST;
                        end
                        end
                        NextState_rcvr <= `WAIT_BIT;
                        NextState_rcvr <= `WAIT_BIT;
                        next_SIERxRdyOut <= 1'b1;
                        next_SIERxRdyOut <= 1'b1;
                end
                end
                `WAIT_LS_CONN_CHK_RX_BITS:
                `WAIT_LS_CONN_CHK_RX_BITS:
Line 189... Line 219...
                            next_RXStMachCurrState <= `CONNECT_LOW_SPEED_ST;
                            next_RXStMachCurrState <= `CONNECT_LOW_SPEED_ST;
                            end
                            end
                        end
                        end
                        else
                        else
                        begin
                        begin
                          next_RXStMachCurrState = `DISCONNECT_ST;
      next_RXStMachCurrState <= `DISCONNECT_ST;
                        end
                        end
                        NextState_rcvr <= `WAIT_BIT;
                        NextState_rcvr <= `WAIT_BIT;
                        next_SIERxRdyOut <= 1'b1;
                        next_SIERxRdyOut <= 1'b1;
                end
                end
                `LS_CONN_CHK_RX_BITS:
                `LS_CONN_CHK_RX_BITS:
 
    begin
                        if (processRxBitRdyIn == 1'b1)
                        if (processRxBitRdyIn == 1'b1)
                        begin
                        begin
                                NextState_rcvr <= `LS_CONN_PROC_RX_BITS;
                                NextState_rcvr <= `LS_CONN_PROC_RX_BITS;
                                if (RxBits == `SE0)
                                if (RxBits == `SE0)
                                begin
                                begin
Line 206... Line 237...
                                  next_RXWaitCount <= 0;
                                  next_RXWaitCount <= 0;
                                end
                                end
                                next_processRxBitsWEn <= 1'b1;
                                next_processRxBitsWEn <= 1'b1;
                                next_RxBitsOut <= RxBits;
                                next_RxBitsOut <= RxBits;
                        end
                        end
 
    end
                `LS_CONN_PROC_RX_BITS:
                `LS_CONN_PROC_RX_BITS:
                begin
                begin
                        next_processRxBitsWEn <= 1'b0;
                        next_processRxBitsWEn <= 1'b0;
                        NextState_rcvr <= `WAIT_BIT;
                        NextState_rcvr <= `WAIT_BIT;
                        next_SIERxRdyOut <= 1'b1;
                        next_SIERxRdyOut <= 1'b1;
                end
                end
                `FS_CONN_CHK_RX_BITS1:
                `FS_CONN_CHK_RX_BITS1:
 
    begin
                        if (processRxBitRdyIn == 1'b1)
                        if (processRxBitRdyIn == 1'b1)
                        begin
                        begin
                                NextState_rcvr <= `FS_CONN_PROC_RX_BITS1;
                                NextState_rcvr <= `FS_CONN_PROC_RX_BITS1;
                                if (RxBits == `SE0)
                                if (RxBits == `SE0)
                                begin
                                begin
Line 226... Line 259...
                                next_processRxBitsWEn <= 1'b1;
                                next_processRxBitsWEn <= 1'b1;
                                next_RxBitsOut <= RxBits;
                                next_RxBitsOut <= RxBits;
                                next_SIERxRdyOut <= 1'b1;
                                next_SIERxRdyOut <= 1'b1;
                                //early indication of ready
                                //early indication of ready
                        end
                        end
 
    end
                `FS_CONN_PROC_RX_BITS1:
                `FS_CONN_PROC_RX_BITS1:
                begin
                begin
                        next_processRxBitsWEn <= 1'b0;
                        next_processRxBitsWEn <= 1'b0;
                        NextState_rcvr <= `WAIT_BIT;
                        NextState_rcvr <= `WAIT_BIT;
                        next_SIERxRdyOut <= 1'b1;
                        next_SIERxRdyOut <= 1'b1;
                end
                end
                `WAIT_LS_DIS_CHK_RX_BITS:
                `WAIT_LS_DIS_CHK_RX_BITS:
 
    begin
                        if (processRxBitRdyIn == 1'b1)
                        if (processRxBitRdyIn == 1'b1)
                        begin
                        begin
                                NextState_rcvr <= `WAIT_LS_DIS_PROC_RX_BITS;
                                NextState_rcvr <= `WAIT_LS_DIS_PROC_RX_BITS;
                                if (RxBits == `SE0)
                                if (RxBits == `SE0)
                                begin
                                begin
                                  next_RXWaitCount <= RXWaitCount + 1'b1;
                                  next_RXWaitCount <= RXWaitCount + 1'b1;
                                    if (RXWaitCount == `DISCONNECT_WAIT_TIME)
                                    if (RXWaitCount == `DISCONNECT_WAIT_TIME)
                                    begin
                                    begin
                                    next_RXStMachCurrState <= `DISCONNECT_ST;
                                    next_RXStMachCurrState <= `DISCONNECT_ST;
                                    next_connectState = `DISCONNECT;
        next_connectState <= `DISCONNECT;
                                    end
                                    end
                                end
                                end
                                else
                                else
                                begin
                                begin
                                  next_RXStMachCurrState = `CONNECT_LOW_SPEED_ST;
        next_RXStMachCurrState <= `CONNECT_LOW_SPEED_ST;
                                end
                                end
                                next_processRxBitsWEn <= 1'b1;
                                next_processRxBitsWEn <= 1'b1;
                        end
                        end
 
    end
                `WAIT_LS_DIS_PROC_RX_BITS:
                `WAIT_LS_DIS_PROC_RX_BITS:
                begin
                begin
                        next_processRxBitsWEn <= 1'b0;
                        next_processRxBitsWEn <= 1'b0;
                        NextState_rcvr <= `WAIT_BIT;
                        NextState_rcvr <= `WAIT_BIT;
                        next_SIERxRdyOut <= 1'b1;
                        next_SIERxRdyOut <= 1'b1;
Line 264... Line 300...
                        next_processRxBitsWEn <= 1'b0;
                        next_processRxBitsWEn <= 1'b0;
                        NextState_rcvr <= `WAIT_BIT;
                        NextState_rcvr <= `WAIT_BIT;
                        next_SIERxRdyOut <= 1'b1;
                        next_SIERxRdyOut <= 1'b1;
                end
                end
                `WAIT_FS_DIS_CHK_RX_BITS2:
                `WAIT_FS_DIS_CHK_RX_BITS2:
 
    begin
                        if (processRxBitRdyIn == 1'b1)
                        if (processRxBitRdyIn == 1'b1)
                        begin
                        begin
                                NextState_rcvr <= `WAIT_FS_DIS_PROC_RX_BITS2;
                                NextState_rcvr <= `WAIT_FS_DIS_PROC_RX_BITS2;
                                if (RxBits == `SE0)
                                if (RxBits == `SE0)
                                begin
                                begin
                                  next_RXWaitCount <= RXWaitCount + 1'b1;
                                  next_RXWaitCount <= RXWaitCount + 1'b1;
                                    if (RXWaitCount == `DISCONNECT_WAIT_TIME)
                                    if (RXWaitCount == `DISCONNECT_WAIT_TIME)
                                    begin
                                    begin
                                    next_RXStMachCurrState <= `DISCONNECT_ST;
                                    next_RXStMachCurrState <= `DISCONNECT_ST;
                                    next_connectState = `DISCONNECT;
        next_connectState <= `DISCONNECT;
                                    end
                                    end
                                end
                                end
                                else
                                else
                                begin
                                begin
                                  next_RXStMachCurrState = `CONNECT_FULL_SPEED_ST;
        next_RXStMachCurrState <= `CONNECT_FULL_SPEED_ST;
                                end
                                end
                                next_processRxBitsWEn <= 1'b1;
                                next_processRxBitsWEn <= 1'b1;
                        end
                        end
 
    end
        endcase
        endcase
end
end
 
 
//----------------------------------
 
// Current State Logic (sequential)
// Current State Logic (sequential)
//----------------------------------
 
always @ (posedge clk)
always @ (posedge clk)
begin : rcvr_CurrentState
begin
        if (rst)
        if (rst)
                CurrState_rcvr <= `START_SRX;
                CurrState_rcvr <= `START_SRX;
        else
        else
                CurrState_rcvr <= NextState_rcvr;
                CurrState_rcvr <= NextState_rcvr;
end
end
 
 
//----------------------------------
 
// Registered outputs logic
// Registered outputs logic
//----------------------------------
 
always @ (posedge clk)
always @ (posedge clk)
begin : rcvr_RegOutput
begin
        if (rst)
        if (rst)
        begin
        begin
                RXStMachCurrState <= `DISCONNECT_ST;
 
                RXWaitCount <= 8'h00;
 
                RxBits <= 2'b00;
 
                connectState <= `DISCONNECT;
                connectState <= `DISCONNECT;
                RxBitsOut <= 2'b00;
 
                processRxBitsWEn <= 1'b0;
                processRxBitsWEn <= 1'b0;
 
    RxBitsOut <= 2'b00;
                SIERxRdyOut <= 1'b1;
                SIERxRdyOut <= 1'b1;
 
    RXWaitCount <= 8'h00;
 
    RXStMachCurrState <= `DISCONNECT_ST;
 
    RxBits <= 2'b00;
        end
        end
        else
        else
        begin
        begin
                RXStMachCurrState <= next_RXStMachCurrState;
 
                RXWaitCount <= next_RXWaitCount;
 
                RxBits <= next_RxBits;
 
                connectState <= next_connectState;
                connectState <= next_connectState;
                RxBitsOut <= next_RxBitsOut;
 
                processRxBitsWEn <= next_processRxBitsWEn;
                processRxBitsWEn <= next_processRxBitsWEn;
 
    RxBitsOut <= next_RxBitsOut;
                SIERxRdyOut <= next_SIERxRdyOut;
                SIERxRdyOut <= next_SIERxRdyOut;
 
    RXWaitCount <= next_RXWaitCount;
 
    RXStMachCurrState <= next_RXStMachCurrState;
 
    RxBits <= next_RxBits;
        end
        end
end
end
 
 
endmodule
endmodule
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

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