FPGA编译错误
Info:*******************************************************************Info:RunningQ...
Info: *******************************************************************
Info: Running Quartus II Analysis & Synthesis
Info: Version 11.0 Build 157 04/27/2011 SJ Full Version
Info: Processing started: Wed Dec 11 12:32:12 2013
Info: Version 11.0 Build 157 04/27/2011 SJ Full Version
Info: Processing started: Wed Dec 11 12:32:12 2013
Info: Command: quartus_map --read_settings_files=on --write_settings_files=off rd -c rd
Info: Parallel compilation is enabled and will use 2 of the 2 processors detected
Info: Found 1 design units, including 1 entities, in source file /altera/lichen/lic/led_water/rd.v
Info: Found entity 1: led_light
Info: Found entity 1: led_light
Error (10228): Verilog HDL error at led_light.v(1): module "led_light" cannot be declared more than once
Info (10499): HDL info at rd.v(1): see declaration for object "led_light"
Info: Found 0 design units, including 0 entities, in source file /altera/lichen/lic/led_water/led_light.v
Error: Quartus II Analysis & Synthesis was unsuccessful. 1 error, 0 warnings
Error: Peak virtual memory: 254 megabytes
Error: Processing ended: Wed Dec 11 12:32:12 2013
Error: Elapsed time: 00:00:00
Error: Total CPU time (on all processors): 00:00:01
Error: Peak virtual memory: 254 megabytes
Error: Processing ended: Wed Dec 11 12:32:12 2013
Error: Elapsed time: 00:00:00
Error: Total CPU time (on all processors): 00:00:01
Error: Quartus II Full Compilation was unsuccessful. 3 errors, 0 warnings
怎么处理
附上代码{
module led_light(led);
output[3:0] led;
assign led=3'b10;
endmodule
} 展开
Info: Running Quartus II Analysis & Synthesis
Info: Version 11.0 Build 157 04/27/2011 SJ Full Version
Info: Processing started: Wed Dec 11 12:32:12 2013
Info: Version 11.0 Build 157 04/27/2011 SJ Full Version
Info: Processing started: Wed Dec 11 12:32:12 2013
Info: Command: quartus_map --read_settings_files=on --write_settings_files=off rd -c rd
Info: Parallel compilation is enabled and will use 2 of the 2 processors detected
Info: Found 1 design units, including 1 entities, in source file /altera/lichen/lic/led_water/rd.v
Info: Found entity 1: led_light
Info: Found entity 1: led_light
Error (10228): Verilog HDL error at led_light.v(1): module "led_light" cannot be declared more than once
Info (10499): HDL info at rd.v(1): see declaration for object "led_light"
Info: Found 0 design units, including 0 entities, in source file /altera/lichen/lic/led_water/led_light.v
Error: Quartus II Analysis & Synthesis was unsuccessful. 1 error, 0 warnings
Error: Peak virtual memory: 254 megabytes
Error: Processing ended: Wed Dec 11 12:32:12 2013
Error: Elapsed time: 00:00:00
Error: Total CPU time (on all processors): 00:00:01
Error: Peak virtual memory: 254 megabytes
Error: Processing ended: Wed Dec 11 12:32:12 2013
Error: Elapsed time: 00:00:00
Error: Total CPU time (on all processors): 00:00:01
Error: Quartus II Full Compilation was unsuccessful. 3 errors, 0 warnings
怎么处理
附上代码{
module led_light(led);
output[3:0] led;
assign led=3'b10;
endmodule
} 展开
3个回答
展开全部
Error (10228): Verilog HDL error at led_light.v(1): module "led_light" cannot be declared more than once
你在这个工程里建立了不止一个名为led_light的.v文件应该,你在工程里查看修改一下应该就行了,而且你的 assign led=3‘b10;也应该是个warning 3bit的数至少应该是 led=3’b010;
你在这个工程里建立了不止一个名为led_light的.v文件应该,你在工程里查看修改一下应该就行了,而且你的 assign led=3‘b10;也应该是个warning 3bit的数至少应该是 led=3’b010;
意法半导体(中国)投资有限公司
2023-06-12 广告
2023-06-12 广告
STM32F103是一款高性能的嵌入式芯片,由意法半导体(STMicroelectronics)公司生产。它是STM32系列芯片之一,具有紧凑、低功耗、高性能等特点,被广泛应用于嵌入式系统中。STM32F103的主要特点包括:1. 集成了A...
点击进入详情页
本回答由意法半导体(中国)投资有限公司提供
展开全部
从错误报告上来看,应该是led_light被申明了两次。
楼上说的不对,模块是可以没有输入的,没有输入的模块就相当于直接把输出接地或者接电源。
楼上说的不对,模块是可以没有输入的,没有输入的模块就相当于直接把输出接地或者接电源。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
数字电路基础有待加强;
led_light模块,没有clk信号,没有任何输入,若果是非时序电路,也应该有输入,不然的话,直接把响应的信号接地或者VCC
led_light模块,没有clk信号,没有任何输入,若果是非时序电路,也应该有输入,不然的话,直接把响应的信号接地或者VCC
追问
是完全新手,不是有待加强
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询