全部身家64块,求二进制的转换电路,最好纯数字电路,单片机最小系统做出来也行。
只有这么多钱了,0表示低电平,1表示高电平5V,5V供电。四进三出,输入会随时变化的,转换速度最好快点。
0000 101
1000 101
1100 101
0100 100
0110 100
1110 110
1010 110
0010 110
0011 010
1011 010
1111 010
0111 011
1101 011
0101 001
1001 001
0001 001
左边四个输入,右边3个输出。
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
entity conv_4_3 is
Port ( Data_In : in STD_LOGIC_VECTOR (3 downto 0);
Data_Out : out STD_LOGIC_VECTOR (2 downto 0));
end conv_4_3;
architecture Behavioral of conv_4_3 is
begin
process(Data_In)
begin
case Data_In is
when "0000" => Data_Out <= "101";
when "1000" => Data_Out <= "101";
when "1100" => Data_Out <= "101";
when "0100" => Data_Out <= "100";
when "0110" => Data_Out <= "100";
when "1110" => Data_Out <= "110";
when "1010" => Data_Out <= "110";
when "0010" => Data_Out <= "110";
when "0011" => Data_Out <= "010";
when "1011" => Data_Out <= "010";
when "1111" => Data_Out <= "010";
when "0111" => Data_Out <= "011";
when "1101" => Data_Out <= "011";
when "0101" => Data_Out <= "001";
when "1001" => Data_Out <= "001";
when "0001" => Data_Out <= "001";
when others => null;
end case;
end process;
end Behavioral;
综合出来的结果是一个prom
因为序列的左边相当于地址
右边相当于存储的数据
一块CPLD搞定
一周热门 更多>