自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(9)
  • 收藏
  • 关注

转载 cannot match operand(s) in the condition to the corresponding edges in the enclosing event control o

module PAOBIAO(a,b,c,d);input a,b,c;output d;reg d;           always@(posedge a or negedge b)if(b) delse if(c)dendmodule先看这么一段简单的程序,编译:提示错误。错在哪里?经过一晚上才终于琢磨透彻。这是错误提示:Error (10

2013-03-19 23:05:09 19045 12

转载 Error: NativeLink simulation flow was NOT successful

解決在Quartus II无法使用ModelSim的问题  在Quartus II中使用ModelSim 编译的时候出现了类似下面的错误   Error: Can't launch the ModelSim-Altera software -- the path to the location of the executables for the ModelSim-Altera sof

2013-03-10 15:36:23 7850

转载 MATLAB中多行注释的三种方法

A.%{若干语句%}B.多行注释: 选中要注释的若干语句, 编辑器菜单Text->Comment, 或者快捷键Ctrl+R取消注释: 选中要取消注释的语句, 编辑器菜单Text->Uncomment, 或者快捷键Ctrl+TC.if LOGICAL(0)若干语句end这个方法实际上是通过逻辑判断语句不执行相关的

2013-03-09 16:21:52 1047

原创 modelsim 仿真时出现# ** Error: (vsim-23) Unable to change to directory path "work".

modelsim 仿真时出现# ** Error: (vsim-23) Unable to change to directory path "work". resolution:重新建立一个工程,将原来工程中你需要的文件再加入到你的工程中,可直接add exiting file--copy to project directary这时再编译就对了。

2013-03-07 19:17:38 1078

原创 begin end中阻塞语句与非阻塞语句执行顺序的问题

1module fsm_2(clk,A,Y);input clk,A;output reg Y;reg q1;always@(posedge clk)beginY<=q1&(~A);q1=~A;endendmodule2将always块中的语句改为q1=~A;Y<=q1&(~A);3将always块中的

2013-03-07 11:51:34 4808

转载 testbench写法注意事项

1.0 设计原则 1  A. 时序逻辑一定用非阻塞赋值”<=”,一旦看到敏感列表有posedge就用”<=”。  B. 组合逻辑一定用”=”,一旦敏感列表没有posedge就用”=”,一旦看到assign就用”=”。  C. 时序逻辑和组合逻辑分成不同的模块,即一个always模块里面只能出现非阻塞赋值”<=”     或者”=”。如果发现两种赋值并存,一个字”改”,心存侥幸可能会给后续工作带来更

2013-03-07 10:46:16 1216

原创 modelsim error:'rom_nxm_tb' already exists and will be overwritten

modelsim error:'rom_nxm_tb' already exists and will be overwrittenresolution:原来rom_nxm_tb.v中包含两个一模一样的module。删除一个即可。

2013-03-07 10:30:26 1694

原创 modelsim中用非阻塞赋值仿真遇到的问题

这是对rom初始化并读取的源码module rom_nxm(rom_data,rom_addr,clk,rd,load); parameter M=8,N=4; input clk,rd; input load; input [N-1:0] rom_addr; output reg [M-1:0] rom_data; reg[M-1:0]memo

2013-03-05 20:59:20 2952

原创 modelsim error

1,modelsim调试时,出现# Compile of difv_oddn.v was successful with warnings.# Project file G:/modelsimhomework/divf.mpf is write protected, data cannot be saved.# Unable to save project原因:mpf文件是MTI pr

2013-03-03 21:27:17 1928

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除