upcount_2.v
来自「基于 MAXII 的CPLD 对mobil dram 的读写操作」· Verilog 代码 · 共 22 行
V
22 行
/**************************************************************************************************************** TWO BIT UPCOUNTER***************************************************************************************************************/module upcount_2( clk, reset, count_en, count);input clk; //clk of the processer usedinput reset; //asychronous resetinput count_en; output [1:0] count; reg [1:0] count; always @ (posedge reset,posedge clk) begin if (reset == 1) count = 2'b00; else if(count_en==1) count = count + 2'b01;endendmodule/******************************************* END MODULE *****************************************************/
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?