亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? eth_receivecontrol.v

?? sopc builder 中網(wǎng)絡(luò)的eth_ocm核
?? V
字號:
//////////////////////////////////////////////////////////////////////////                                                              ////////  eth_receivecontrol.v                                        ////////                                                              ////////  This file is part of the Ethernet IP core project           ////////  http://www.opencores.org/projects/ethmac/                   ////////                                                              ////////  Author(s):                                                  ////////      - Igor Mohor (igorM@opencores.org)                      ////////                                                              ////////  All additional information is avaliable in the Readme.txt   ////////  file.                                                       ////////                                                              //////////////////////////////////////////////////////////////////////////////                                                              //////// Copyright (C) 2001 Authors                                   ////////                                                              //////// 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                     ////////                                                              ////////////////////////////////////////////////////////////////////////////// CVS Revision History//// $Log: eth_receivecontrol.v,v $// Revision 1.5  2003/01/22 13:49:26  tadejm// When control packets were received, they were ignored in some cases.//// Revision 1.4  2002/11/22 01:57:06  mohor// Rx Flow control fixed. CF flag added to the RX buffer descriptor. RxAbort// synchronized.//// Revision 1.3  2002/01/23 10:28:16  mohor// Link in the header changed.//// Revision 1.2  2001/10/19 08:43:51  mohor// eth_timescale.v changed to timescale.v This is done because of the// simulation of the few cores in a one joined project.//// Revision 1.1  2001/08/06 14:44:29  mohor// A define FPGA added to select between Artisan RAM (for ASIC) and Block Ram (For Virtex).// Include files fixed to contain no path.// File names and module names changed ta have a eth_ prologue in the name.// File eth_timescale.v is used to define timescale// All pin names on the top module are changed to contain _I, _O or _OE at the end.// Bidirectional signal MDIO is changed to three signals (Mdc_O, Mdi_I, Mdo_O// and Mdo_OE. The bidirectional signal must be created on the top level. This// is done due to the ASIC tools.//// Revision 1.1  2001/07/30 21:23:42  mohor// Directory structure changed. Files checked and joind together.//// Revision 1.1  2001/07/03 12:51:54  mohor// Initial release of the MAC Control module.//////////`include "timescale.v"module eth_receivecontrol (MTxClk, MRxClk, TxReset, RxReset, RxData, RxValid, RxStartFrm,                            RxEndFrm, RxFlow, ReceiveEnd, MAC, DlyCrcEn, TxDoneIn,                            TxAbortIn, TxStartFrmOut, ReceivedLengthOK, ReceivedPacketGood,                            TxUsedDataOutDetected, Pause, ReceivedPauseFrm, AddressOK,                            RxStatusWriteLatched_sync2, r_PassAll, SetPauseTimer                          );parameter Tp = 1;input       MTxClk;input       MRxClk;input       TxReset; input       RxReset; input [7:0] RxData;input       RxValid;input       RxStartFrm;input       RxEndFrm;input       RxFlow;input       ReceiveEnd;input [47:0]MAC;input       DlyCrcEn;input       TxDoneIn;input       TxAbortIn;input       TxStartFrmOut;input       ReceivedLengthOK;input       ReceivedPacketGood;input       TxUsedDataOutDetected;input       RxStatusWriteLatched_sync2;input       r_PassAll;output      Pause;output      ReceivedPauseFrm;output      AddressOK;output      SetPauseTimer;reg         Pause;reg         AddressOK;                // Multicast or unicast address detectedreg         TypeLengthOK;             // Type/Length field contains 0x8808reg         DetectionWindow;          // Detection of the PAUSE frame is possible within this windowreg         OpCodeOK;                 // PAUSE opcode detected (0x0001)reg  [2:0]  DlyCrcCnt;reg  [4:0]  ByteCnt;reg [15:0]  AssembledTimerValue;reg [15:0]  LatchedTimerValue;reg         ReceivedPauseFrm;reg         ReceivedPauseFrmWAddr;reg         PauseTimerEq0_sync1;reg         PauseTimerEq0_sync2;reg [15:0]  PauseTimer;reg         Divider2;reg  [5:0]  SlotTimer;wire [47:0] ReservedMulticast;        // 0x0180C2000001wire [15:0] TypeLength;               // 0x8808wire        ResetByteCnt;             // wire        IncrementByteCnt;         // wire        ByteCntEq0;               // ByteCnt = 0wire        ByteCntEq1;               // ByteCnt = 1wire        ByteCntEq2;               // ByteCnt = 2wire        ByteCntEq3;               // ByteCnt = 3wire        ByteCntEq4;               // ByteCnt = 4wire        ByteCntEq5;               // ByteCnt = 5wire        ByteCntEq12;              // ByteCnt = 12wire        ByteCntEq13;              // ByteCnt = 13wire        ByteCntEq14;              // ByteCnt = 14wire        ByteCntEq15;              // ByteCnt = 15wire        ByteCntEq16;              // ByteCnt = 16wire        ByteCntEq17;              // ByteCnt = 17wire        ByteCntEq18;              // ByteCnt = 18wire        DecrementPauseTimer;      // wire        PauseTimerEq0;            // wire        ResetSlotTimer;           // wire        IncrementSlotTimer;       // wire        SlotFinished;             // // Reserved multicast address and Type/Length for PAUSE controlassign ReservedMulticast = 48'h0180C2000001;assign TypeLength = 16'h8808;// Address Detection (Multicast or unicast)always @ (posedge MRxClk or posedge RxReset)begin  if(RxReset)    AddressOK <= #Tp 1'b0;  else  if(DetectionWindow & ByteCntEq0)    AddressOK <= #Tp  RxData[7:0] == ReservedMulticast[47:40] | RxData[7:0] == MAC[47:40];  else  if(DetectionWindow & ByteCntEq1)    AddressOK <= #Tp (RxData[7:0] == ReservedMulticast[39:32] | RxData[7:0] == MAC[39:32]) & AddressOK;  else  if(DetectionWindow & ByteCntEq2)    AddressOK <= #Tp (RxData[7:0] == ReservedMulticast[31:24] | RxData[7:0] == MAC[31:24]) & AddressOK;  else  if(DetectionWindow & ByteCntEq3)    AddressOK <= #Tp (RxData[7:0] == ReservedMulticast[23:16] | RxData[7:0] == MAC[23:16]) & AddressOK;  else  if(DetectionWindow & ByteCntEq4)    AddressOK <= #Tp (RxData[7:0] == ReservedMulticast[15:8]  | RxData[7:0] == MAC[15:8])  & AddressOK;  else  if(DetectionWindow & ByteCntEq5)    AddressOK <= #Tp (RxData[7:0] == ReservedMulticast[7:0]   | RxData[7:0] == MAC[7:0])   & AddressOK;  else  if(ReceiveEnd)    AddressOK <= #Tp 1'b0;end// TypeLengthOK (Type/Length Control frame detected)always @ (posedge MRxClk or posedge RxReset )begin  if(RxReset)    TypeLengthOK <= #Tp 1'b0;  else  if(DetectionWindow & ByteCntEq12)    TypeLengthOK <= #Tp ByteCntEq12 & (RxData[7:0] == TypeLength[15:8]);  else  if(DetectionWindow & ByteCntEq13)    TypeLengthOK <= #Tp ByteCntEq13 & (RxData[7:0] == TypeLength[7:0]) & TypeLengthOK;  else  if(ReceiveEnd)    TypeLengthOK <= #Tp 1'b0;end// Latch Control Frame Opcodealways @ (posedge MRxClk or posedge RxReset )begin  if(RxReset)    OpCodeOK <= #Tp 1'b0;  else  if(ByteCntEq16)    OpCodeOK <= #Tp 1'b0;  else    begin      if(DetectionWindow & ByteCntEq14)        OpCodeOK <= #Tp ByteCntEq14 & RxData[7:0] == 8'h00;          if(DetectionWindow & ByteCntEq15)        OpCodeOK <= #Tp ByteCntEq15 & RxData[7:0] == 8'h01 & OpCodeOK;    endend// ReceivedPauseFrmWAddr (+Address Check)always @ (posedge MRxClk or posedge RxReset )begin  if(RxReset)    ReceivedPauseFrmWAddr <= #Tp 1'b0;  else  if(ReceiveEnd)    ReceivedPauseFrmWAddr <= #Tp 1'b0;  else  if(ByteCntEq16 & TypeLengthOK & OpCodeOK & AddressOK)    ReceivedPauseFrmWAddr <= #Tp 1'b1;        end// Assembling 16-bit timer value from two 8-bit dataalways @ (posedge MRxClk or posedge RxReset )begin  if(RxReset)    AssembledTimerValue[15:0] <= #Tp 16'h0;  else  if(RxStartFrm)    AssembledTimerValue[15:0] <= #Tp 16'h0;  else    begin      if(DetectionWindow & ByteCntEq16)        AssembledTimerValue[15:8] <= #Tp RxData[7:0];      if(DetectionWindow & ByteCntEq17)        AssembledTimerValue[7:0] <= #Tp RxData[7:0];    endend// Detection window (while PAUSE detection is possible)always @ (posedge MRxClk or posedge RxReset )begin  if(RxReset)    DetectionWindow <= #Tp 1'b1;  else  if(ByteCntEq18)    DetectionWindow <= #Tp 1'b0;  else  if(ReceiveEnd)    DetectionWindow <= #Tp 1'b1;end// Latching Timer Valuealways @ (posedge MRxClk or posedge RxReset )begin  if(RxReset)    LatchedTimerValue[15:0] <= #Tp 16'h0;  else  if(DetectionWindow &  ReceivedPauseFrmWAddr &  ByteCntEq18)    LatchedTimerValue[15:0] <= #Tp AssembledTimerValue[15:0];  else  if(ReceiveEnd)    LatchedTimerValue[15:0] <= #Tp 16'h0;end// Delayed CEC counteralways @ (posedge MRxClk or posedge RxReset)begin  if(RxReset)    DlyCrcCnt <= #Tp 3'h0;  else  if(RxValid & RxEndFrm)    DlyCrcCnt <= #Tp 3'h0;  else  if(RxValid & ~RxEndFrm & ~DlyCrcCnt[2])    DlyCrcCnt <= #Tp DlyCrcCnt + 1'b1;end             assign ResetByteCnt = RxEndFrm;assign IncrementByteCnt = RxValid & DetectionWindow & ~ByteCntEq18 & (~DlyCrcEn | DlyCrcEn & DlyCrcCnt[2]);// Byte counteralways @ (posedge MRxClk or posedge RxReset)begin  if(RxReset)    ByteCnt[4:0] <= #Tp 5'h0;  else  if(ResetByteCnt)    ByteCnt[4:0] <= #Tp 5'h0;  else  if(IncrementByteCnt)    ByteCnt[4:0] <= #Tp ByteCnt[4:0] + 1'b1;endassign ByteCntEq0 = RxValid & ByteCnt[4:0] == 5'h0;assign ByteCntEq1 = RxValid & ByteCnt[4:0] == 5'h1;assign ByteCntEq2 = RxValid & ByteCnt[4:0] == 5'h2;assign ByteCntEq3 = RxValid & ByteCnt[4:0] == 5'h3;assign ByteCntEq4 = RxValid & ByteCnt[4:0] == 5'h4;assign ByteCntEq5 = RxValid & ByteCnt[4:0] == 5'h5;assign ByteCntEq12 = RxValid & ByteCnt[4:0] == 5'h0C;assign ByteCntEq13 = RxValid & ByteCnt[4:0] == 5'h0D;assign ByteCntEq14 = RxValid & ByteCnt[4:0] == 5'h0E;assign ByteCntEq15 = RxValid & ByteCnt[4:0] == 5'h0F;assign ByteCntEq16 = RxValid & ByteCnt[4:0] == 5'h10;assign ByteCntEq17 = RxValid & ByteCnt[4:0] == 5'h11;assign ByteCntEq18 = RxValid & ByteCnt[4:0] == 5'h12 & DetectionWindow;assign SetPauseTimer = ReceiveEnd & ReceivedPauseFrmWAddr & ReceivedPacketGood & ReceivedLengthOK & RxFlow;assign DecrementPauseTimer = SlotFinished & |PauseTimer;// PauseTimer[15:0]always @ (posedge MRxClk or posedge RxReset)begin  if(RxReset)    PauseTimer[15:0] <= #Tp 16'h0;  else  if(SetPauseTimer)    PauseTimer[15:0] <= #Tp LatchedTimerValue[15:0];  else  if(DecrementPauseTimer)    PauseTimer[15:0] <= #Tp PauseTimer[15:0] - 1'b1;endassign PauseTimerEq0 = ~(|PauseTimer[15:0]);// Synchronization of the pause timeralways @ (posedge MTxClk or posedge TxReset)begin  if(TxReset)    begin      PauseTimerEq0_sync1 <= #Tp 1'b1;      PauseTimerEq0_sync2 <= #Tp 1'b1;    end  else    begin      PauseTimerEq0_sync1 <= #Tp PauseTimerEq0;      PauseTimerEq0_sync2 <= #Tp PauseTimerEq0_sync1;    endend// Pause signal generationalways @ (posedge MTxClk or posedge TxReset)begin  if(TxReset)    Pause <= #Tp 1'b0;  else  if((TxDoneIn | TxAbortIn | ~TxUsedDataOutDetected) & ~TxStartFrmOut)    Pause <= #Tp RxFlow & ~PauseTimerEq0_sync2;end// Divider2 is used for incrementing the Slot timer every other clockalways @ (posedge MRxClk or posedge RxReset)begin  if(RxReset)    Divider2 <= #Tp 1'b0;  else  if(|PauseTimer[15:0] & RxFlow)    Divider2 <= #Tp ~Divider2;  else    Divider2 <= #Tp 1'b0;endassign ResetSlotTimer = RxReset;assign IncrementSlotTimer =  Pause & RxFlow & Divider2;// SlotTimeralways @ (posedge MRxClk or posedge RxReset)begin  if(RxReset)    SlotTimer[5:0] <= #Tp 6'h0;  else  if(ResetSlotTimer)    SlotTimer[5:0] <= #Tp 6'h0;  else  if(IncrementSlotTimer)    SlotTimer[5:0] <= #Tp SlotTimer[5:0] + 1'b1;endassign SlotFinished = &SlotTimer[5:0] & IncrementSlotTimer;  // Slot is 512 bits (64 bytes)// Pause Frame receivedalways @ (posedge MRxClk or posedge RxReset)begin  if(RxReset)    ReceivedPauseFrm <=#Tp 1'b0;  else  if(RxStatusWriteLatched_sync2 & r_PassAll | ReceivedPauseFrm & (~r_PassAll))    ReceivedPauseFrm <=#Tp 1'b0;  else  if(ByteCntEq16 & TypeLengthOK & OpCodeOK)    ReceivedPauseFrm <=#Tp 1'b1;        endendmodule

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲免费观看高清完整| 99re66热这里只有精品3直播 | 欧美肥胖老妇做爰| 亚洲男同1069视频| av亚洲精华国产精华精| 国产婷婷一区二区| 国产乱码字幕精品高清av| 欧美成人乱码一区二区三区| 美女视频一区二区三区| 日韩欧美第一区| 青青草国产成人99久久| 日韩一区二区中文字幕| 麻豆国产91在线播放| 91精品麻豆日日躁夜夜躁| 亚洲乱码精品一二三四区日韩在线 | 亚洲人成精品久久久久久| 久久电影国产免费久久电影| 精品少妇一区二区| 精品久久久网站| 欧美一级片在线看| 欧美激情一区二区| 91精品国产乱| 欧美一区二区三区影视| av在线这里只有精品| 99久免费精品视频在线观看| 亚洲色图在线视频| 亚洲柠檬福利资源导航| 136国产福利精品导航| 亚洲精品日韩专区silk| 色狠狠综合天天综合综合| 亚洲国产视频一区二区| 欧美三级一区二区| 亚洲午夜久久久久久久久电影网 | 曰韩精品一区二区| 在线电影院国产精品| 国产一区二区三区在线看麻豆| 日本一区二区三区国色天香| 成人av小说网| 国产视频一区二区三区在线观看| 99久久精品国产一区| 午夜影院在线观看欧美| 国产成+人+日韩+欧美+亚洲| 色天天综合色天天久久| 久久综合九色综合欧美亚洲| 一区二区视频在线| 国产精品一区二区三区网站| 国产成人激情av| 欧美午夜精品一区二区三区| 国产精品久久久久久久久果冻传媒| 一区二区三区在线观看动漫| 成人免费视频一区| 中文字幕制服丝袜一区二区三区 | 精品亚洲免费视频| 日韩一区二区中文字幕| 国产精品99久久久久久有的能看| 国产精品天美传媒沈樵| 国产精品久久久久久久久免费相片 | 欧美性色aⅴ视频一区日韩精品| 久久电影网站中文字幕| 国产传媒一区在线| 在线不卡的av| 久久国产夜色精品鲁鲁99| 久久国产剧场电影| 成人av资源在线观看| 国产精品美女一区二区三区| 亚洲人成网站在线| 不卡电影一区二区三区| 欧美二区在线观看| 欧美激情艳妇裸体舞| 色综合色狠狠综合色| yourporn久久国产精品| 午夜成人免费电影| 国产网红主播福利一区二区| 精品国产污网站| www欧美成人18+| 欧美美女激情18p| 欧美影院一区二区三区| 粉嫩欧美一区二区三区高清影视| 午夜一区二区三区在线观看| 国产精品久久久久一区| 精品国产电影一区二区| 欧美肥大bbwbbw高潮| 欧美日高清视频| 色偷偷一区二区三区| 成人黄色免费短视频| 国产精品主播直播| 日韩高清在线一区| 亚洲综合色视频| 亚洲国产综合色| 亚洲三级在线免费| 日本一区二区视频在线观看| 国产精品视频九色porn| 国产亚洲女人久久久久毛片| 日韩欧美的一区二区| 日韩欧美中文字幕制服| 欧美日韩精品一区二区三区蜜桃| av一二三不卡影片| 欧美影院午夜播放| 日本久久电影网| 99视频一区二区| 欧美性一级生活| 91高清视频在线| 在线亚洲人成电影网站色www| 成人性色生活片| 91亚洲永久精品| 国产a久久麻豆| 色噜噜久久综合| 欧洲精品一区二区| 欧美一区二区三区不卡| 精品国产一区二区三区四区四 | 91麻豆精品国产91久久久久| 欧美三级日韩在线| 色综合视频一区二区三区高清| 欧美日韩国产影片| 91精品国产综合久久精品| 在线观看91视频| 欧美mv和日韩mv国产网站| 久久老女人爱爱| 国产精品入口麻豆九色| 亚洲自拍偷拍网站| 蜜臀av一级做a爰片久久| 久久这里只有精品6| 亚洲色图欧美激情| 国产精品一区二区无线| 一区二区三区波多野结衣在线观看 | 精品动漫一区二区三区在线观看| 欧美变态tickling挠脚心| 欧美va在线播放| 国产视频一区不卡| 亚洲国产日产av| 久久国产精品露脸对白| 懂色av一区二区三区免费看| 欧美日韩国产一级| 精品少妇一区二区三区免费观看| 国产精品卡一卡二卡三| 热久久久久久久| 成人国产精品视频| 欧美喷潮久久久xxxxx| 国产精品久久久久天堂| 亚洲欧美另类综合偷拍| 老汉av免费一区二区三区| 99精品欧美一区| 色综合一区二区| 亚洲精品一线二线三线| 国产欧美日韩三级| 亚洲欧洲www| 日韩和欧美一区二区| 成人精品在线视频观看| 欧美巨大另类极品videosbest | 欧美国产日韩一二三区| 亚洲国产乱码最新视频| 日本sm残虐另类| 色婷婷av一区二区三区软件| 精品国产一区久久| 亚洲一区日韩精品中文字幕| 成人午夜精品在线| 欧美精品久久99| 亚洲欧美另类在线| av电影一区二区| 国产亚洲人成网站| 日韩国产欧美在线播放| 欧美亚洲丝袜传媒另类| 欧美极品另类videosde| 久久精品久久久精品美女| 91精品午夜视频| 亚洲综合清纯丝袜自拍| 国产成人在线免费观看| 久久久久久**毛片大全| 麻豆免费精品视频| 欧美日韩久久久一区| 午夜精品一区二区三区三上悠亚| 91一区二区在线| 亚洲午夜国产一区99re久久| 亚洲一区二区精品3399| 欧美在线观看一二区| 亚洲图片欧美激情| 91啪亚洲精品| 亚洲男同1069视频| 欧美在线免费观看视频| 亚洲成精国产精品女| 欧美日韩黄色一区二区| 婷婷六月综合亚洲| 日韩一级成人av| 国产真实精品久久二三区| 久久综合久色欧美综合狠狠| 国产91丝袜在线观看| 综合久久给合久久狠狠狠97色| 91在线无精精品入口| 奇米影视7777精品一区二区| 日韩精品最新网址| 国产一区二区三区美女| 国产情人综合久久777777| 91美女在线观看| 亚洲丶国产丶欧美一区二区三区| 日韩欧美精品在线视频| 国产九色sp调教91| 综合电影一区二区三区 | 亚洲www啪成人一区二区麻豆| 91精品久久久久久久91蜜桃| 国产一区二区视频在线|