UP DOWN COUNTER WITH LOAD
来源:互联网 发布:思科网络技术学院教程 编辑:程序博客网 时间:2024/06/06 03:39
`timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
// Company: SEU.IC
// Engineer: RAY
//
// Create Date: 18:47:13 03/31/2011
// Design Name: up_down_counter
// Module Name: up_down_counter
// Project Name: Counters
//////////////////////////////////////////////////////////////////////////////////
module up_down_counter(
Load_in, //Load计数初值使能
Data_in, //初值
Clock,
Reset,
CounterON_in, //计数器使能
UpDown_in, //up/down 控制
CountResult_out //计数结果
);
input Load_in;
input [3:0] Data_in;
input Clock;
input Reset;
input CounterON_in;
input UpDown_in;
output [3:0] CountResult_out;
reg [3:0] CountResult_out;;
always @(posedge Clock or negedge Reset)
begin
if(!Reset)
CountResult_out <= 'd0;
else if(Load_in)
CountResult_out <= Data_in;
else if(CounterON_in)
begin
if(UpDown_in)
CountResult_out <= CountResult_out + 'd1;
else
CountResult_out <= CountResult_out - 'd1;
end
end
endmodule
- UP DOWN COUNTER WITH LOAD
- up down load srouce
- up()&down()
- up()&down()
- 年龄UP,其它DOWN DOWN DOWN
- volume up and down
- Pull-up & Pull-down
- linux down up认识
- up casting down casting
- Percolate Up and Down
- Extjs up down 用法
- E BOOK DOWN LOAD
- down load pic
- UVa413 - Up and Down Sequences
- 端口的UP与down
- pta Percolate Up and Down
- Setting Up A High-Availability Load Balancer With HAProxy/Keepalived On Debian Lenny
- 小笨霖英语笔记本十二: up & down
- JPQL的使用
- 网络工程的发展方向
- ORACLE 恢复刚删除的数据
- 回想这两年
- 旧台式机测试的asterisk 并发
- UP DOWN COUNTER WITH LOAD
- CheckRadioButton 函数
- 避免僵死进程实例
- myeclipse9正式版成功破解
- MAXScript101_3.3 Working with Modifeirs
- 关键字explicit理解
- 文件包含问题
- .NET中TABControl中TabPages页面隐藏问题
- 浅析利用钩子注入DLL的原理与防范