当前位置:网站首页>VHDL设计
VHDL设计
2022-06-26 03:54:00 【@风景邮递Yuan】
库及程序包(packages)
声明在设计或实体中将用到的常数,数据类型
实体(Entities)
声明到实体以及设计的接口,即定义本设计的输入、出端口
结构体(Architectures)
定义了实体的实现。即电路的具体描述
或门
LIBRARY IEEE; --库,程序包调用
USE IEEE.STD_LOGIC_1164.ALL
ENTITY MYORY2 IS --实体MYORY2描述
PORT(A,B:IN STD_LOGIC;
C :OUT STD_LOGIC);
END MYORY2;
ARCHITECTURE ART1 OF MYOR2 IS
BEGIN --结构体描述
C<=A OR B;
END ART1;半加器
LIBRARY IEEE;
USE IEEE.STD_LOGIC_1164.ALL
ENTITY H_ADDER IS --实体H_ADDER描述
PORT(A,B:IN STD_LOGIC;
CO,SO:OUT STD_LOGIC);
END H_ADDER;
ARCHITECYURE ART2 OF H_ADDER IS --结构体描述
BEGIN
SO<=(A OR B)AND(A NAND B);
CO<=NOT(A NAND B);
END ART2;全加器
LIBRARY IEEE;
USE IEEE.STD_LOGIC_1164.ALL;
ENTITYY F_ADDER IS --实体F_ADDER描述
PORT(AIN,BIN,CIN:IN STD_LOGIC;
CY,SUM:OUT:OUT STD_LOGIC);
END F_ADDER;
ARCHITECTURE ART3 OF F_ADDER IS
COMPONENT H_ADDER --元件调用声明
PORT(A,B:IN STD_LOGIC;
CO,SO:OUT STD_LOGIC);
END COMPONENT;
COMPONENT MYOR2
PORT(A,B:IN STD_LOGIC;
C:OUT STD_LOGIC);
END COMPONENT;
SIGNAL D,E,F:STD_LOGIC; --信号声明
BEGIN
U1:H_ADDER PORT MAY(A=>AIN,B=>BIN
CO=>D,SO=>E);
U2:H_ADDER PORT MAY(A=>E,B=>CIN,
CO=>F,SO=>SUM);
U3:OR2 PORT MAY(A=>D,B=>F,C=>CY);
END ART3;
边栏推荐
- Detr3d multi 2D picture 3D detection framework
- Sqlitestudio download address
- I/o virtualization technology - UIO framework
- [MySQL] MySQL export database
- Pay attention to the entrance components of official account in the applet
- Webrtc series - 6-connections tailoring for network transmission
- matplotlib折线图,文字显示,win10
- 169. 多数元素
- 2022.6.24-----leetcode. five hundred and fifteen
- Matplotlib line chart, text display, win10
猜你喜欢

Dix critères de base importants pour les essais de débogage de logiciels

Unity移动端游戏性能优化简谱之 以引擎模块为划分的CPU耗时调优

軟件調試測試的十大重要基本准則

软件调试测试的十大重要基本准则

ASP. Net core introduction

【好书集锦】从技术到产品

Detr3d multi 2D picture 3D detection framework

User control custom DependencyProperty

Camera-CreateCaptureSession

Judge the same value of two sets 𞓜 different values
随机推荐
asp.net网页选择身份进行登录的简单代码,asp连接数据库,使用asp:Panel、asp:DropDownList控件
Uni app, the text implementation expands and retracts the full text
ABP framework
R语言与机器学习
MySQL高級篇第一章(linux下安裝MySQL)【下】
Open camera anomaly analysis (I)
用eclipse连mysql数据库出错然后出现图中的话是咋回事呀
Kotlin learning apply plugin: 'kotlin Android extensions‘
What does virtualization mean? What technologies are included? What is the difference with private cloud?
An error occurred using the connection to database 'on server' 10.28.253.2‘
TiFlash 函数下推必知必会丨十分钟成为 TiFlash Contributor
"Renegotiation" agreement
Optimization - multi objective planning
Camera memory memory leak analysis (III)
When the tiflash function is pushed down, it must be known that it will become a tiflash contributor in ten minutes
而是互联网开始有了新的进化,开始以一种全新的状态出现
Webrtc series - 7-ice supplement of network transmission preference and priority
Evaluation - analytic hierarchy process
[collection of good books] from technology to products
English version of ternary loss