Klemens Schölhorn
29bb72c4ff
Tested with two BitConnector breakout boards [1]. [1]: https://github.com/1ux/BitConnector
31 lines
611 B
VHDL
31 lines
611 B
VHDL
library ieee;
|
|
|
|
use ieee.std_logic_1164.all;
|
|
|
|
entity CPLD1 is
|
|
port (
|
|
func: in std_logic_vector(3 downto 0);
|
|
accu: in std_logic_vector(5 downto 0);
|
|
ram: in std_logic_vector(5 downto 0);
|
|
result: out std_logic_vector(5 downto 0);
|
|
carry_out: out std_logic
|
|
);
|
|
end CPLD1;
|
|
|
|
architecture rtl of CPLD1 is
|
|
begin
|
|
|
|
alu: entity work.alu generic map (
|
|
WIDTH => 6,
|
|
FIRST => true
|
|
) port map (
|
|
func => func,
|
|
accu => accu,
|
|
ram => ram,
|
|
carry_in => '0',
|
|
result => result,
|
|
carry_out => carry_out
|
|
);
|
|
|
|
end rtl;
|