branch_control.vhd
来自「thats the CPU source made by JI FENG」· VHDL 代码 · 共 31 行
VHD
31 行
library ieee;use ieee.std_logic_1164.all;entity branch_control is port ( V, C, N, Z : in std_logic; PL, JB, BC : in std_logic; PL_tmp, JB_tmp, BC_tmp : out std_logic);end branch_control;architecture rtl of branch_control isbegin -- rtlprocess(N,Z,PL,JB,BC) begin PL_tmp <= PL; JB_tmp <= JB; if N = '1' and BC ='1' then BC_tmp <= '1'; elsif Z = '1' and BC ='0' then BC_tmp <= '0'; else BC_tmp <= 'Z'; end if;end process; end rtl;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?