Add I2C Entity
This commit is contained in:
parent
c5853fc280
commit
c1ddd00634
|
@ -0,0 +1,26 @@
|
||||||
|
-- I2C.vhd
|
||||||
|
-- Date: Wed Jan 31 13:05:40 2024
|
||||||
|
-- Author: Yannick Reiß
|
||||||
|
-- E-Mail: schnick@nickr.eu
|
||||||
|
library IEEE;
|
||||||
|
use IEEE.std_logic_1164.all;
|
||||||
|
use IEEE.numeric_std.all;
|
||||||
|
|
||||||
|
entity I2C is
|
||||||
|
port (
|
||||||
|
Clk : in std_logic;
|
||||||
|
SDA_In : in std_logic;
|
||||||
|
SDL_In : in std_logic;
|
||||||
|
ClientR : in std_logic_vector(15 downto 0);
|
||||||
|
ServerR : in std_logic_vector(15 downto 0);
|
||||||
|
SDA_Out : out std_logic;
|
||||||
|
SDL_Out : out std_logic;
|
||||||
|
ClientW : out std_logic_vector(15 downto 0)
|
||||||
|
);
|
||||||
|
end I2C;
|
||||||
|
|
||||||
|
architecture Implementation of I2C is
|
||||||
|
|
||||||
|
begin
|
||||||
|
|
||||||
|
end Implementation;
|
|
@ -117,6 +117,18 @@ begin
|
||||||
Addr => InstructionCounter
|
Addr => InstructionCounter
|
||||||
);
|
);
|
||||||
|
|
||||||
|
I2C_Adapter : entity work.I2C(Implementation)
|
||||||
|
port map(
|
||||||
|
Clk => Clk,
|
||||||
|
SDA_In => SDA,
|
||||||
|
SDL_In => SDL,
|
||||||
|
ClientR => I2CClient,
|
||||||
|
ServerR => I2CServer,
|
||||||
|
SDA_Out => SDA,
|
||||||
|
SDL_Out => SDA,
|
||||||
|
ClientW => I2CClient
|
||||||
|
);
|
||||||
|
|
||||||
AluSetInput : process(ImmediateValue, InstructionCounter, RegisterDataOut1,
|
AluSetInput : process(ImmediateValue, InstructionCounter, RegisterDataOut1,
|
||||||
RegisterDataOut2)
|
RegisterDataOut2)
|
||||||
begin
|
begin
|
||||||
|
|
Loading…
Reference in New Issue