我尝试在 FPGA LED 上为 KITT 扫描仪编写 VHDL 代码,但我需要更改此代码:
with state select
led1 <= '1' when forward1,
'0' when others;
with state select
led2 <= '1' when forward2,
'0' when others;
with state select
led3 <= '1' when forward3,
'0' when others;
with state select
led4 <= '1' when forward4,
'0' when others;
到
with state select
led1,led2,led3 <= '1' when forward1,
'0' when others;
with state select
led2, led3,led4 <= '1' when forward2,
'0' when others;
with state select
led3, led4,led5 <= '1' when forward2,
'0' when others;
但是当我这样做时,我收到错误 - 预期的“(”或另一个。如何更改此代码以更改乘法输出?