-------------------------------------------------------------------------------- -- File Name: lvds1.vhd -------------------------------------------------------------------------------- -- Copyright (C) 2004 Free Model Foundry; http://www.FreeModelFoundry.com -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License version 2 as -- published by the Free Software Foundation. -- -- MODIFICATION HISTORY: -- -- version: | author: | mod date: | changes made: -- V1.0 R. Munden 04 Dec 24 Initial release -- -------------------------------------------------------------------------------- -- PART DESCRIPTION: -- -- Library: IF -- Technology: LVDS -- Part: LVDS1 -- -- Description: LVDS Differential Driver -------------------------------------------------------------------------------- LIBRARY IEEE; USE IEEE.std_logic_1164.ALL; USE IEEE.VITAL_timing.ALL; USE IEEE.VITAL_primitives.ALL; LIBRARY FMF; USE FMF.gen_utils.ALL; -------------------------------------------------------------------------------- -- ENTITY DECLARATION -------------------------------------------------------------------------------- ENTITY lvds1 IS GENERIC ( -- tipd delays: interconnect path delays tipd_D : VitalDelayType01 := VitalZeroDelay01; -- tpd delays tpd_D_Y : VitalDelayType01 := UnitDelay01; -- generic control parameters InstancePath : STRING := DefaultInstancePath; TimingChecksOn : BOOLEAN := DefaultTimingChecks; MsgOn : BOOLEAN := DefaultMsgOn; XOn : BOOLEAN := DefaultXon; -- For FMF SDF technology file usage TimingModel : STRING := DefaultTimingModel ); PORT ( Y : OUT std_ulogic := 'U'; Z : OUT std_ulogic := 'U'; D : IN std_ulogic := 'U' ); ATTRIBUTE VITAL_LEVEL0 of lvds1 : ENTITY IS TRUE; END lvds1; -------------------------------------------------------------------------------- -- ARCHITECTURE DECLARATION -------------------------------------------------------------------------------- ARCHITECTURE vhdl_behavioral of lvds1 IS ATTRIBUTE VITAL_LEVEL1 of vhdl_behavioral : ARCHITECTURE IS TRUE; SIGNAL D_ipd : std_ulogic := 'U'; BEGIN ---------------------------------------------------------------------------- -- Wire Delays ---------------------------------------------------------------------------- WireDelay : BLOCK BEGIN w_1 : VitalWireDelay (D_ipd, D, tipd_D); END BLOCK; ---------------------------------------------------------------------------- -- Main Behavior Process ---------------------------------------------------------------------------- VITALBehavior : PROCESS(D_ipd) -- Functionality Results Variables VARIABLE Y_zd : std_ulogic := 'U'; VARIABLE Z_zd : std_ulogic := 'U'; -- Output Glitch Detection Variables VARIABLE Y_GlitchData : VitalGlitchDataType; VARIABLE Z_GlitchData : VitalGlitchDataType; BEGIN ------------------------------------------------------------------------ -- Functionality Section ------------------------------------------------------------------------ Y_zd := VitalBUF (data => D_ipd); Z_zd := VitalINV (data => D_ipd); ------------------------------------------------------------------------ -- Path Delay Section ------------------------------------------------------------------------ VitalPathDelay01 ( OutSignal => Y, OutSignalName => "Y", OutTemp => Y_zd, Paths => ( 0 => (InputChangeTime => D_ipd'LAST_EVENT, PathDelay => tpd_D_Y, PathCondition => true)), GlitchData => Y_GlitchData ); VitalPathDelay01 ( OutSignal => Z, OutSignalName => "Z", OutTemp => Z_zd, Paths => ( 0 => (InputChangeTime => D_ipd'LAST_EVENT, PathDelay => tpd_D_Y, PathCondition => TRUE ) ), GlitchData => Z_GlitchData ); END PROCESS; END vhdl_behavioral;