Error (10206): Verilog HDL Module Declaration error at test_light.v(2): top module port "light" is not found in the port list。
解决:top module需要加上port list。
You have more than one JTAG cable available so you must use the --cable option
to choose between them (or open the "Run/Run" or "Run/Debug" dialog and go to
the "Target Connection" tab).
No --cable option was provided (or you selected Automatic)
解决:有多个Target Connection:需要指定其中的USB-BLASTER[USB]
仿真成功,下载到板上也没问题。但有个警告
Warning (10240): Verilog HDL Always Construct warning at Tube.v(46): inferring latch(es) for variable "DATA_R", which holds its previous value in one or more paths through the always construct
Warning: Latch DATA_R[0] has unsafe behavior
Warning: Ports D and ENA on the latch are fed by the same signal NUM[1]...............................