|
ENTITY auction IS PORT (
clk: IN std_logic; -- Use rising edge
Reset: IN std_logic; -- Active high (pulled to '1' at start, then '0' otherwise)
Duration: IN std_logic_vector(23 DOWNTO 0); -- Length of the auction, in seconds
Time_Left: OUT std_logic_vector(23 DOWNTO 0); -- Remaining time left for the auction
Bid_Enable: IN std_logic; -- indicates that a bid has arrived
Bid_Amount: IN std_logic_vector(19 DOWNTO 0); -- Amount of the bid. $Unsigned
Win_Amount: OUT std_logic_vector(19 DOWNTO 0); -- Current winning amount. $Unsigned
Bidder_ID: IN std_logic_vector(31 DOWNTO 0); -- Identifier of a user with highest bid
Winner_id: OUT std_logic_vector(31 DOWNTO 0); -- Identifier of the winner (default=0)
END auction; |