2015年1月9日

摘要: reg [3:0]i;   always @ ( posedge CLOCK or negedge RESET )  if( !RESET ) begin  i <= 4'd0;  ... 阅读全文
posted @ 2015-01-09 16:25 s010101 阅读(1220) 评论(0) 推荐(0)

2015年1月1日

摘要: module mult_for(outcome,a,b);parameter SIZE=8;input[SIZE:1] a,b;output reg[2*SIZE:1] outcome;integer i;always @(a or b) begin outcome<=0; for(i=... 阅读全文
posted @ 2015-01-01 17:02 s010101 阅读(3326) 评论(0) 推荐(0)
摘要: 2015,welcome!!! 阅读全文
posted @ 2015-01-01 01:19 s010101 阅读(125) 评论(0) 推荐(0)

2014年12月17日

摘要: 这篇文章不需要在modelsim中建库、映射、建工程等一些繁琐的步骤,直接使用modelsim中的默认work库。使用quartus+modelsim联合仿真。首先推荐一篇文章http://www.cnblogs.com/emouse/archive/2012/07/08/2581223.html首... 阅读全文
posted @ 2014-12-17 21:09 s010101 阅读(314) 评论(0) 推荐(0)

2014年11月26日

摘要: SOS信号:. . . _ _ _ . . .1.module sos_module ( CLK, RSTn, Pin_Out, SOS_En_Sig ); ... 阅读全文
posted @ 2014-11-26 15:55 s010101 阅读(763) 评论(0) 推荐(0)

2014年11月19日

摘要: 0:起始位,低电平;1~8:数据位;9:校验位,高电平;10:停止位,高电平。波特率 “9600bps”表示每秒可以传输9600位。 波特率定时计数器由时钟频率除以波特率。采集1~8位,忽略0、9、10位。发送“0、8位数据、1、1”串口传输数据,从最低位开始,到最高位结束。串口发送:module ... 阅读全文
posted @ 2014-11-19 11:26 s010101 阅读(4921) 评论(0) 推荐(0)

2014年11月18日

摘要: quartus中默认顶层文件名与工程名相同,或自行设置顶层文件:project->set as top-leval entity顶层模块名要与工程名相同RTL是编译后的结果,并没有与实际的硬件结构相对应也就是说RTL只能说明各个模块,模块之间的连接关系。Technology Map Viewer是f... 阅读全文
posted @ 2014-11-18 20:11 s010101 阅读(348) 评论(0) 推荐(0)
摘要: 首先:建立时间和保持时间都是器件要求的特性。其中建立时间是器件输入端在时钟信号有效沿到来前,要求输入信号稳定不变的时间。保持时间是器件输入端要求输入信号在时钟信号有效沿到来后保持稳定不变的时间。如果输入信号不满足建立时间和保持时间的要求,就可能导致数据锁存错误。延迟时间是器件本身或布线的物理特性,其... 阅读全文
posted @ 2014-11-18 15:58 s010101 阅读(982) 评论(0) 推荐(0)
摘要: 同步 异步 复位 阅读全文
posted @ 2014-11-18 11:37 s010101 阅读(1081) 评论(0) 推荐(0)

2014年11月17日

摘要: 1.加减法module addsub ( input [7:0] dataa, input [7:0] datab, input add_sub, // if this is 1, add; e... 阅读全文
posted @ 2014-11-17 11:22 s010101 阅读(949) 评论(0) 推荐(0)

导航