-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCLAadder.vhd
executable file
·62 lines (47 loc) · 1.74 KB
/
CLAadder.vhd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
-- WARNING: Do NOT edit the input and output ports in this file in a text
-- editor if you plan to continue editing the block that represents it in
-- the Block Editor! File corruption is VERY likely to occur.
-- Copyright (C) 1991-2008 Altera Corporation
-- Your use of Altera Corporation's design tools, logic functions
-- and other software and tools, and its AMPP partner logic
-- functions, and any output files from any of the foregoing
-- (including device programming or simulation files), and any
-- associated documentation or information are expressly subject
-- to the terms and conditions of the Altera Program License
-- Subscription Agreement, Altera MegaCore Function License
-- Agreement, or other applicable license agreement, including,
-- without limitation, that your use is for the sole purpose of
-- programming logic devices manufactured by Altera and sold by
-- Altera or its authorized distributors. Please refer to the
-- applicable agreement for further details.
-- Generated by Quartus II Version 8.0 (Build Build 231 07/10/2008)
-- Created on Fri Oct 14 13:36:10 2011
LIBRARY ieee;
USE ieee.std_logic_1164.all;
-- Entity Declaration
ENTITY CLAadder IS
-- {{ALTERA_IO_BEGIN}} DO NOT REMOVE THIS LINE!
PORT
(
A : IN STD_LOGIC;
B : IN STD_LOGIC;
Cin : IN STD_LOGIC;
Sout : OUT STD_LOGIC;
Gout : OUT STD_LOGIC;
Pout : OUT STD_LOGIC
);
-- {{ALTERA_IO_END}} DO NOT REMOVE THIS LINE!
END CLAadder;
-- Architecture Body
ARCHITECTURE CLAadder_architecture OF CLAadder IS
BEGIN
process (A,B,Cin)
variable P,G:STD_LOGIC;
begin
G := A and B;
P := A xor B;
Sout <= P xor Cin;
Gout <= G;
Pout <= P;
end process;
END CLAadder_architecture;