changes in vhdl file and add LUT.jpg file
This commit is contained in:
BIN
Binary file not shown.
|
After Width: | Height: | Size: 287 KiB |
+11
-29
@@ -1,20 +1,14 @@
|
|||||||
-----------------------------
|
-----------------------------
|
||||||
-- Author
|
-- Imants Pulkstenis
|
||||||
-- Date
|
-- 10.02.2020
|
||||||
-- Project name
|
-- RTR532 PS1
|
||||||
-- Module name
|
-- PS1
|
||||||
--
|
|
||||||
-- Detailed module description
|
|
||||||
--
|
|
||||||
--
|
|
||||||
--
|
|
||||||
--
|
|
||||||
--
|
|
||||||
--
|
--
|
||||||
|
-- Task 2 for Problem set #1 – My first VHDL code
|
||||||
--
|
--
|
||||||
-- Revision:
|
-- Revision:
|
||||||
-- A - initial design
|
-- A - initial design
|
||||||
-- B -
|
--
|
||||||
--
|
--
|
||||||
-----------------------------
|
-----------------------------
|
||||||
|
|
||||||
@@ -31,7 +25,7 @@ port
|
|||||||
a : in std_Logic;
|
a : in std_Logic;
|
||||||
b : in std_logic;
|
b : in std_logic;
|
||||||
c : in std_logic;
|
c : in std_logic;
|
||||||
y1 : out std_logic;
|
y1 : out std_logic;
|
||||||
y2 : out std_logic
|
y2 : out std_logic
|
||||||
);
|
);
|
||||||
end ps01q;
|
end ps01q;
|
||||||
@@ -43,28 +37,16 @@ architecture behavioral of ps01q is
|
|||||||
signal SIG_INTERNAL : std_logic;
|
signal SIG_INTERNAL : std_logic;
|
||||||
|
|
||||||
|
|
||||||
begin -- jums jaalabo tikai taalaakais.
|
begin
|
||||||
|
|
||||||
|
|
||||||
--gate one
|
--gate one
|
||||||
SIG_INTERNAL <= A and B;
|
SIG_INTERNAL <= A xor B;
|
||||||
|
|
||||||
|
|
||||||
--gate two
|
--gate two
|
||||||
Y2 <= C and SIG_INTERNAL;
|
Y2 <= C xnor SIG_INTERNAL;
|
||||||
|
|
||||||
|
|
||||||
--gate three
|
--gate three
|
||||||
Y1 <= A and B;
|
Y1 <= A nor B; -- in assigment gate three is not ?????
|
||||||
|
|
||||||
|
|
||||||
--logic gate izsauksanas keywordi:
|
|
||||||
-- not
|
|
||||||
-- and, nand,
|
|
||||||
-- or, xor, nor, xnor
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
end behavioral;
|
end behavioral;
|
||||||
|
|||||||
Reference in New Issue
Block a user