2011年6月9日

modelsim testbench测试DFF触发器verilog

摘要: module tb_DFF ( clk, d, q ); input clk; input d; output q; reg q; always @ (posedge clk) q <= d; endmodule 测试文件: `timescale 1ns / 1psmodule ttbb_DFF; // Inputs reg clk; reg d; // Outputs wire q; // Instantiate the Unit Under Test (UUT) tb_DFF uut ( .clk(clk), .d(d), .q(q) ); initial beg... 阅读全文

posted @ 2011-06-09 11:28 yanhc 阅读(1398) 评论(0) 推荐(0)

2011年6月5日

Source Insight的一些使用技巧

摘要: 显示/隐藏行号:(option->document option->editing options中,show line numbers)改变字体(默认的字体太小):(option->document option->font options中) 阅读全文

posted @ 2011-06-05 11:12 yanhc 阅读(220) 评论(0) 推荐(0)

PXA270的CE的BSP为什么叫bvdmain?

摘要: http://bak1.beareyes.com.cn/2/lib/200302/20/20030220227.htm英特尔新添一款PDA专用的XScale处理器,这款新开发中的处理器代号为Bulverde。由这里就应该可以知道为什么PXA270的wince的BSP叫bvdmain了,改成pxamain或许更好理解一些,可能在开发阶段只能用代号以保密。 阅读全文

posted @ 2011-06-05 10:46 yanhc 阅读(213) 评论(0) 推荐(0)

2011年5月5日

ADS中Image$$RO$$Limit的计算

摘要: 程序的源码如下: AREA RWData, DATA, READWRITEtemp1 DCD 10temp2 DCD 3 AREA ARMex, CODE, READONLY ; name this block of code ENTRY ; mark first instruction ; to execute ... 阅读全文

posted @ 2011-05-05 15:47 yanhc 阅读(1091) 评论(0) 推荐(0)

ADS中Image$$RO$$Limit之类的数是怎么算的?

摘要: 最近在看优龙270的bootloader——boot270,这个bootloader只能既能boot wince也能boot linux,是英特尔自己写的,优龙修改的。boot270里面跟uboot一样也要进行内存搬移,搬移的时候就需要用到Image$$RO$$Limit之类的数据。带$$的变量是ADS的保留变量,在ADS link guide中能够看到,在源文件中是没有的,好像在link的时候产生的。看了网上讲的关于Image$$RO$$Limit怎么算的文章:http://z86k.blog.163.com/blog/static/90796156201002511040829/网上大部分 阅读全文

posted @ 2011-05-05 12:11 yanhc 阅读(589) 评论(1) 推荐(0)

2011年5月3日

arm的bin二进制代码分析

摘要: 在bin文件中,就是一条条的机器指令,每条指令4个字节。在ADS中打开一个.s文件,选择project->disassemble可以看到汇编的机器码汇编代码如下(ADS中的一个例程/ARM/ADSv1_2/Examples/asm/armex.s): AREA ARMex, CODE, READONLY ; name this block of code ENTRY ; mark first instruction ; to executestart MOV r0, #10 ; Set up parameters MOV r1, #3 ADD r0, r0, r1 ; r0 = r0 + 阅读全文

posted @ 2011-05-03 18:39 yanhc 阅读(3593) 评论(0) 推荐(0)

2011年4月29日

优龙boot270 bootloader main.S

摘要: boot270.bin 是英特尔写的一个270的bootloader,优龙在此基础上修改了阶段一的主程序为src/main.s;------------------------------------------------------------------------------;; COPYRIGHT (C) 2000, 2001 Intel Corporation.;; FILENAME: main.s;; PURPOSE: This file contains the platform dependent startup code. This is; the first code t 阅读全文

posted @ 2011-04-29 16:58 yanhc 阅读(294) 评论(0) 推荐(0)

2010年7月7日

郑君里 信号与系统,傅里叶级数,逼近函数仿真,吉布斯验证

摘要: 郑君里,信号与系统,P99-100,傅里叶级数近似方波。clc; clear;E = 1;Amp = E/2;n = 5;T = 1;w = 2*pi/T;t = -1:0.0001:1;% Generate the fourier functionfun = zeros(size(t));for i=1:n fun = fun + (2*E/pi) * (1/i)*sin(i*pi/2)*cos(i*w*t);endfigure(1); plot(t, fun, 'r'); hold on;% Generate the step wavef=@(x)( -Amp*heavis 阅读全文

posted @ 2010-07-07 22:44 yanhc 阅读(507) 评论(0) 推荐(0)

2010年6月12日

PCI规范学习笔记

摘要: 以前看过一段时间Cyclone FPGA控制PEX8111的程序,没看懂,最近又结合PCI规范重新看了一下。PCI Speci rev2.3FRAME# is driven by the master to indicate the beginning and end of atransaction.IRDY# is driven by the master to indicate that it is ready to transfer data.TRDY# is driven by the target to indicate that it is ready to transfer da 阅读全文

posted @ 2010-06-12 19:54 yanhc 阅读(3795) 评论(0) 推荐(0)

2010年5月14日

verilog uart interface IP

摘要: 参考代码:http://www.fpga4fun.com/SerialInterface3.htm下载地址:http://yanhc519.download.csdn.net/ 阅读全文

posted @ 2010-05-14 14:57 yanhc 阅读(300) 评论(0) 推荐(0)

导航