首页|嵌入式系统|显示技术|模拟IC/电源|元件与制造|其他IC/制程|消费类电子|无线/通信|汽车电子|工业控制|医疗电子|测试测量
首页 > 分享下载 > 常用文档 > EDA

EDA

资料介绍
EDA第五次作业


1)采用条件赋值语??
LRBRAR IEEE;
USE IEEE.STD_LOGIC_1164.ALL;
ENTITY YMQ3to8 IS
PORT ( DIN: IN STD_LOGIC_VETOR(2 DOWNTO 0;
DOUT : OUT BIT_VECTOR(7 DOWNTO 0);
END YMQ38;
ARCHITECTURE BHV OF YMQ38 IS
BEGIN
PROCESS(DIN)
BEGIN
WITH CONV_TNTEGER(DIN) SECLET








NAFFECTED WHEN OTHERS;
END BHV
2)CASE语句
LRBRAR IEEE;
USE IEEE.STD_LOGIC_1164.ALL;
ENTITY YMQ3to8 IS
PORT ( DIN: IN STD_LOGIC_VETOR(2 DOWNTO 0;
DOUT : OUT BIT_VECTOR(7 DOWNTO 0);
END YMQ38;
ARCHITECTURE BHV OF YMQ38 IS
BEGIN
PROCESS(DIN)
BEGIN
CASE CONV_TNTEGER(DIN) IS








WHEN OTHERS =>NULL
END CASE;

3)IF_ELSE语句
LRBRAR IEEE;
USE IEEE.STD_LOGIC_1164.ALL;
ENTITY YMQ3to8 IS
PORT ( DIN: IN STD_LOGIC_VETOR(2 DOWNTO 0;
DOUT……
标签:EDA第五次
EDA
本地下载
该用户资料分享

评论