URL
https://opencores.org/ocsvn/parallel_search_for_maximum_weight/parallel_search_for_maximum_weight/trunk
Show entire file |
Details |
Blame |
View Log
Rev 2 |
Rev 8 |
Line 1... |
Line 1... |
|
library ieee;
|
|
use ieee.std_logic_1164.all;
|
|
use work.basic_size.all;
|
|
entity carry_cell_NAND is
|
|
port(
|
|
a: IN std_logic;
|
|
b: IN std_logic;
|
|
choose_prev_bar : in std_logic;
|
|
found_prev_bar : in std_logic;
|
|
choose_cur : out std_logic;
|
|
found_cur : out std_logic
|
|
);
|
|
end carry_cell_NAND;
|
|
architecture behav of carry_cell_NAND is
|
|
|
No newline at end of file
|
No newline at end of file
|
|
SIGNAL found: std_logic;
|
|
SIGNAL choose: std_logic;
|
|
SIGNAL gci: std_logic;
|
|
SIGNAL gfi: std_logic;
|
|
begin
|
|
gci <= (NOT a) NOR b;
|
|
gfi <= ( a XNOR b);
|
|
choose_cur <= choose_prev_bar NAND (found_prev_bar NAND gci);
|
|
found_cur <= found_prev_bar NAND gfi;
|
|
end behav;
|
No newline at end of file
|
No newline at end of file
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.