⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bit_logic_circuit.vhd

📁 thats the CPU source made by JI FENG
💻 VHD
字号:
library ieee;use ieee.std_logic_1164.all;entity bit_logic_circuit is    port (    A  : in std_logic;    B  : in std_logic;     S0 : in std_logic;    S1 : in std_logic;    G  : out std_logic);end bit_logic_circuit;architecture rtl of bit_logic_circuit issignal S : std_logic_vector(1 downto 0);begin  -- rtl S <= S1 & S0;process(S,A,B)begin  case S is    when "00" => G<=A and B ;    when "01" => G<= A or B;    when "10" => G<= A xor B;    when "11" => G<= not(A);    when others => null;  end case;end PROCESS;end rtl;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -