原理图就是便捷,你可以调用Quartus内嵌的各种功能模块,比如pll counter等等吧,但是你有时候实现的功能并不是它内嵌的就能解决的,这样你就要根据文本输入。如果你还是想在原理图里编辑,你可以将你的文本程序编译完之后生成原理图,在一个工程下可以直接调用。
貌似改成两个[3..0]的脚吧?用VHDL语言编写程序,让他自己去生成一个三八译码器就好了嘛,程序如下:
library IEEE;
use IEEE.Std_Logic_1164.ALL;
entity decoder IS
port (in1 : in Std_Logic_Vector(2 downto 0);
out1,out2 : out Std_Logic_Vector(3 downto 0));
end decoder;
architecture decoder38 of decoder is
begin
decoder:process(in1)
begin
case in1 is
when"000"=>out1<="00000001";
when"001"=>out1<="00000010";
when"010"=>out1<="00000100";
when"011"=>out1<="00001000";
when"100"=>out2<="00010000";
when"101"=>out2<="00100000";
when"110"=>out2<="01000000";
when"111"=>out2<="10000000";
when others=> null;
end case;
end process decoder;
end decoder38;
自己去实现吧,哈哈……
摘自动感居百科
在西安电子科技大学出版社出版的第三版《eda技术及应用中有》较为详细的叙述,百度这本书。