在线咨询 切换到宽版
eetop公众号 创芯大讲堂 创芯人才网

 找回密码
 注册

手机号码,快捷登录

手机号码,快捷登录

搜全文
楼主: sara0830

[求助] 跪求指导modelsim仿真lpm_rom高阻。

[复制链接]
发表于 2011-10-11 22:13:05 | 显示全部楼层
回复 1# sara0830


    可能是你的rom没生成好,rom没有完成初始化,你能把rom.v的代码贴出来吗?里面应该有一项初始化文件的参数...可以看这个参数是否指定了对应的初始化文件.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-10-12 10:25:57 | 显示全部楼层
回复 11# 挂在天边的鱼


    `timescale 1 ns / 1 ns
// synopsys translate_on
module rom (
address,
clock,
q);
input [3:0]  address;
input   clock;
output [7:0]  q;
`ifndef ALTERA_RESERVED_QIS
// synopsys translate_off
`endif
tri1   clock;
`ifndef ALTERA_RESERVED_QIS
// synopsys translate_on
`endif
wire [7:0] sub_wire0;
wire [7:0] q = sub_wire0[7:0];
altsyncram altsyncram_component (
    .address_a (address),
    .clock0 (clock),
    .q_a (sub_wire0),
    .aclr0 (1'b0),
    .aclr1 (1'b0),
    .address_b (1'b1),
    .addressstall_a (1'b0),
    .addressstall_b (1'b0),
    .byteena_a (1'b1),
    .byteena_b (1'b1),
    .clock1 (1'b1),
    .clocken0 (1'b1),
    .clocken1 (1'b1),
    .clocken2 (1'b1),
    .clocken3 (1'b1),
    .data_a ({8{1'b1}}),
    .data_b (1'b1),
    .eccstatus (),
    .q_b (),
    .rden_a (1'b1),
    .rden_b (1'b1),
    .wren_a (1'b0),
    .wren_b (1'b0));
defparam
  altsyncram_component.clock_enable_input_a = "BYPASS",
  altsyncram_component.clock_enable_output_a = "BYPASS",
`ifdef NO_PLI
  altsyncram_component.init_file = "rom.rif"
`else
  altsyncram_component.init_file = "rom.hex"
`endif
,
  altsyncram_component.intended_device_family = "Cyclone II",
  altsyncram_component.lpm_hint = "ENABLE_RUNTIME_MOD=NO",
  altsyncram_component.lpm_type = "altsyncram",
  altsyncram_component.numwords_a = 16,
  altsyncram_component.operation_mode = "ROM",
  altsyncram_component.outdata_aclr_a = "NONE",
  altsyncram_component.outdata_reg_a = "CLOCK0",
  altsyncram_component.widthad_a = 4,
  altsyncram_component.width_a = 8,
  altsyncram_component.width_byteena_a = 1;

endmodule
回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-10-12 10:29:49 | 显示全部楼层
回复 12# sara0830


    以上是我在quartus 生成的 rom.v,我 看到其中是关联 了 rom.hex文件的 。
回复 支持 反对

使用道具 举报

发表于 2011-10-12 16:23:17 | 显示全部楼层
回复 12# sara0830


    将altsyncram_component.init_file = "rom.hex"中的rom.hex换成全路径的,例如
altsyncram_component.init_file = "c:/xx/rom.hex"注意用左斜杠
回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-10-12 17:54:31 | 显示全部楼层
继续坐等  高手指点。。。一点点问题搞不定了
回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-10-12 19:24:49 | 显示全部楼层
回复 14# 挂在天边的鱼


    非常谢谢楼上的  多次 回答。好人呐.我先试试 这个  方法行不行
回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-10-12 19:34:45 | 显示全部楼层
回复 14# 挂在天边的鱼


    可是楼上的好好先生,还是不行,。。。高阻高阻!
回复 支持 反对

使用道具 举报

发表于 2014-12-11 14:12:29 | 显示全部楼层
回复 支持 反对

使用道具 举报

发表于 2015-4-10 11:02:49 | 显示全部楼层
姐姐,我也遇到了同样的问题啊,modelsim  总是出现高阻阿?你有没有解决阿!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

站长推荐 上一条 /1 下一条


手机版| 小黑屋| 关于我们| 联系我们| 隐私声明| EETOP 创芯网
( 京ICP备:10050787号 京公网安备:11010502037710 )

GMT+8, 2025-9-19 04:40 , Processed in 0.016188 second(s), 3 queries , Gzip On, Redis On.

eetop公众号 创芯大讲堂 创芯人才网
快速回复 返回顶部 返回列表