设计四个开关控制一盏灯的逻辑电路,要求合任一开关,灯亮;断任一开关,灯灭。(即任一开关的合断改变原来灯亮灭的状态)
在QUARTUS 2 里面怎么编译
SUBDESIGN t3_2
(
k0,k1,k2,k3:INPUT;
out: OUTPUT;
)
BEGIN
TABLE
(k3,k2,k1,k0) => out;
B"0000" => GND;
B"0001" => VCC;
B"0011" => GND;
B"0010" => VCC;
B"0110" => GND;
B"0111" => VCC;
B"0101" => GND;
B"0100" => VCC;
B"1100" => GND;
B"1101" => VCC;
B"1111" => GND;
B"1110" => VCC;
B"1010" => GND;
B"1011" => VCC;
B"1001" => GND;
B"1000" => VCC;
END TABLE;
END;
这个错在哪里了?
一个为理想不懈前进的人,一个永不言败人!
http://shop57496282.taobao.com/
欢迎光临网上店铺!