下載手機(jī)汽配人

題目9:數(shù)據(jù)分配器的VHDL描述(數(shù)據(jù)輸入端一個(gè),輸出端8個(gè))

提問者:網(wǎng)友 2018-07-19
最佳回答
LIBRARY IEEE; USE IEEE.STD_LOGIC_1164.ALL; ENTITY select1_8 IS PORT(Q:IN STD_LOGIC_VECTOR(3 DOWNTO 0); sel: IN STD_LOGIC_VECTOR(2 DOWNTO 0); D0,D1,D2,D3,D4,D5,D6,D7:OUT STD_LOGIC_VECTOR(3 DOWNTO 0)); END select1_8; ARCHITECTURE abc OF select1_8 IS BEGIN PROCESS(sel) BEGIN CASE sel IS WHEN "000"=> D0<=Q; WHEN "001"=> D1<=Q; WHEN "010" => D2<=Q; WHEN "011"=> D3<=Q; WHEN "100"=> D4<=Q; WHEN "101" => D5<=Q; WHEN "110"=> D6<=Q; WHEN OTHERS=> D7<=Q; END CASE; END PROCESS; END abc;
回答者:網(wǎng)友
產(chǎn)品精選
搜索問答
還沒有汽配人賬號?立即注冊

我要提問

汽配限時(shí)折扣

本頁是網(wǎng)友提供的關(guān)于“題目9:數(shù)據(jù)分配器的VHDL描述(數(shù)據(jù)輸入端一個(gè),輸出端8個(gè))”的解答,僅供您參考,汽配人網(wǎng)不保證該解答的準(zhǔn)確性。