]> git.zerfleddert.de Git - raggedstone/commitdiff
cleanup
authorsithglan <sithglan>
Sat, 10 Mar 2007 18:52:50 +0000 (18:52 +0000)
committersithglan <sithglan>
Sat, 10 Mar 2007 18:52:50 +0000 (18:52 +0000)
dhwk/source/config_wr_0.vhd

index 4156415d8789ab64a817e0b7ba9a3e8c03b74fde..4c7b96c195a631479553ce4e3e8581ebfe4bb3ed 100644 (file)
@@ -95,8 +95,8 @@ architecture CONFIG_WR_0_DESIGN of CONFIG_WR_0 is
        constant        CMD_MEN_READ_L  :std_logic_vector(3 downto 0) := "1110";\r
        constant        CMD_MEM_WRITE_I :std_logic_vector(3 downto 0) := "1111";\r
 \r
-       signal          CONFIG_ADDR                     :std_logic_vector(7 downto 0); \r
-       signal          CONFIG_WRITE            :std_logic_vector(3 downto 0); \r
+       signal          CONFIG_ADDR :std_logic_vector(7 downto 0); \r
+       signal          CONFIG_WRITE :std_logic_vector(3 downto 0); \r
 \r
 \r
 begin\r
@@ -113,13 +113,21 @@ begin
 \r
                if      CF_WR_COM = '1' and     IRDY_REGn = '0' and     TRDYn = '0'     then\r
 \r
-                       if                      CONFIG_ADDR = X"04"     then    CONFIG_WRITE    <= "0001";\r
-                               elsif   CONFIG_ADDR = X"10"     then    CONFIG_WRITE    <= "0010";\r
-                               elsif   CONFIG_ADDR = X"3C"     then    CONFIG_WRITE    <= "0100";\r
+                       if CONFIG_ADDR = X"04" then\r
+                                CONFIG_WRITE   <= "0001";\r
+\r
+                        elsif CONFIG_ADDR = X"10" then\r
+                                CONFIG_WRITE   <= "0010";\r
+\r
+                        elsif  CONFIG_ADDR = X"3C" then\r
+                                CONFIG_WRITE   <= "0100";\r
+\r
 --                     elsif   CONFIG_ADDR = X"40"     then    CONFIG_WRITE    <= "1000";\r
-                               else                                                                                                            CONFIG_WRITE    <= "0000";\r
+                        else\r
+                                CONFIG_WRITE   <= "0000";\r
                        end if;\r
-               else                                                                                                                            CONFIG_WRITE    <= "0000";\r
+               else            \r
+                        CONFIG_WRITE   <= "0000";\r
                end if;\r
        end process;\r
 \r
Impressum, Datenschutz