Skip to content

Instantly share code, notes, and snippets.

View myzinsky's full-sized avatar

Matthias Jung myzinsky

  • University of Würzburg, Fraunhofer IESE
  • Kaiserslautern
View GitHub Profile
@pinski1
pinski1 / I2C Master
Created June 20, 2012 14:45
An I2C Master peripheral written in VHDL.
LIBRARY ieee;
USE ieee.std_logic_1164.all;
USE ieee.std_logic_arith.all;
ENTITY i2c IS
PORT(
clock_L : IN STD_LOGIC; -- 400kHz
scl_H : INOUT STD_LOGIC;
sda_H : INOUT STD_LOGIC;
int_i2c_L : OUT STD_LOGIC;