|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
本帖最后由 neufeifatonju 于 2014-9-25 13:09 编辑
最近准备弄弄JESD204B,网上资料比较少,所以想把自带的仿真跑起来,看看时序什么的,但是出现如下错误,希望弄过的给点经验,不限于仿真,能够有更深入的介绍最好,不胜感激。控制这块我看历程用的是EDK,这个自己写控制程序麻烦吗,难点或者需要注意的事项是什么。
在ISE13.4环境,生成JESD204B核,设置如下:
添加自带的仿真文件,用自带的isim仿真,出现如下提示:
Compiling module pselect_f(C_AB=5,C_AW=5,C_BAR=32...
Compiling module pselect_f(C_AB=5,C_AW=5,C_BAR=32...
Compiling module pselect_f(C_AB=5,C_AW=5,C_BAR=32...
Compiling module address_decoder(C_NUM_ADDRESS_RA...
ERROR:Simulator:807 - Variable declaration assignments are only allowed at the module level or if the variables are automatic
Process "Simulate Behavioral Model" failed
如果用modelsim仿真,提示如下错误:
# ** Error: ipcore_dir/jesd/example_design/pselect_f.v(145): (vlog-LRM-2401) Extra semicolon found. This is permitted in SystemVerilog, but not permitted in Verilog.
# ** Error: ipcore_dir/jesd/example_design/pselect_f.v(151): (vlog-LRM-2401) Extra semicolon found. This is permitted in SystemVerilog, but not permitted in Verilog.
# ** Error: D:/modeltech_10.0c/win32/vlog failed.
我的理解是generate在modelsim仿真时不可用,但是modelsim不是支持SystemVerilog的吗?
generate
if (C_AB > 0) begin : XST_WA
assign CS = (A[0:C_AB - 1] == BAR[0:C_AB - 1]) ? AValid : 1'b0 ;
end
endgenerate;
generate
if (C_AB == 0) begin : PASS_ON_GEN
assign CS = AValid ;
end
endgenerate;
|
|