-- +---------------------------+ -- | Copyright 1996 DOULOS | -- | Generic Library | -- | opened: 16 Feb 1995 | -- +---------------------------+ -- Function: library ieee; library vfp; package generic_functions is use ieee.std_logic_1164.all; use vfp.twos_complement_types.all; function integer_wordlength (a: integer) return integer; -- 25.11.95 function next_greater_binary_power_minus_1 (a: integer) return integer; -- 14.02.95 function longest (a, b: std_ulogic_vector) return integer; -- 25.11.95 function longest (a, b: std_logic_vector) return integer; -- 25.11.95 function longest (a, b: twos_complement) return integer; -- 20.03.95 function is_factor_of_32 (a: integer) return boolean; -- 15.11.95 function is_power_of_2 (a: integer) return boolean; -- 15.11.95 function log_2 (a: integer) return integer; -- 15.11.95 function log_2 (a: std_ulogic_vector) return integer; -- 15.11.95 -- NON-SYNTHESISABLE VHDL BEGIN function longest (a, b: time) return time; -- 10.05.95 function longest (a, b, c: time) return time; -- 31.05.95 function longest (a, b, c, d: time) return time; -- 31.05.95 function longest (a, b, c, d, e: time) return time; -- 31.05.95 function longest (a, b, c, d, e, f: time) return time; -- 31.05.95 function longest (a, b, c, d, e, f, g: time) return time; -- 31.05.95 function longest (a, b, c, d, e, f, g, h: time) return time; -- 31.05.95 function longest (a, b, c, d, e, f, g, h, i: time) return time; -- 31.05.95 function posedge (signal a: std_ulogic) return boolean; -- 04.12.95 function negedge (signal a: std_ulogic) return boolean; -- 04.12.95 -- NON-SYNTHESISABLE VHDL END function abs_wordlength (a: twos_complement) return integer; -- 20.03.95 end generic_functions; <div align="center"><br /><script type="text/javascript"><!-- google_ad_client = "pub-7293844627074885"; //468x60, Created at 07. 11. 25 google_ad_slot = "8619794253"; google_ad_width = 468; google_ad_height = 60; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script><br /> </div>