⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 byte_counter.v

📁 ethmac10g_latest.tar.gz源代码
💻 V
字号:
module byte_count_module(CLK, RESET, START, BYTE_COUNTER);// Ports declarationinput CLK;input RESET;input START;output [15:0] BYTE_COUNTER;reg [15:0] BYTE_COUNTER;reg [15:0] counter;always @(posedge CLK or posedge RESET)begin   if (RESET == 1) begin	   counter = 16'h0000;   end   // the ack is delayed which starts the counter   else if (START == 1) begin       counter = counter + 8;   endendalways @(posedge CLK)begin   BYTE_COUNTER = counter;endendmodule // End of Module 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -