- Env_config中:Invalid type 'uart_config'. Please check the type of the variable 'UART_cfg'
Invalid type 'spi_slave_config'. Please check the type of the variable 'SPI_slave_cfg'
(vlog-2730) Undefined variable: 'UART_cfg'.
(vlog-2730) Undefined variable: 'SPI_slave_cfg'.
可能是顶层没有Import或者include底层的代码
因为我们输入了import my\_pkg::* ;所以仿真器才认识e\_signal
我们将import my\_pkg::***删掉再仿真,**仿真器会报出编译错误
** Error: **.sv(23): Invalid type'e_signal'. Please check the type of the variable 'my_sig'.
** Error: **.sv(30): (vlog-2730) Undefinedvariable: 'GREEN'.
【网上类似问题:页面重载开启
【https://aijishu.com/a/1060000000117909】
- spi_slave_if.sv(34): near "+": syntax error, unexpected '+'.
- uart_recv_if.sv" in read mode.[路径不对,或者属性不对,修改之后无法解决]
- spi_slave_generator.sv(30): (vlog-2400) Identifier ('spi_slave_config') found where a type or type identifier is required.—TBD
- spi_slave_generator.sv(30): near ")": syntax error, unexpected ')', expecting class.—可能是中英文拼写问题
- uart_recv_if.sv(19): Illegal use of 'automatic' for variable declaration (UCK_OUT).--TBD
- spi_slave_driver.sv(63): Function 'new' is allowed only in context of class constructor—TBD
- IPMfpga_tb_test_pkg.sv(23): (vlog-13006) Could not find the package (uart_pkg)-- 这个问题可能和questasim版本有关(vivado2012在这个问题上可能有bug),在升级版本后得到了解决: https://blog.csdn.net/wkonghua/article/details/119172834