假定已經(jīng)有許多應(yīng)用采用了程序1 - 1 5中所定義的C u r r e n c y類,現(xiàn)在我們想要對(duì)C u r r e n c y類
的描述進(jìn)行修改,使其應(yīng)用頻率最高的兩個(gè)函數(shù)A d d和I n c r e m e n t可以運(yùn)行得更快,從而提高應(yīng)
用程序的執(zhí)行速度。由于用戶僅能通過p u b l i c部分所提供的接口與C u r r e n c y類進(jìn)行交互,
第二個(gè)搜索函數(shù)為私有成員函數(shù)S a v e S e a r c h,由插入和刪除操作來調(diào)用。S a v e S e a r c h不僅
包含了S e a r c h的功能,而且可把每一級(jí)中遇到的最后一個(gè)節(jié)點(diǎn)存放在數(shù)組l a s t之中
-- Booth Multiplier
-- This file contains all the entity-architectures for a complete
-- k-bit x k-bit Booth multiplier.
-- the design makes use of the new shift operators available in the VHDL-93 std
-- this design passes the Synplify synthesis check