From 49a49353438169da54dd0591ba9af26e8d713614 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tomasz=20W=C5=82ostowski?= <tomasz.wlostowski@cern.ch>
Date: Wed, 12 Dec 2012 11:18:19 +0100
Subject: [PATCH] wishbone_pkg: added SDB desriptors for I2C, 1-ie and SPI
 masters

---
 modules/wishbone/wishbone_pkg.vhd | 51 +++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)

diff --git a/modules/wishbone/wishbone_pkg.vhd b/modules/wishbone/wishbone_pkg.vhd
index 4892e216..ea504f1c 100644
--- a/modules/wishbone/wishbone_pkg.vhd
+++ b/modules/wishbone/wishbone_pkg.vhd
@@ -369,6 +369,24 @@ package wishbone_pkg is
       slave2_o  : out t_wishbone_slave_out);
   end component;
 
+
+ constant c_xwb_gpio_port_sdb : t_sdb_device := (
+    abi_class     => x"0000", -- undocumented device
+    abi_ver_major => x"01",
+    abi_ver_minor => x"01",
+    wbd_endian    => c_sdb_endian_big,
+    wbd_width     => x"7", -- 8/16/32-bit port granularity
+    sdb_component => (
+    addr_first    => x"0000000000000000",
+    addr_last     => x"00000000000000ff",
+    product => (
+    vendor_id     => x"000000000000CE42", -- CERN
+    device_id     => x"64000003",
+    version       => x"00000001",
+    date          => x"20121129",
+    name          => "WB-GPIO-Port       ")));
+  
+  
   component wb_gpio_port
     generic (
       g_interface_mode         : t_wishbone_interface_mode      := CLASSIC;
@@ -411,6 +429,23 @@ package wishbone_pkg is
       gpio_oen_o : out   std_logic_vector(g_num_pins-1 downto 0));
   end component;
 
+ constant c_xwb_i2c_master_sdb : t_sdb_device := (
+    abi_class     => x"0000", -- undocumented device
+    abi_ver_major => x"01",
+    abi_ver_minor => x"01",
+    wbd_endian    => c_sdb_endian_big,
+    wbd_width     => x"7", -- 8/16/32-bit port granularity
+    sdb_component => (
+    addr_first    => x"0000000000000000",
+    addr_last     => x"00000000000000ff",
+    product => (
+    vendor_id     => x"000000000000CE42", -- CERN
+    device_id     => x"64000002",
+    version       => x"00000001",
+    date          => x"20121129",
+    name          => "WB-I2C-Master      ")));
+  
+  
   component wb_i2c_master
     generic (
       g_interface_mode      : t_wishbone_interface_mode      := CLASSIC;
@@ -467,6 +502,22 @@ package wishbone_pkg is
       iwb_i     : in  t_wishbone_master_in);
   end component;
 
+ constant c_xwb_onewire_master_sdb : t_sdb_device := (
+    abi_class     => x"0000", -- undocumented device
+    abi_ver_major => x"01",
+    abi_ver_minor => x"01",
+    wbd_endian    => c_sdb_endian_big,
+    wbd_width     => x"7", -- 8/16/32-bit port granularity
+    sdb_component => (
+    addr_first    => x"0000000000000000",
+    addr_last     => x"00000000000000ff",
+    product => (
+    vendor_id     => x"000000000000CE42", -- CERN
+    device_id     => x"64000001",
+    version       => x"00000001",
+    date          => x"20121129",
+    name          => "WB-OneWire-Master  ")));
+  
   component wb_onewire_master
     generic (
       g_interface_mode      : t_wishbone_interface_mode      := CLASSIC;
-- 
GitLab