BBYR Achieve
返回信息流
这是一条镜像帖。来源:北邮人论坛 / embedded-system / #12721同步于 2012/10/27
Embedded_System机器人发帖

[问题]VHDL process语句下运行block语句有错? 跪求指点

wangkai123
2012/10/27镜像同步0 回复
p1:process(clk) begin btn0:block(btn="00000000") --not press begin if clk'event and clk='1' then if tmp=7 then tmp<=1; else tmp<=tmp+1; end if; end if; end block btn0; btn1:block(btn="00000001") --press btn0 (reset) begin ... end process p1; 错误显示:(第三句错误)Error (10500): VHDL syntax error at dianziqin.vhd(19) near text "block"; expecting "(", or an identifier ("block" is a reserved keyword), or a sequential statement (第四句错误)Error (10500): VHDL syntax error at dianziqin.vhd(20) near text "begin"; expecting ":=", or "<=" (第五句错误)Error (10500): VHDL syntax error at dianziqin.vhd(28) near text "block"; expecting "process" 实在不理解,如果不能这样做,那么怎么让进行选择后执行一个程序块(不是一行语句),我们实验课要让按不同的键,点阵显示不相同
订阅后,新回复会通过你的通知中心匿名送达。
0 条回复
暂无回复 · 你可以订阅本帖等待新回复。