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来提取