我编写了一个模块,正在尝试检查语法。 ISE输出给我这些错误
$service = new MarketplaceWebService_Client(
'xyz',
'xyz',
$config,
'xyz',
'1.0');
这是我的代码:
模块CmdParser(
ERROR:HDLCompilers:26 - "../cmd_parser.v" line 220 unexpected token: '['
ERROR:HDLCompilers:26 - "../cmd_parser.v" line 221 unexpected token: '['
ERROR:HDLCompilers:26 - "../cmd_parser.v" line 222 unexpected token: '['
ERROR:HDLCompilers:26 - "../cmd_parser.v" line 225 unexpected token: '['
ERROR:HDLCompilers:26 - "../cmd_parser.v" line 226 unexpected token: '['
ERROR:HDLCompilers:26 - "../cmd_parser.v" line 228 unexpected token: '['
ERROR:HDLCompilers:26 - "../cmd_parser.v" line 230 unexpected token: '['
ERROR:HDLCompilers:26 - "../cmd_parser.v" line 245 unexpected token: 'reg'
ERROR:HDLCompilers:26 - "../cmd_parser.v" line 246 unexpected token: 'reg'
ERROR:HDLCompilers:26 - "../cmd_parser.v" line 247 unexpected token: 'reg'
ERROR:HDLCompilers:26 - "../cmd_parser.v" line 248 unexpected token: 'reg'
ERROR:HDLCompilers:26 - "../cmd_parser.v" line 249 unexpected token: 'reg'
ERROR:HDLCompilers:26 - "../cmd_parser.v" line 250 unexpected token: 'reg'
ERROR:HDLCompilers:26 - "../cmd_parser.v" line 251 unexpected token: 'reg'
ERROR:HDLCompilers:26 - "../cmd_parser.v" line 252 unexpected token: 'reg'
ERROR:HDLCompilers:26 - "../cmd_parser.v" line 253 unexpected token: 'reg'
ERROR:HDLCompilers:26 - "../cmd_parser.v" line 254 unexpected token: 'reg'
ERROR:HDLCompilers:26 - "../cmd_parser.v" line 255 unexpected token: 'reg'
ERROR:HDLCompilers:28 - "../cmd_parser.v" line 605 'reg32_23_DoppBoundaryLen' has not been declared
ERROR:HDLCompilers:28 - "../cmd_parser.v" line 652 'reg36_RangeSincCoef' has not been declared
ERROR:HDLCompilers:28 - "../cmd_parser.v" line 655 'reg36_2ndRangeSincCoef' has not been declared
ERROR:HDLCompilers:28 - "../cmd_parser.v" line 658 'reg36_3rdRangeSincCoef' has not been declared
ERROR:HDLCompilers:28 - "../cmd_parser.v" line 672 'reg37_PreSumSincCoef' has not been declared
ERROR:HDLCompilers:28 - "../cmd_parser.v" line 675 'reg37_2ndPreSumSincCoef' has not been declared
ERROR:HDLCompilers:28 - "../cmd_parser.v" line 678 'reg37_2ndPreSumSincCoef' has not been declared
ERROR:HDLCompilers:28 - "../cmd_parser.v" line 691 'reg38_1_sADCReg' has not been declared
ERROR:HDLCompilers:28 - "../cmd_parser.v" line 703 'TLM_CMD_HEADER' has not been declared
ERROR:HDLCompilers:28 - "../cmd_parser.v" line 710 'TLM_CDU' has not been declared
ERROR:HDLCompilers:28 - "../cmd_parser.v" line 711 'tlm1_CDU' has not been declared
ERROR:HDLCompilers:28 - "../cmd_parser.v" line 712 'tlm1_CDU' has not been declared
ERROR:HDLCompilers:28 - "../cmd_parser.v" line 717 'TLM_CD_SADC' has not been declared
ERROR:HDLCompilers:28 - "../cmd_parser.v" line 718 'tlm2_CD_sadc' has not been declared
ERROR:HDLCompilers:28 - "../cmd_parser.v" line 719 'tlm2_CD_sadc' has not been declared
ERROR:HDLCompilers:28 - "../cmd_parser.v" line 724 'TLM_ADC_1V' has not been declared
ERROR:HDLCompilers:28 - "../cmd_parser.v" line 725 'tlm3_adc1V' has not been declared
ERROR:HDLCompilers:28 - "../cmd_parser.v" line 726 'tlm3_adc1V' has not been declared
ERROR:HDLCompilers:28 - "../cmd_parser.v" line 731 'TLM_ADC_2V' has not been declared
ERROR:HDLCompilers:28 - "../cmd_parser.v" line 732 'tlm4_adc2V' has not been declared
ERROR:HDLCompilers:28 - "../cmd_parser.v" line 733 'tlm4_adc2V' has not been declared
ERROR:HDLCompilers:28 - "../cmd_parser.v" line 738 'TLM_ADC_3V' has not been declared
ERROR:HDLCompilers:28 - "../cmd_parser.v" line 739 'tlm5_adc3V' has not been declared
ERROR:HDLCompilers:28 - "../cmd_parser.v" line 740 'tlm5_adc3V' has not been declared
ERROR:HDLCompilers:28 - "../cmd_parser.v" line 745 'TLM_ADC_4V' has not been declared
ERROR:HDLCompilers:28 - "../cmd_parser.v" line 746 'tlm6_adc4V' has not been declared
ERROR:HDLCompilers:28 - "../cmd_parser.v" line 747 'tlm6_adc4V' has not been declared
ERROR:HDLCompilers:28 - "../cmd_parser.v" line 752 'TLM_ADC_DIE_TEMPS' has not been declared
ERROR:HDLCompilers:28 - "../cmd_parser.v" line 753 'tlm7_adcdietemp' has not been declared
ERROR:HDLCompilers:28 - "../cmd_parser.v" line 754 'tlm7_adcdietemp' has not been declared
ERROR:HDLCompilers:28 - "../cmd_parser.v" line 759 'TLM_STATUS_1' has not been declared
ERROR:HDLCompilers:28 - "../cmd_parser.v" line 760 'tlm8_status1' has not been declared
ERROR:HDLCompilers:28 - "../cmd_parser.v" line 761 'tlm8_status1' has not been declared
ERROR:HDLCompilers:28 - "../cmd_parser.v" line 766 'TLM_STATUS_2' has not been declared
ERROR:HDLCompilers:28 - "../cmd_parser.v" line 767 'tlm8_status2' has not been declared
ERROR:HDLCompilers:28 - "../cmd_parser.v" line 768 'tlm8_status2' has not been declared
ERROR:HDLCompilers:28 - "../cmd_parser.v" line 773 'TLM_STATUS_3' has not been declared
ERROR:HDLCompilers:28 - "../cmd_parser.v" line 774 'tlm8_status3' has not been declared
ERROR:HDLCompilers:28 - "../cmd_parser.v" line 775 'tlm8_status3' has not been declared
ERROR:HDLCompilers:28 - "../cmd_parser.v" line 780 'TLM_STATUS_4' has not been declared
ERROR:HDLCompilers:28 - "../cmd_parser.v" line 781 'tlm8_status4' has not been declared
ERROR:HDLCompilers:28 - "../cmd_parser.v" line 782 'tlm8_status4' has not been declared
ERROR:HDLCompilers:28 - "../cmd_parser.v" line 783 'TLM_CHECKSUM' has not been declared
ERROR:HDLCompilers:28 - "../cmd_parser.v" line 795 'TLM_CHECKSUM' has not been declared
ERROR:HDLCompilers:28 - "../cmd_parser.v" line 813 'blkRam_address_40' has not been declared
ERROR:HDLCompilers:28 - "../cmd_parser.v" line 814 'CANNED_DATA' has not been declared
ERROR:HDLCompilers:28 - "../cmd_parser.v" line 820 'reg42_Qdopp' has not been declared
ERROR:HDLCompilers:28 - "../cmd_parser.v" line 829 'CANNED_DATA' has not been declared
ERROR:HDLCompilers:28 - "../cmd_parser.v" line 840 'blkRam_address_43' has not been declared
ERROR:HDLCompilers:28 - "../cmd_parser.v" line 841 'CANNED_DATA' has not been declared
ERROR:HDLCompilers:208 - "../cmd_parser.v" line 59 Port reference 'reg38_1_sADCReg' was not declared as input, inout or output
ERROR:HDLCompilers:208 - "../cmd_parser.v" line 73 Port reference 'tlm_data_out' was not declared as input, inout or output
ERROR:HDLCompilers:208 - "../cmd_parser.v" line 57 Port reference 'reg37_PreSumSincCoef' was not declared as input, inout or output
ERROR:HDLCompilers:208 - "../cmd_parser.v" line 54 Port reference 'reg36_2ndRangeSincCoef' was not declared as input, inout or output
ERROR:HDLCompilers:208 - "../cmd_parser.v" line 84 Port reference 'tlm7_adcdietemp' was not declared as input, inout or output
ERROR:HDLCompilers:208 - "../cmd_parser.v" line 78 Port reference 'tlm1_CDU' was not declared as input, inout or output
ERROR:HDLCompilers:208 - "../cmd_parser.v" line 53 Port reference 'reg36_RangeSincCoef' was not declared as input, inout or output
ERROR:HDLCompilers:208 - "../cmd_parser.v" line 85 Port reference 'tlm8_status1' was not declared as input, inout or output
ERROR:HDLCompilers:208 - "../cmd_parser.v" line 86 Port reference 'tlm8_status2' was not declared as input, inout or output
ERROR:HDLCompilers:208 - "../cmd_parser.v" line 87 Port reference 'tlm8_status3' was not declared as input, inout or output
ERROR:HDLCompilers:208 - "../cmd_parser.v" line 88 Port reference 'tlm8_status4' was not declared as input, inout or output
ERROR:HDLCompilers:208 - "../cmd_parser.v" line 58 Port reference 'reg37_2ndPreSumSincCoef' was not declared as input, inout or output
ERROR:HDLCompilers:208 - "../cmd_parser.v" line 55 Port reference 'reg36_3rdRangeSincCoef' was not declared as input, inout or output
ERROR:HDLCompilers:208 - "../cmd_parser.v" line 61 Port reference 'reg42_Qdopp' was not declared as input, inout or output
ERROR:HDLCompilers:208 - "../cmd_parser.v" line 83 Port reference 'tlm6_adc4V' was not declared as input, inout or output
ERROR:HDLCompilers:208 - "../cmd_parser.v" line 79 Port reference 'tlm2_CD_sadc' was not declared as input, inout or output
ERROR:HDLCompilers:208 - "../cmd_parser.v" line 82 Port reference 'tlm5_adc3V' was not declared as input, inout or output
ERROR:HDLCompilers:208 - "../cmd_parser.v" line 81 Port reference 'tlm4_adc2V' was not declared as input, inout or output
ERROR:HDLCompilers:208 - "../cmd_parser.v" line 80 Port reference 'tlm3_adc1V' was not declared as input, inout or output
任何建议都会有所帮助。我已经检查过,它似乎与寄存器阵列有问题。 感谢
答案 0 :(得分:0)
所以问题是您不允许为reg数组分配端口。这在SystemVerilog和VHDL中是允许的,但不是verilog。