帮忙看一下verilog错误原因,多谢!

lee887 lee887 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
#module ls1(clk,rst_m,fm);

input clk;//时钟信号50MHZ
input rst_m;//复位,低电平有效
output fm;//蜂鸣器 0--响,1--不响

reg(5:0) cnt;

always @(posedge clk or negedge rst_m)
if(rst_m) cnt <=6'd0;
else if(cnt<49) cnt=cnt+1'b1;
else cat=6'd0;

assign fm=(cnt <= 6'd24)?1'b0:1'b1;

endmodule

这是程序 编译结果有错误
Warning (20028): Parallel compilation is not licensed and has been disabled
Error (10170): Verilog HDL syntax error at ls1.v(1) near text "#"; expecting a description
Error: Quartus II 32-bit Hierarchy Elaboration was unsuccessful. 1 error, 1 warning
Error: Peak virtual memory: 332 megabytes
Error: Processing ended: Sun Dec 29 12:26:33 2013
Error: Elapsed time: 00:00:01
Error: Total CPU time (on all processors): 00:00:01
...全文
评论 5
收藏 已收藏
分享
返回顶部
lee887
硬件设计 6,172 成员 11,288 内容