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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? eth_transmitcontrol.v

?? sopc builder 中網絡的eth_ocm核
?? V
字號:
//////////////////////////////////////////////////////////////////////////                                                              ////////  eth_transmitcontrol.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_transmitcontrol.v,v $// Revision 1.6  2002/11/21 00:16:14  mohor// When TxUsedData and CtrlMux occur at the same time, byte counter needs// to be incremented by 2. Signal IncrementByteCntBy2 added for that reason.//// Revision 1.5  2002/11/19 17:37:32  mohor// When control frame (PAUSE) was sent, status was written in the// eth_wishbone module and both TXB and TXC interrupts were set. Fixed.// Only TXC interrupt is set.//// Revision 1.4  2002/01/23 10:28:16  mohor// Link in the header changed.//// Revision 1.3  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.2  2001/09/11 14:17:00  mohor// Few little NCSIM warnings fixed.//// 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_transmitcontrol (MTxClk, TxReset, TxUsedDataIn, TxUsedDataOut, TxDoneIn, TxAbortIn,                             TxStartFrmIn, TPauseRq, TxUsedDataOutDetected, TxFlow, DlyCrcEn,                             TxPauseTV, MAC, TxCtrlStartFrm, TxCtrlEndFrm, SendingCtrlFrm, CtrlMux,                             ControlData, WillSendControlFrame, BlockTxDone                           );parameter Tp = 1;input         MTxClk;input         TxReset;input         TxUsedDataIn;input         TxUsedDataOut;input         TxDoneIn;input         TxAbortIn;input         TxStartFrmIn;input         TPauseRq;input         TxUsedDataOutDetected;input         TxFlow;input         DlyCrcEn;input  [15:0] TxPauseTV;input  [47:0] MAC;output        TxCtrlStartFrm;output        TxCtrlEndFrm;output        SendingCtrlFrm;output        CtrlMux;output [7:0]  ControlData;output        WillSendControlFrame;output        BlockTxDone;reg           SendingCtrlFrm;reg           CtrlMux;reg           WillSendControlFrame;reg    [3:0]  DlyCrcCnt;reg    [5:0]  ByteCnt;reg           ControlEnd_q;reg    [7:0]  MuxedCtrlData;reg           TxCtrlStartFrm;reg           TxCtrlStartFrm_q;reg           TxCtrlEndFrm;reg    [7:0]  ControlData;reg           TxUsedDataIn_q;reg           BlockTxDone;wire          IncrementDlyCrcCnt;wire          ResetByteCnt;wire          IncrementByteCnt;wire          ControlEnd;wire          IncrementByteCntBy2;wire          EnableCnt;// A command for Sending the control frame is active (latched)always @ (posedge MTxClk or posedge TxReset)begin  if(TxReset)    WillSendControlFrame <= #Tp 1'b0;  else  if(TxCtrlEndFrm & CtrlMux)    WillSendControlFrame <= #Tp 1'b0;  else  if(TPauseRq & TxFlow)    WillSendControlFrame <= #Tp 1'b1;end// Generation of the transmit control packet start framealways @ (posedge MTxClk or posedge TxReset)begin  if(TxReset)    TxCtrlStartFrm <= #Tp 1'b0;  else  if(TxUsedDataIn_q & CtrlMux)    TxCtrlStartFrm <= #Tp 1'b0;  else  if(WillSendControlFrame & ~TxUsedDataOut & (TxDoneIn | TxAbortIn | TxStartFrmIn | (~TxUsedDataOutDetected)))    TxCtrlStartFrm <= #Tp 1'b1;end// Generation of the transmit control packet end framealways @ (posedge MTxClk or posedge TxReset)begin  if(TxReset)    TxCtrlEndFrm <= #Tp 1'b0;  else  if(ControlEnd | ControlEnd_q)    TxCtrlEndFrm <= #Tp 1'b1;  else    TxCtrlEndFrm <= #Tp 1'b0;end// Generation of the multiplexer signal (controls muxes for switching between// normal and control packets)always @ (posedge MTxClk or posedge TxReset)begin  if(TxReset)    CtrlMux <= #Tp 1'b0;  else  if(WillSendControlFrame & ~TxUsedDataOut)    CtrlMux <= #Tp 1'b1;  else  if(TxDoneIn)    CtrlMux <= #Tp 1'b0;end// Generation of the Sending Control Frame signal (enables padding and CRC)always @ (posedge MTxClk or posedge TxReset)begin  if(TxReset)    SendingCtrlFrm <= #Tp 1'b0;  else  if(WillSendControlFrame & TxCtrlStartFrm)    SendingCtrlFrm <= #Tp 1'b1;  else  if(TxDoneIn)    SendingCtrlFrm <= #Tp 1'b0;endalways @ (posedge MTxClk or posedge TxReset)begin  if(TxReset)    TxUsedDataIn_q <= #Tp 1'b0;  else    TxUsedDataIn_q <= #Tp TxUsedDataIn;end// Generation of the signal that will block sending the Done signal to the eth_wishbone module// While sending the control framealways @ (posedge MTxClk or posedge TxReset)begin  if(TxReset)    BlockTxDone <= #Tp 1'b0;  else  if(TxCtrlStartFrm)    BlockTxDone <= #Tp 1'b1;  else  if(TxStartFrmIn)    BlockTxDone <= #Tp 1'b0;endalways @ (posedge MTxClk)begin  ControlEnd_q     <= #Tp ControlEnd;  TxCtrlStartFrm_q <= #Tp TxCtrlStartFrm;endassign IncrementDlyCrcCnt = CtrlMux & TxUsedDataIn &  ~DlyCrcCnt[2];// Delayed CRC counteralways @ (posedge MTxClk or posedge TxReset)begin  if(TxReset)    DlyCrcCnt <= #Tp 4'h0;  else  if(ResetByteCnt)    DlyCrcCnt <= #Tp 4'h0;  else  if(IncrementDlyCrcCnt)    DlyCrcCnt <= #Tp DlyCrcCnt + 1'b1;end             assign ResetByteCnt = TxReset | (~TxCtrlStartFrm & (TxDoneIn | TxAbortIn));assign IncrementByteCnt = CtrlMux & (TxCtrlStartFrm & ~TxCtrlStartFrm_q & ~TxUsedDataIn | TxUsedDataIn & ~ControlEnd);assign IncrementByteCntBy2 = CtrlMux & TxCtrlStartFrm & (~TxCtrlStartFrm_q) & TxUsedDataIn;     // When TxUsedDataIn and CtrlMux are set at the same timeassign EnableCnt = (~DlyCrcEn | DlyCrcEn & (&DlyCrcCnt[1:0]));// Byte counteralways @ (posedge MTxClk or posedge TxReset)begin  if(TxReset)    ByteCnt <= #Tp 6'h0;  else  if(ResetByteCnt)    ByteCnt <= #Tp 6'h0;  else  if(IncrementByteCntBy2 & EnableCnt)    ByteCnt <= #Tp (ByteCnt[5:0] ) + 2'h2;  else  if(IncrementByteCnt & EnableCnt)    ByteCnt <= #Tp (ByteCnt[5:0] ) + 1'b1;endassign ControlEnd = ByteCnt[5:0] == 6'h22;// Control data generation (goes to the TxEthMAC module)always @ (ByteCnt or DlyCrcEn or MAC or TxPauseTV or DlyCrcCnt)begin  case(ByteCnt)    6'h0:    if(~DlyCrcEn | DlyCrcEn & (&DlyCrcCnt[1:0]))               MuxedCtrlData[7:0] = 8'h01;                   // Reserved Multicast Address             else						 	 MuxedCtrlData[7:0] = 8'h0;    6'h2:      MuxedCtrlData[7:0] = 8'h80;    6'h4:      MuxedCtrlData[7:0] = 8'hC2;    6'h6:      MuxedCtrlData[7:0] = 8'h00;    6'h8:      MuxedCtrlData[7:0] = 8'h00;    6'hA:      MuxedCtrlData[7:0] = 8'h01;    6'hC:      MuxedCtrlData[7:0] = MAC[47:40];    6'hE:      MuxedCtrlData[7:0] = MAC[39:32];    6'h10:     MuxedCtrlData[7:0] = MAC[31:24];    6'h12:     MuxedCtrlData[7:0] = MAC[23:16];    6'h14:     MuxedCtrlData[7:0] = MAC[15:8];    6'h16:     MuxedCtrlData[7:0] = MAC[7:0];    6'h18:     MuxedCtrlData[7:0] = 8'h88;                   // Type/Length    6'h1A:     MuxedCtrlData[7:0] = 8'h08;    6'h1C:     MuxedCtrlData[7:0] = 8'h00;                   // Opcode    6'h1E:     MuxedCtrlData[7:0] = 8'h01;    6'h20:     MuxedCtrlData[7:0] = TxPauseTV[15:8];         // Pause timer value    6'h22:     MuxedCtrlData[7:0] = TxPauseTV[7:0];    default:   MuxedCtrlData[7:0] = 8'h0;  endcaseend// Latched Control dataalways @ (posedge MTxClk or posedge TxReset)begin  if(TxReset)    ControlData[7:0] <= #Tp 8'h0;  else  if(~ByteCnt[0])    ControlData[7:0] <= #Tp MuxedCtrlData[7:0];endendmodule

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一级特黄大欧美久久久| 国产一区二区剧情av在线| 午夜视频在线观看一区二区三区| 亚洲图片你懂的| 日本欧美肥老太交大片| 久久精品国产秦先生| www.欧美亚洲| 精品粉嫩超白一线天av| 亚洲国产精品久久艾草纯爱| 91在线播放网址| 欧美精品一区二区三区蜜桃| 亚洲成人av福利| 成+人+亚洲+综合天堂| 欧美精品一区二区三区蜜臀| 无码av免费一区二区三区试看| 91影院在线免费观看| 久久一二三国产| 日本午夜精品视频在线观看 | av一区二区三区四区| 国产精品国产自产拍在线| av影院午夜一区| 亚洲精品国产第一综合99久久| 色综合天天综合网国产成人综合天| 国产亚洲va综合人人澡精品| 成人性色生活片免费看爆迷你毛片| 欧美国产日产图区| 99久久精品国产观看| 亚洲老妇xxxxxx| 在线观看日产精品| 丝袜美腿一区二区三区| 日韩视频国产视频| 久久疯狂做爰流白浆xx| 2021国产精品久久精品| 国产成人在线视频网址| 欧美成人官网二区| 国产99久久精品| 自拍偷拍欧美精品| 一本久道久久综合中文字幕| 亚洲综合偷拍欧美一区色| 欧美变态tickle挠乳网站| 国产69精品久久久久777| 国产精品久久久久永久免费观看| 色噜噜夜夜夜综合网| 极品少妇一区二区| 伊人婷婷欧美激情| 国产嫩草影院久久久久| 91精品黄色片免费大全| 成人激情小说乱人伦| 亚洲欧美另类图片小说| 91精品国产一区二区三区| 成人综合在线视频| 蜜桃免费网站一区二区三区| 欧美激情一区二区三区四区| 欧美中文字幕一二三区视频| 日本不卡一区二区三区高清视频| 久久久精品国产免大香伊| 在线视频一区二区三区| 国产成人精品免费看| 日精品一区二区三区| 中文字幕一区av| 亚洲国产精品二十页| 日韩欧美123| 国产亚洲自拍一区| 欧美在线色视频| 91在线视频观看| 欧美一区二区三区日韩视频| 99re亚洲国产精品| 成人a区在线观看| 国产精品夜夜爽| 美腿丝袜亚洲综合| 婷婷综合另类小说色区| 一区二区成人在线视频| 国产精品区一区二区三区 | 久久尤物电影视频在线观看| 日韩色在线观看| 欧美videofree性高清杂交| 精品国产一区二区三区久久影院| 7777精品伊人久久久大香线蕉 | 成人午夜在线免费| 国产夫妻精品视频| 成人听书哪个软件好| 国产黑丝在线一区二区三区| 国产一区三区三区| 成人午夜碰碰视频| www.亚洲激情.com| 成人午夜大片免费观看| 99这里都是精品| 欧美性感一类影片在线播放| 欧美日韩一区二区在线观看视频| 欧美日韩精品欧美日韩精品 | 国产欧美日韩精品在线| 亚洲美女偷拍久久| 午夜视频一区二区三区| 蜜臀av亚洲一区中文字幕| 国产一区二区三区蝌蚪| 丁香婷婷综合色啪| 色成人在线视频| 欧美日韩一区中文字幕| 日韩色在线观看| 中文字幕中文乱码欧美一区二区 | 天天爽夜夜爽夜夜爽精品视频| 国产福利一区二区三区| 色婷婷综合视频在线观看| 日韩一区二区三区在线视频| 国产精品视频线看| 日本不卡一区二区三区| 国产成人精品一区二区三区四区| 色综合久久久久久久| 在线播放国产精品二区一二区四区| 欧美成人精品高清在线播放| 综合精品久久久| 久久精品国产99| 欧美日韩国产123区| 久久久久88色偷偷免费| 亚洲国产精品影院| 色婷婷综合久久久久中文 | 欧美精品乱码久久久久久| 亚洲欧美日韩中文字幕一区二区三区| 捆绑调教美女网站视频一区| 99久久国产综合精品麻豆| 欧美电视剧在线观看完整版| 亚洲精品免费播放| 成人av在线影院| 久久夜色精品一区| 日本aⅴ亚洲精品中文乱码| 色偷偷成人一区二区三区91| 国产精品成人午夜| 成人av网站在线| 亚洲国产精品成人综合| 黄一区二区三区| 日韩三级电影网址| 青椒成人免费视频| 欧美日本国产视频| 亚洲成人一二三| 欧美日韩精品欧美日韩精品一 | 日本午夜一本久久久综合| 制服.丝袜.亚洲.另类.中文| 日本不卡一区二区三区高清视频| 91麻豆精品国产91| 日韩电影免费一区| 日韩一级大片在线观看| 日韩av高清在线观看| 91精品蜜臀在线一区尤物| 亚洲v精品v日韩v欧美v专区| 欧美酷刑日本凌虐凌虐| 蜜臀久久久久久久| 久久久久久久久久久久久久久99 | 久久成人麻豆午夜电影| 精品国产精品网麻豆系列| 激情五月激情综合网| 久久先锋影音av鲁色资源网| av不卡在线观看| 亚洲韩国一区二区三区| 日韩精品一区二区三区在线播放| 国产乱子伦视频一区二区三区| 国产午夜亚洲精品理论片色戒| 成人app在线| 天堂久久久久va久久久久| 欧美成人aa大片| 欧洲另类一二三四区| 久久99国产精品久久| 亚洲私人影院在线观看| 欧美高清视频在线高清观看mv色露露十八 | 岛国精品在线观看| 亚洲一区在线观看免费观看电影高清| 制服丝袜一区二区三区| 国产成人亚洲精品狼色在线| 国产欧美一区二区精品仙草咪| 国产专区综合网| 亚洲一区在线观看视频| 中文无字幕一区二区三区 | 国产成人精品一区二| 亚洲6080在线| 亚洲欧洲日韩在线| 国产网站一区二区| 日韩视频一区二区在线观看| 日本精品一区二区三区高清| 国产一区欧美日韩| 久久不见久久见中文字幕免费| 一区二区理论电影在线观看| 国产精品日韩成人| 久久久久国产精品厨房| 2023国产精华国产精品| 欧美tickling挠脚心丨vk| 日韩一级完整毛片| 91麻豆精品国产自产在线观看一区 | 色婷婷久久一区二区三区麻豆| 欧美精选午夜久久久乱码6080| 成人听书哪个软件好| 丰满少妇久久久久久久| 国产剧情一区二区| 国产经典欧美精品| 成人视屏免费看| 国产不卡视频在线播放| 精品无码三级在线观看视频| 青青草成人在线观看| 久久99精品久久久久久动态图| 午夜成人在线视频| 久久精品久久久精品美女| 国产乱色国产精品免费视频|