X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/raggedstone/blobdiff_plain/377c02420489dd18db3ce053a075d7eca4ae799b..29e2611580bbb559863091364a79e8fa3187c471:/dhwk/source/config_wr_0.vhd?ds=sidebyside diff --git a/dhwk/source/config_wr_0.vhd b/dhwk/source/config_wr_0.vhd index 4156415..4c7b96c 100644 --- a/dhwk/source/config_wr_0.vhd +++ b/dhwk/source/config_wr_0.vhd @@ -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"; constant CMD_MEM_WRITE_I :std_logic_vector(3 downto 0) := "1111"; - signal CONFIG_ADDR :std_logic_vector(7 downto 0); - signal CONFIG_WRITE :std_logic_vector(3 downto 0); + signal CONFIG_ADDR :std_logic_vector(7 downto 0); + signal CONFIG_WRITE :std_logic_vector(3 downto 0); begin @@ -113,13 +113,21 @@ begin if CF_WR_COM = '1' and IRDY_REGn = '0' and TRDYn = '0' then - if CONFIG_ADDR = X"04" then CONFIG_WRITE <= "0001"; - elsif CONFIG_ADDR = X"10" then CONFIG_WRITE <= "0010"; - elsif CONFIG_ADDR = X"3C" then CONFIG_WRITE <= "0100"; + if CONFIG_ADDR = X"04" then + CONFIG_WRITE <= "0001"; + + elsif CONFIG_ADDR = X"10" then + CONFIG_WRITE <= "0010"; + + elsif CONFIG_ADDR = X"3C" then + CONFIG_WRITE <= "0100"; + -- elsif CONFIG_ADDR = X"40" then CONFIG_WRITE <= "1000"; - else CONFIG_WRITE <= "0000"; + else + CONFIG_WRITE <= "0000"; end if; - else CONFIG_WRITE <= "0000"; + else + CONFIG_WRITE <= "0000"; end if; end process;