]> jspc29.x-matter.uni-frankfurt.de Git - padiwa.git/commitdiff
small naming change, IF
authorIngo Froehlich <ingo@nomail.fake>
Wed, 24 Jan 2018 10:15:32 +0000 (11:15 +0100)
committerIngo Froehlich <ingo@nomail.fake>
Wed, 24 Jan 2018 10:15:32 +0000 (11:15 +0100)
amps2/padiwa_amps2.vhd
source/Amps2_Interface.vhd
source/Amps2_TempSensor_UID.vhd

index bcfe44f3ddcf6a98a520b3fa80ec927ae0522d5f..189dd9759670f53bc89b7d7e2a22cab5911cdd47 100644 (file)
@@ -260,7 +260,7 @@ THE_FLASH_CONTROLLER : entity generic_flash_ctrl
 -- Temperature and UID reader\r
 ---------------------------------------------------------------------------  \r
 \r
-TEMP_SENSOR_AND_UID: entity temp_sensor_and_UID\r
+TEMP_SENSOR_AND_UID: entity Amps2_TempSensor_UID\r
   port map(\r
     clk => clk_i,\r
     temperature => temperature_i,\r
index 1ca9ac91889a42897693cc4f807c4c1fb1c78aa4..e17c9b699b49039bbfade8dc2641490f49f907a1 100644 (file)
@@ -3,7 +3,7 @@ library ieee;
 use ieee.std_logic_1164.all;
 use ieee.numeric_std.all;
 
-entity interface is
+entity Amps2_Interface is
   generic(
     clk_frequency : integer := 133_000_000;
     i2c_frequency : integer := 13_300
@@ -18,9 +18,9 @@ entity interface is
     scl : inout std_logic
        
   );
-end interface;
+end Amps2_Interface;
 
-architecture Behavioral of interface is
+architecture Behavioral of Amps2_Interface is
 
   --The address of the TCS34725. This device has only one possible address,
   --so we won't genericize it.
@@ -133,7 +133,7 @@ begin
                if controller_accepted_data = '1' then
                                state <= wait_for_read;
                end if;
-                \r      when wait_for_read =>
+                when wait_for_read =>
                
                ena<='0';
                current_byte_number <=0;
@@ -194,4 +194,4 @@ begin
 temperature(11 downto 4)<=temp_data_MSB;
 temperature(3 downto 0)<=temp_data_LSB(7 downto 4);
 
-  end Behavioral;
\ No newline at end of file
+  end Behavioral;
index 1a49f0acd0313632664d948e04901e726f581bc2..1563b8a5c14b3285b50fc32ae7fe192bbc2867f6 100644 (file)
@@ -6,7 +6,7 @@ use ieee.std_logic_unsigned.all;
 library lattice;
 use lattice.components.all;
 
-entity temp_sensor_and_UID is
+entity Amps2_TempSensor_UID is
   port(
     clk   : in std_logic;
     temperature: out std_logic_vector(11 downto 0);
@@ -14,9 +14,9 @@ entity temp_sensor_and_UID is
     sda : inout std_logic;
     scl : inout std_logic
   );
-end temp_sensor_and_UID;
+end Amps2_TempSensor_UID;
 
-architecture Behavioral of temp_sensor_and_UID is
+architecture Behavioral of Amps2_TempSensor_UID is
    --signal clk   : std_logic;
    signal reset :   std_logic;
    signal count :   std_logic_vector (26 downto 0);
@@ -33,10 +33,10 @@ architecture Behavioral of temp_sensor_and_UID is
    
 begin
 
---  temperature <= "1111" & x"AB";
+-- temperature <= "1111" & x"AB";
 
      
-  SENSOR_INTERFACE: entity interface
+  SENSOR_INTERFACE: entity Amps2_Interface
   generic map(
     clk_frequency => 133_000_000,
     i2c_frequency => 13_300
@@ -44,7 +44,7 @@ begin
   port map(
     clk             => clk,
     reset           => reset,
-    temperature                => temperature,
+    temperature     => temperature,
     sda             => sda,
     scl             => scl
   );