or2.vhd

来自「The objective of this projectis to desig」· VHDL 代码 · 共 30 行

VHD
30
字号
-- OR2 MODELUSE WORK.ALL;entity OR2 is    generic(constant TPLH:TIME:=4 ns;            constant TPHL:TIME:=6 ns);	    port ( I1,I2:in BIT; O: out BIT);end OR2;architecture BEH of OR2 ISbeginP1: process(I1)variable O_TEM:BIT:='0';variable O_TEM_M:BIT; 	BEGIN	O_TEM_M := I1 OR I2 ;	if ( O_TEM='0' AND O_TEM_M='1') then	   O <= I1 OR I2 after TPLH;	   elsif (O_TEM='1' AND O_TEM_M='0') then	        O <= I1 OR I2 after TPHL; 	        else O <= I1 OR I2 ;	 end if;	  O_TEM:= I1 OR I2 ;end process P1;end BEH;

⌨️ 快捷键说明

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