;****************************************************** ; Listing 13 -- Counter configuration in a top-level ; entity ; "10 tips for generating reusable VHDL," ; EDN, August 19, 1999, pg. 49 ;****************************************************** library cntr_lib, vlsi_lib; configuration cntr_cfg of top is for inst for gpcntr : counter use entity cntr_lib.counter(behav) generic map (COUNT_ENABLE => 1, DOWN_COUNT => 1); end for; for wdcntr : counter use entity cntr_lib.counter(buffered) generic map (COUNT_ENABLE => 1, DOWN_COUNT => 0); for buffered for bufG -- Configure the generate statement for nib_i : non_inv_buffer use entity vlsi_lib.ni01d2(rtl); end for; end for; -- End bufG end for; -- End buffered end for; -- End wdcntr end for; -- End inst end cntr_cfg;