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

📄 orca_cnt.vhd

📁 porting scintilla to qt
💻 VHD
📖 第 1 页 / 共 5 页
字号:
-- ---------------------------------------------------------------------- >>>>>>>>>>>>>>>>>>>>>>>>> COPYRIGHT NOTICE <<<<<<<<<<<<<<<<<<<<<<<<<-- ---------------------------------------------------------------------- Copyright (c) 2005 by Lattice Semiconductor Corporation-- --------------------------------------------------------------------------                     Lattice Semiconductor Corporation--                     5555 NE Moore Court--                     Hillsboro, OR 97214--                     U.S.A.----                     TEL: 1-800-Lattice  (USA and Canada)--                          1-408-826-6000 (other locations)----                     web: http://www.latticesemi.com/--                     email: techsupport@latticesemi.com---- ------------------------------------------------------------------------ Simulation Library File for EC/XP---- $Header: /home/dmsys/pvcs/RCSMigTest/rcs/vhdl/pkg/vhdsclibs/data/orca5mg/src/RCS/ORCA_CNT.vhd,v 1.5 2005/06/22 20:21:59 pradeep Exp $ -- ------- buf -------LIBRARY ieee;USE ieee.std_logic_1164.all;USE ieee.vital_timing.all;USE ieee.vital_primitives.all; -- entity declaration --ENTITY buf IS    GENERIC (        TimingChecksOn  : boolean := FALSE;        XOn             : boolean := FALSE;	MsgOn           : boolean := FALSE;        InstancePath    : string  := "buf";        tpd_a_z		: VitalDelayType01 := (0.001 ns, 0.001 ns);        tipd_a		: VitalDelayType01 := (0.0 ns, 0.0 ns)) ;     PORT (        a  : IN std_logic;        z  : OUT std_logic);     ATTRIBUTE Vital_Level0 OF buf : ENTITY IS TRUE; END buf ; -- architecture body --ARCHITECTURE v OF buf IS    ATTRIBUTE Vital_Level0 OF v : ARCHITECTURE IS TRUE;     SIGNAL a_ipd  : std_logic := 'X'; BEGIN    ---------------------   --  input path delays   ---------------------   WireDelay : BLOCK   BEGIN   VitalWireDelay(a_ipd, a, tipd_a);   END BLOCK;    --------------------   --  behavior section   --------------------   VitalBehavior : process (a_ipd)    -- functionality results   VARIABLE results : std_logic_vector(1 to 1) := (others => 'X');   ALIAS z_zd       : std_ulogic IS results(1);    -- output glitch detection VARIABLEs   VARIABLE z_GlitchData     : VitalGlitchDatatype;    BEGIN    IF (TimingChecksOn) THEN    -----------------------------------    -- no timing checks for a comb gate    -----------------------------------   END IF;    -----------------------------------   -- functionality section.   -----------------------------------   z_zd := VitalBuf(a_ipd);    -----------------------------------   -- path delay section.   -----------------------------------   VitalPathDelay01 (     OutSignal => z,     OutSignalName => "z",     OutTemp => z_zd,     Paths => (0 => (InputChangeTime => a_ipd'last_event, 		     PathDelay => tpd_a_z, 		     PathCondition => TRUE)),     GlitchData => z_GlitchData,     Mode => OnDetect, XOn => XOn, MsgOn => MsgOn);    END process; END v;------- cd2 -------LIBRARY ieee;USE ieee.std_logic_1164.all;USE ieee.vital_timing.all;USE ieee.vital_primitives.all;--LIBRARY work;USE work.components.all;ENTITY cd2 IS  GENERIC (    InstancePath  : string := "cd2");  PORT (    ci, pc0, pc1 : IN std_logic;    co, nc0, nc1 : OUT std_logic);     ATTRIBUTE Vital_Level0 OF cd2 : ENTITY IS TRUE; END cd2;ARCHITECTURE v OF cd2 IS  ATTRIBUTE Vital_Level0 OF v : ARCHITECTURE IS TRUE;  COMPONENT and2    PORT (      a, b: IN std_logic;      z: OUT std_logic);  END COMPONENT;  COMPONENT buf    PORT (      a: IN std_logic;      z: OUT std_logic);  END COMPONENT;  COMPONENT or3    PORT (      a, b, c: IN std_logic;      z: OUT std_logic);  END COMPONENT;  COMPONENT xnor2    PORT (      a, b: IN std_logic;      z: OUT std_logic);  END COMPONENT;  SIGNAL cii, i4, i6, i16, i18, i29, i31, i42: std_logic;BEGIN  inst11: and2 PORT MAP (a=>pc0, b=>cii, z=>i4);  inst12: or3 PORT MAP (a=>cii, b=>i4, c=>pc0, z=>i6);  inst13: xnor2 PORT MAP (a=>pc0, b=>cii, z=>nc0);  inst24: and2 PORT MAP (a=>pc1, b=>i6, z=>i16);  inst25: or3 PORT MAP (a=>i6, b=>i16, c=>pc1, z=>co);  inst26: xnor2 PORT MAP (a=>pc1, b=>i6, z=>nc1);  inst990: buf PORT MAP (a=>ci, z=>cii);END v;CONFIGURATION cd2c OF cd2 IS  FOR v    FOR ALL: and2 USE ENTITY work.and2(v); END FOR;    FOR ALL: buf USE ENTITY work.buf(v); END FOR;    FOR ALL: or3 USE ENTITY work.or3(v); END FOR;    FOR ALL: xnor2 USE ENTITY work.xnor2(v); END FOR;  END FOR;END cd2c;------- cu2 -------LIBRARY ieee;USE ieee.std_logic_1164.all;USE ieee.vital_timing.all;USE ieee.vital_primitives.all;--LIBRARY work;USE work.components.all;ENTITY cu2 IS  GENERIC (    InstancePath  : string := "cu2");  PORT (    ci, pc0, pc1: IN std_logic;    co, nc0, nc1: OUT std_logic);     ATTRIBUTE Vital_Level0 OF cu2 : ENTITY IS TRUE; END cu2;ARCHITECTURE v OF cu2 IS  ATTRIBUTE Vital_Level0 OF v : ARCHITECTURE IS TRUE;  COMPONENT and2    PORT (      a, b: IN std_logic;      z: OUT std_logic);  END COMPONENT;  COMPONENT buf    PORT (      a: IN std_logic;      z: OUT std_logic);  END COMPONENT;  COMPONENT xor2    PORT (      a, b: IN std_logic;      z: OUT std_logic);  END COMPONENT;  SIGNAL cii, i6, i18, i31: std_logic;BEGIN  inst11: and2 PORT MAP (a=>pc0, b=>cii, z=>i6);  inst13: xor2 PORT MAP (a=>pc0, b=>cii, z=>nc0);  inst24: and2 PORT MAP (a=>pc1, b=>i6, z=>co);  inst26: xor2 PORT MAP (a=>pc1, b=>i6, z=>nc1);  inst990: buf PORT MAP (a=>ci, z=>cii);END v;CONFIGURATION cu2c OF cu2 IS  FOR v    FOR ALL: and2 USE ENTITY work.and2(v); END FOR;    FOR ALL: buf USE ENTITY work.buf(v); END FOR;    FOR ALL: xor2 USE ENTITY work.xor2(v); END FOR;  END FOR;END cu2c;------- cb2 -------LIBRARY ieee;USE ieee.std_logic_1164.all;USE ieee.vital_timing.all;USE ieee.vital_primitives.all;----LIBRARY work;USE work.components.all;ENTITY cb2 IS  GENERIC (    InstancePath  : string := "cb2");  PORT (    ci, pc0, pc1, con: IN std_logic;    co, nc0, nc1: OUT std_logic);    ATTRIBUTE Vital_Level0 OF cb2 : ENTITY IS TRUE;END cb2;ARCHITECTURE v OF cb2 IS  ATTRIBUTE Vital_Level0 OF v : ARCHITECTURE IS TRUE;  COMPONENT and2    PORT (      a, b: IN std_logic;      z: OUT std_logic);  END COMPONENT;  COMPONENT buf    PORT (      a: IN std_logic;      z: OUT std_logic);  END COMPONENT;  COMPONENT inv    PORT (      a: IN std_logic;      z: OUT std_logic);  END COMPONENT;  COMPONENT or3    PORT (      a, b, c: IN std_logic;      z: OUT std_logic);  END COMPONENT;  COMPONENT xor3    PORT (      a, b, c: IN std_logic;      z: OUT std_logic);  END COMPONENT;  SIGNAL cii, conn, i3, i4, i5, i6, i17, i15, i16, coni: std_logic; BEGIN  inst10: and2 PORT MAP (a=>cii, b=>conn, z=>i3);  inst11: and2 PORT MAP (a=>pc0, b=>cii, z=>i4);  inst12: or3 PORT MAP (a=>i3, b=>i4, c=>i5, z=>i6);  inst13: xor3 PORT MAP (a=>pc0, b=>conn, c=>cii, z=>nc0);  inst2: and2 PORT MAP (a=>conn, b=>pc0, z=>i5);  inst22: and2 PORT MAP (a=>conn, b=>pc1, z=>i17);  inst23: and2 PORT MAP (a=>i6, b=>conn, z=>i15);  inst24: and2 PORT MAP (a=>pc1, b=>i6, z=>i16);  inst25: or3 PORT MAP (a=>i15, b=>i16, c=>i17, z=>co);  inst26: xor3 PORT MAP (a=>pc1, b=>conn, c=>i6, z=>nc1);  inst96: inv PORT MAP (a=>coni, z=>conn);  inst990: buf PORT MAP (a=>ci, z=>cii);  inst991: buf PORT MAP (a=>con, z=>coni);END v;CONFIGURATION cb2c OF cb2 IS  FOR v    FOR ALL: and2 USE ENTITY work.and2(v); END FOR;    FOR ALL: buf USE ENTITY work.buf(v); END FOR;    FOR ALL: inv USE ENTITY work.inv(v); END FOR;    FOR ALL: or3 USE ENTITY work.or3(v); END FOR;    FOR ALL: xor3 USE ENTITY work.xor3(v); END FOR;  END FOR;END cb2c;------- lb2p3ax -------LIBRARY ieee;USE ieee.std_logic_1164.all;USE ieee.vital_timing.all;USE ieee.vital_primitives.all;--LIBRARY work;USE work.components.all;ENTITY lb2p3ax IS  GENERIC (    gsr  : String := "ENABLED";    InstancePath  : string := "lb2p3ax");  PORT (    d0, d1, ci, sp, ck, sd, con: IN std_logic;    co, q0, q1: OUT std_logic);    ATTRIBUTE Vital_Level0 OF lb2p3ax : ENTITY IS TRUE;END lb2p3ax;ARCHITECTURE v OF lb2p3ax IS  ATTRIBUTE Vital_Level0 OF v : ARCHITECTURE IS TRUE;  COMPONENT and2    PORT (      a, b: IN std_logic;      z: OUT std_logic);  END COMPONENT;  COMPONENT buf    PORT (      a: IN std_logic;      z: OUT std_logic);  END COMPONENT;  COMPONENT fl1p3az    generic (gsr  : String := "ENABLED");    PORT (      d0, d1, sp, ck, sd: IN std_logic;      q: OUT std_logic);  END COMPONENT;  COMPONENT inv    PORT (      a: IN std_logic;      z: OUT std_logic);  END COMPONENT;  COMPONENT or3    PORT (      a, b, c: IN std_logic;      z: OUT std_logic);  END COMPONENT;  COMPONENT xor3    PORT (      a, b, c: IN std_logic;      z: OUT std_logic);  END COMPONENT;  SIGNAL q0_1, q1_1, cii, conn, i3, i4, i5, i6, i7, i17,    i15, i16, i19, coni: std_logic;BEGIN  inst10: and2 PORT MAP (a=>cii, b=>conn, z=>i3);  inst11: and2 PORT MAP (a=>q0_1, b=>cii, z=>i4);  inst12: or3 PORT MAP (a=>i3, b=>i4, c=>i5, z=>i6);  inst13: xor3 PORT MAP (a=>q0_1, b=>conn, c=>cii, z=>i7);  inst2: and2 PORT MAP (a=>conn, b=>q0_1, z=>i5);  inst22: and2 PORT MAP (a=>conn, b=>q1_1, z=>i17);  inst23: and2 PORT MAP (a=>i6, b=>conn, z=>i15);  inst24: and2 PORT MAP (a=>q1_1, b=>i6, z=>i16);  inst25: or3 PORT MAP (a=>i15, b=>i16, c=>i17, z=>co);  inst26: xor3 PORT MAP (a=>q1_1, b=>conn, c=>i6, z=>i19);  inst96: inv PORT MAP (a=>coni, z=>conn);  inst68: fl1p3az generic map (gsr => gsr)          PORT MAP (d0=>i7, d1=>d0, sp=>sp, ck=>ck, sd=>sd, q=> q0_1);  inst69: fl1p3az generic map (gsr => gsr)          PORT MAP (d0=>i19, d1=>d1, sp=>sp, ck=>ck, sd=>sd, q=> q1_1);  inst990: buf PORT MAP (a=>ci, z=>cii);  inst991: buf PORT MAP (a=>con, z=>coni);  q0 <= q0_1;  q1 <= q1_1;END v;CONFIGURATION lb2p3axc OF lb2p3ax IS  FOR v    FOR ALL: and2 USE ENTITY work.and2(v); END FOR;    FOR ALL: buf USE ENTITY work.buf(v); END FOR;    FOR ALL: fl1p3az USE ENTITY work.fl1p3az(v); END FOR;    FOR ALL: inv USE ENTITY work.inv(v); END FOR;    FOR ALL: or3 USE ENTITY work.or3(v); END FOR;    FOR ALL: xor3 USE ENTITY work.xor3(v); END FOR;  END FOR;END lb2p3axc;------- lb2p3ay -------LIBRARY ieee;USE ieee.std_logic_1164.all;USE ieee.vital_timing.all;USE ieee.vital_primitives.all;--LIBRARY work;USE work.components.all;ENTITY lb2p3ay IS  GENERIC (    gsr  : String := "ENABLED";    InstancePath  : string := "lb2p3ay");  PORT (    d0, d1, ci, sp, ck, sd, con: IN std_logic;    co, q0, q1: OUT std_logic);    ATTRIBUTE Vital_Level0 OF lb2p3ay : ENTITY IS TRUE;END lb2p3ay;ARCHITECTURE v OF lb2p3ay IS  ATTRIBUTE Vital_Level0 OF v : ARCHITECTURE IS TRUE;  COMPONENT and2    PORT (      a, b: IN std_logic;      z: OUT std_logic);  END COMPONENT;  COMPONENT buf    PORT (      a: IN std_logic;      z: OUT std_logic);  END COMPONENT;  COMPONENT fl1p3ay    generic (gsr  : String := "ENABLED");    PORT (      d0, d1, sp, ck, sd: IN std_logic;      q: OUT std_logic);  END COMPONENT;  COMPONENT inv    PORT (      a: IN std_logic;      z: OUT std_logic);  END COMPONENT;  COMPONENT or3    PORT (      a, b, c: IN std_logic;      z: OUT std_logic);  END COMPONENT;  COMPONENT xor3    PORT (      a, b, c: IN std_logic;      z: OUT std_logic);  END COMPONENT;  SIGNAL q0_1, q1_1, cii, conn, i3, i4, i5, i6, i7, i17,    i15, i16, i19, coni: std_logic;BEGIN  inst10: and2 PORT MAP (a=>cii, b=>conn, z=>i3);  inst11: and2 PORT MAP (a=>q0_1, b=>cii, z=>i4);  inst12: or3 PORT MAP (a=>i3, b=>i4, c=>i5, z=>i6);  inst13: xor3 PORT MAP (a=>q0_1, b=>conn, c=>cii, z=>i7);  inst2: and2 PORT MAP (a=>conn, b=>q0_1, z=>i5);  inst22: and2 PORT MAP (a=>conn, b=>q1_1, z=>i17);  inst23: and2 PORT MAP (a=>i6, b=>conn, z=>i15);  inst24: and2 PORT MAP (a=>q1_1, b=>i6, z=>i16);  inst25: or3 PORT MAP (a=>i15, b=>i16, c=>i17, z=>co);  inst26: xor3 PORT MAP (a=>q1_1, b=>conn, c=>i6, z=>i19);

⌨️ 快捷键说明

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