-- FILE NAME: waves_device_SN54LS161.vhd -- -- DISCLAIMER -- -- This code is the sole property of the Institute for Technology -- Development (ITD), Jackson, Mississippi, and is distributed for -- the purpose of providing examples of VHDL models written to -- modeling standards. This code may not be used for commercial -- purposes, and may not be redistributed without permission from -- the Institute for Technology Development. ITD assumes no -- responsibility for errors, omissions, uses made, or decisions -- based on its use. No warranties, expressed or implied, are given. -- -- This is a modified IEEE WAVES package. It was written specifically -- to describe the test pins of the model being tested. -- -- ------------------------------------------------------------------ library WAVES_STANDARD ; use WAVES_STANDARD.Waves_Standard.all ; package body Waves_Device is function Pin_Name (Pin : Test_Pins) return String is begin case Pin is when TP_qa => return "QA" ; when TP_qb => return "QB" ; when TP_qc => return "QC" ; when TP_qd => return "QD" ; when TP_rc => return "RC" ; when TP_clr => return "CLR" ; when TP_clk => return "CLK" ; when TP_a => return "A" ; when TP_b => return "B" ; when TP_c => return "C" ; when TP_d => return "D" ; when TP_enp => return "ENP" ; when TP_load => return "LOAD" ; when TP_ent => return "ENT" ; end case ; end ; function header (input: Integer) return String is begin case input is when 1 => return "-- Q Q Q Q R C C A B C D E L E" ; when 2 => return "-- A B C D C L L . . . . N O N" ; when 3 => return "-- . . . . . R K . . . . P A T" ; when 4 => return "-- . . . . . . . . . . . . D ." ; when others => return "-- . . . . . . . . . . . . . ." ; end case ; end ; end Waves_Device ;