test
来源:互联网 发布:网络版收银软件 编辑:程序博客网 时间:2024/06/11 03:34
1.产生10khz的脉冲模块
`timescale 1ns / 1ps///////////////////////////////////////////////////////////////////// Create Date: 2016/11/05 10:10:30// Design Name:// Module Name: phaze_10khz// Description: 10khz的脉冲//////////////////////////////////////////////////////////////////////////////////module phaze_10khz(clk_20m,r`timescale 1ns / 1ps///////////////////////////////////////////////////////////////////// Create Date: 2016/11/05 10:10:30// Design Name:// Module Name: phaze_10khz// Description: 10khz的脉冲//////////////////////////////////////////////////////////////////////////////////module phaze_10khz(clk_20m,rst,pluse_10khz); input rst; input clk_20m; output reg pluse_10khz; reg [31:0]cnt; always@(posedge clk_20m or negedge rst ) if(!rst) cnt<=32'd0; else if(cnt==32'd2000) cnt<=32'd0; else cnt<=cnt+1'b1; always@(posedge clk_20m or negedge rst ) if(!rst) pluse_10khz<=1'b0; else if(cnt==32'd2000) pluse_10khz<=1'b1; else pluse_10khz<=1'b0;endmodule
st,pluse_10khz); input rst; input clk_20m; output reg pluse_10khz; reg [31:0]cnt; always@(posedge clk_20m or negedge rst ) if(!rst) cnt<=32'd0; else if(cnt==32'd2000) cnt<=32'd0; else cnt<=cnt+1'b1; always@(posedge clk_20m or negedge rst ) if(!rst) pluse_10khz<=1'b0; else if(cnt==32'd2000) pluse_10khz<=1'b1; else pluse_10khz<=1'b0;endmodule
0 0
- test
- test
- test
- test
- test
- test
- test
- Test
- test
- Test
- test
- test
- test
- test
- test
- test
- test
- Test
- 搜索专题(DFS+剪枝)HDU 1010-Tempter of the Bone
- AndroidStudio 更改jar包编译顺序优先于android.jar,使用@hide api
- 关于android原生VideoView解决卡顿现象
- 产品经理吐槽
- 导入包冲突的解决办法
- test
- python 所有第三方库的一个地址
- 在Greenplum外部表中使用HDFS
- android 建立长连接的方法
- Red Hat linux 6.5 学习使用笔记《二》文件系统及命令详解
- 网站统计中的数据收集原理及实现-埋点统计
- scala val 与var 区别
- 修改网卡IP
- RocketMQ源码调试环境搭建