Syntax error at or near token ‘packed‘. (VER-294) Syntax error at or near token ‘clk‘. (VER-294)Rede

dc综合报错

Error: …/…/rtl/nf_cpu.svh:42: Syntax error at or near token ‘packed’. (VER-294)

Error: …/…/rtl/nf_i_exu.sv:16: Syntax error at or near token ‘clk’. (VER-294)
Error: …/…/rtl/nf_i_exu.sv:17: Redeclaration of port ‘logic’ is not allowed. (VER-121)
Error: …/…/rtl/nf_i_exu.sv:17: Syntax error at or near token ‘rd1’. (VER-294)
Error: …/…/rtl/nf_i_exu.sv:18: Redeclaration of port ‘logic’ is not allowed. (VER-121)
Error: …/…/rtl/nf_i_exu.sv:18: Syntax error at or near token ‘rd2’. (VER-294)
Error: …/…/rtl/nf_i_exu.sv:19: Redeclaration of port ‘logic’ is not allowed. (VER-121)
Error: …/…/rtl/nf_i_exu.sv:19: Syntax error at or near token ‘ext_data’. (VER-294)
Error: …/…/rtl/nf_i_exu.sv:20: Redeclaration of port ‘logic’ is not allowed. (VER-121)
Error: …/…/rtl/nf_i_exu.sv:20: Syntax error at or near token ‘pc_v’. (VER-294)
Error: …/…/rtl/nf_i_exu.sv:21: Redeclaration of port ‘logic’ is not allowed. (VER-121)
Error: …/…/rtl/nf_i_exu.sv:21: Syntax error at or near token ‘srcA_sel’. (VER-294)
Error: …/…/rtl/nf_i_exu.sv:22: Redeclaration of port ‘logic’ is not allowed. (VER-121)
Error: …/…/rtl/nf_i_exu.sv:22: Syntax error at or near token ‘srcB_sel’. (VER-294)
Error: …/…/rtl/nf_i_exu.sv:23: Redeclaration of port ‘logic’ is not allowed. (VER-121)
Error: …/…/rtl/nf_i_exu.sv:23: Syntax error at or near token ‘shift_sel’. (VER-294)
Error: …/…/rtl/nf_i_exu.sv:24: Redeclaration of port ‘logic’ is not allowed. (VER-121)
Error: …/…/rtl/nf_i_exu.sv:24: Syntax error at or near token ‘shamt’. (VER-294)
Error: …/…/rtl/nf_i_exu.sv:25: Redeclaration of port ‘logic’ is not allowed. (VER-121)
Error: …/…/rtl/nf_i_exu.sv:25: Syntax error at or near token ‘ALU_Code’. (VER-294)

Error: …/…/rtl/nf_i_exu.sv:16: The construct ‘data_type in net_declaration’ is not supported in this language. (VER-720)
Error: …/…/rtl/nf_i_exu.sv:17: The construct ‘data_type in net_declaration’ is not supported in this language. (VER-720)
Error: …/…/rtl/nf_i_exu.sv:18: The construct ‘data_type in net_declaration’ is not supported in this language. (VER-720)
Error: …/…/rtl/nf_i_exu.sv:19: The construct ‘data_type in net_declaration’ is not supported in this language. (VER-720)
Error: …/…/rtl/nf_i_exu.sv:20: The construct ‘data_type in net_declaration’ is not supported in this language. (VER-720)
Error: …/…/rtl/nf_i_exu.sv:21: The construct ‘data_type in net_declaration’ is not supported in this language. (VER-720)
Error: …/…/rtl/nf_i_exu.sv:22: The construct ‘data_type in net_declaration’ is not supported in this language. (VER-720)
Error: …/…/rtl/nf_i_exu.sv:23: The construct ‘data_type in net_declaration’ is not supported in this language. (VER-720)
Error: …/…/rtl/nf_i_exu.sv:24: The construct ‘data_type in net_declaration’ is not supported in this language. (VER-720)
Error: …/…/rtl/nf_i_exu.sv:25: The construct ‘data_type in net_declaration’ is not supported in this language. (VER-720)

Error: …/…/rtl/nf_i_exu.sv:30: Syntax error at or near token ‘[’. (VER-294)
Error: …/…/rtl/nf_i_exu.sv:38: Syntax error at or near token ‘=’. (VER-294)
Error: …/…/rtl/nf_i_exu.sv:39: Syntax error at or near token ‘=’. (VER-294)
Error: …/…/rtl/nf_i_exu.sv:40: Syntax error at or near token ‘=’. (VER-294)
Error: …/…/rtl/nf_i_exu.sv:45: Syntax error at or near token ‘always_comb’. (VER-294)
Error: …/…/rtl/nf_i_exu.sv:49: Syntax error at or near token ‘=’. (VER-294)
Error: …/…/rtl/nf_i_exu.sv:50: Syntax error at or near token ‘=’. (VER-294)
Error: …/…/rtl/nf_i_exu.sv:51: Syntax error at or near token ‘=’. (VER-294)
Error: …/…/rtl/nf_i_exu.sv:56: Syntax error at or near token ‘always_comb’. (VER-294)

找到原因
analyze -f sverilog -vcs “-f …/…/prj/filelist.f”

elaborate $design_name

current_design $design_name
link
因为在读文件的时候不认识logic,应该是在提取文件的时候,应该用sv来提取

  • 6
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

weixin_44781508

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值