-- -------------------------------------------------------------------------- -- -- Title : Draft Standard VHDL 1076.1 Multi Energy Domain Packages. -- -- Library : This package shall be compiled into a library symbolically -- : named IEEE. -- -- Developers : IEEE 1076.1 Working Group, -- (to be changed with the actual WG PAR number). -- -- Purpose : This package contains declarations for modeling in the -- : electrical energy domain. -- -- Note : -- -- -------------------------------------------------------------------------- -- Modification History : -- -- Version Date Description -- 1.0 6 July 2001 Original version. -- -------------------------------------------------------------------------- library IEEE; use IEEE.ENERGY_SYSTEMS.all; package ELECTRICAL_SYSTEMS is -- type declarations -- subtype declarations subtype VOLTAGE is REAL tolerance "DEFAULT_VOLTAGE"; subtype CURRENT is REAL tolerance "DEFAULT_CURRENT"; subtype CHARGE is REAL tolerance "DEFAULT_CHARGE"; subtype RESISTANCE is REAL tolerance "DEFAULT_RESISTANCE"; subtype CAPACITANCE is REAL tolerance "DEFAULT_CAPACITANCE" ; subtype MMF is REAL tolerance "DEFAULT_MMF"; subtype FLUX is REAL tolerance "DEFAULT_FLUX"; subtype INDUCTANCE is REAL tolerance "DEFAULT_INDUCTANCE"; -- nature declarations nature ELECTRICAL is VOLTAGE across CURRENT through ELECTRICAL_REF reference; nature ELECTRICAL_VECTOR is array (NATURAL range <>) of ELECTRICAL; nature MAGNETIC is MMF across FLUX through MAGNETIC_REF reference; nature MAGNETIC_VECTOR is array (NATURAL range <>) of MAGNETIC; -- subnature declarations -- object declarations -- attribute declarations attribute SYMBOL of VOLTAGE : subtype is "Volt"; attribute SYMBOL of CURRENT : subtype is "Ampere"; attribute SYMBOL of CHARGE : subtype is "Coulomb"; attribute SYMBOL of RESISTANCE : subtype is "Ohm"; attribute SYMBOL of CAPACITANCE : subtype is "Farad"; attribute SYMBOL of MMF : subtype is "Ampere-Turns"; attribute SYMBOL of FLUX : subtype is "Weber"; attribute SYMBOL of INDUCTANCE : subtype is "Henry"; -- operation declarations (e.g., subprograms) -- alias declarations alias GROUND is ELECTRICAL_REF; end package ELECTRICAL_SYSTEMS;