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

📄 compare.vhd

📁 modelsim+dc开发的4级流水线结构的MIPS CPU
💻 VHD
字号:
--compare the data out of mux1 and mux2library ieee;use ieee.std_logic_1164.all;use ieee.numeric_std.all;use work.mips_pack.all;entity compare is	port (mux1_in: in std_ulogic_vector(31 downto 0);	      mux2_in: in std_ulogic_vector(31 downto 0);	      s_out: out std_ulogic;	      e_out: out std_ulogic	     );end entity compare;architecture cmp of compare isbegin    process(mux1_in,mux2_in)        begin            s_out <= not mux1_in(31);             if (mux1_in xor mux2_in) = X"00000000" then                e_out <= '1';            else                 e_out <= '0';            end if;    end process;end architecture;

⌨️ 快捷键说明

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