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

Subversion Repositories usbhostslave

[/] [usbhostslave/] [trunk/] [RTL/] [hostController/] [hostcontroller.v] - Diff between revs 14 and 18

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

Rev 14 Rev 18
Line 113... Line 113...
`define OUT1_WAIT_DATA1_SENT 6'b011100
`define OUT1_WAIT_DATA1_SENT 6'b011100
`define OUT1_WAIT_SP_RDY1 6'b011101
`define OUT1_WAIT_SP_RDY1 6'b011101
`define OUT1_CLR_WEN1 6'b011110
`define OUT1_CLR_WEN1 6'b011110
`define OUT1_CLR_WEN2 6'b011111
`define OUT1_CLR_WEN2 6'b011111
`define OUT0_CHK_ISO 6'b100000
`define OUT0_CHK_ISO 6'b100000
 
`define DEL1 6'b100001
 
`define DEL2 6'b100010
 
 
reg [5:0]CurrState_hstCntrl, NextState_hstCntrl;
reg [5:0]CurrState_hstCntrl, NextState_hstCntrl;
 
 
 
 
// Machine: hstCntrl
// Machine: hstCntrl
Line 171... Line 173...
      next_sendPacketArbiterReq <= 1'b0;
      next_sendPacketArbiterReq <= 1'b0;
      NextState_hstCntrl <= `FIN;
      NextState_hstCntrl <= `FIN;
    end
    end
    `FIN:
    `FIN:
    begin
    begin
      next_transDone <= 1'b0;
 
      next_clearTXReq <= 1'b0;
      next_clearTXReq <= 1'b0;
      NextState_hstCntrl <= `TX_REQ;
      next_transDone <= 1'b0;
 
      //now wait for 'transReq' to clear
 
      NextState_hstCntrl <= `DEL1;
    end
    end
    `WAIT_GNT:
    `WAIT_GNT:
    begin
    begin
      if (sendPacketArbiterGnt == 1'b1)
      if (sendPacketArbiterGnt == 1'b1)
      begin
      begin
        NextState_hstCntrl <= `CHK_TYPE;
        NextState_hstCntrl <= `CHK_TYPE;
      end
      end
    end
    end
 
    `DEL1:
 
    begin
 
      NextState_hstCntrl <= `DEL2;
 
    end
 
    `DEL2:
 
    begin
 
      NextState_hstCntrl <= `TX_REQ;
 
    end
    `SETUP_CLR_SP_WEN1:
    `SETUP_CLR_SP_WEN1:
    begin
    begin
      next_sendPacketWEn <= 1'b0;
      next_sendPacketWEn <= 1'b0;
      NextState_hstCntrl <= `SETUP_WAIT_SETUP_SENT;
      NextState_hstCntrl <= `SETUP_WAIT_SETUP_SENT;
    end
    end

powered by: WebSVN 2.1.0

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