当前位置:网站首页>VHDL design
VHDL design
2022-06-26 03:58:00 【@Landscape post yuan】
Libraries and packages (packages)
Declare constants that will be used in the design or entity , data type
Entity (Entities)
Declare interfaces to entities and designs , That is to define the input of this design 、 Out port
Structure (Architectures)
Defines the implementation of entities . That is, the specific description of the circuit
Or gate
LIBRARY IEEE; -- library , Package calls
USE IEEE.STD_LOGIC_1164.ALL
ENTITY MYORY2 IS -- Entity MYORY2 describe
PORT(A,B:IN STD_LOGIC;
C :OUT STD_LOGIC);
END MYORY2;
ARCHITECTURE ART1 OF MYOR2 IS
BEGIN -- Description of structure
C<=A OR B;
END ART1;Half adder
LIBRARY IEEE;
USE IEEE.STD_LOGIC_1164.ALL
ENTITY H_ADDER IS -- Entity H_ADDER describe
PORT(A,B:IN STD_LOGIC;
CO,SO:OUT STD_LOGIC);
END H_ADDER;
ARCHITECYURE ART2 OF H_ADDER IS -- Description of structure
BEGIN
SO<=(A OR B)AND(A NAND B);
CO<=NOT(A NAND B);
END ART2;Full adder
LIBRARY IEEE;
USE IEEE.STD_LOGIC_1164.ALL;
ENTITYY F_ADDER IS -- Entity F_ADDER describe
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 -- Component call declaration
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; -- Signal declaration
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;
边栏推荐
- 线程同步之读写锁
- 力扣 515. 在每个树行中找最大值
- ASP. Net core introduction
- Camera-memory内存泄漏分析(二)
- What if the serial port fails to open when the SCM uses stc-isp to download software?
- 判断两个集合的相同值 ||不同值
- Quanergy欢迎Lori Sundberg出任首席人力资源官
- Slide the menu of uni app custom components left and right and click switch to select and display in the middle
- 线程同步之条件变量
- Uni app custom selection date 1 (September 16, 2021)
猜你喜欢

Analysis of camera memory memory leakage (II)

Oracle technology sharing Oracle 19.14 upgrade 19.15

Can string be changed?

捕获数据包(Wireshark)

High performance computing center roce overview

Judge the same value of two sets 𞓜 different values

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

DETR3D 多2d图片3D检测框架

Uni app custom selection date 1 (September 16, 2021)

ABP framework Practice Series (III) - domain layer in depth
随机推荐
商城风格也可以很多变,DIY 了解一下
Open Camera异常分析(一)
如何解决 Iterative 半监督训练 在 ASR 训练中难以落地的问题丨RTC Dev Meetup
IEDA 突然找不到了compact middle packages
[collection of good books] from technology to products
matplotlib多条折线图,点散图
matplotlib折线图,文字显示,win10
2022.6.23-----leetcode. thirty
Is the waiting insurance record a waiting insurance evaluation? What is the relationship between the two?
YOLOv5改进:更换骨干网(Backbone)
Uni app custom selection date 2 (September 16, 2021)
Comparison of static methods and variables with instance methods and variables
力扣 515. 在每个树行中找最大值
外包干了四年,人直接废了。。。
Prism framework
2020 summary: industrial software development under Internet thinking
MySQL高級篇第一章(linux下安裝MySQL)【下】
XML parsing bean tool class
mysql 常用语句
Quanergy welcomes Lori sundberg as chief human resources officer