⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 example16-13.vhd

📁 vhdl 实例 通过实例学习vhdl 编程
💻 VHD
字号:
LIBRARY IEEE;
USE IEEE.std_logic_1164.all;
	
ENTITY pterm IS
		PORT (
			a: IN std_logic;
		b: IN std_logic;
			c: IN std_logic;
			d: IN std_logic;
		e: IN std_logic;
			f: IN std_logic;
			g: IN std_logic;
		h: IN std_logic;
			i: IN std_logic;
			j: IN std_logic;
		k: IN std_logic;
			l: IN std_logic;
			x: OUT std_logic
		);
END pterm;
	
ARCHITECTURE behave OF pterm IS
		SIGNAL x1: std_logic;
	SIGNAL x2: std_logic;
		SIGNAL x3: std_logic;
	ATTRIBUTE synthesis_off OF x1,x2,x3: SIGNAL IS true;
BEGIN
		x1<=(a and b) xor (c or d);
	x2<=(e and f) xor (g or h);
		x3<=(i and j) xor (k and l);
	x<=x1 xor x2 xor x3;  
END behave;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -