uart: swap status with config half word
authorManfred <xzarion@l0725898.(none)>
Sun, 9 Jan 2011 15:08:15 +0000 (16:08 +0100)
committerManfred <xzarion@l0725898.(none)>
Sun, 9 Jan 2011 15:08:15 +0000 (16:08 +0100)
cpu/src/extension_imp_b.vhd
cpu/src/extension_uart_b.vhd

index 5a9117c5c04f8726b238634c8c03ed383ae4ff5d..3c3496007f4e3cabfafc440ce358884b9d4edf87 100644 (file)
@@ -80,7 +80,7 @@ begin
                        tmp_data := tmp_data - '1';
                        w2_im_addr_nxt <= tmp_data;
                when "10" =>
-                       w1_st_co_nxt(16) <= '1'; -- busy flag set
+                       w1_st_co_nxt(0) <= '1'; -- busy flag set
                        w2_im_addr_nxt <= w2_im_addr + '1';
                        w3_im_data_nxt <= tmp_data;
                when "11" =>
index d00274f06631fc6a7326f71343867d4bb9d0c59e..7df072ab5fa7d9be8ded77e94dfa4fd114bf38a5 100644 (file)
@@ -40,7 +40,7 @@ port map(
        w3_uart_send(byte_t'range),
        tx_rdy,
        bd_rate,
-       w1_st_co(0)
+       w1_st_co(16)
 );
 
 rs232_rx_inst : rs232_rx
@@ -124,7 +124,7 @@ begin
                when "01" =>
                        w2_uart_config_nxt <= tmp_data;
                when "10" =>
-                       w1_st_co_nxt(16) <= '1'; -- busy flag set
+                       w1_st_co_nxt(0) <= '1'; -- busy flag set
                        w3_uart_send_nxt <= tmp_data;
                when "11" =>
                        --w4_uart_receive_nxt <= tmp_data; sollte nur gelesen werden
@@ -133,17 +133,17 @@ begin
        end if;
 
        if  tx_rdy = '1' and tx_rdy_int = '0' then
-               w1_st_co_nxt(16) <= '0'; -- busy flag reset     
+               w1_st_co_nxt(0) <= '0'; -- busy flag reset      
        end if;
 
        if new_bus_rx = '1' then
                w4_uart_receive_nxt(7 downto 0) <= rx_data;
-               w1_st_co_nxt(17) <= '1';
+               w1_st_co_nxt(1) <= '1';
                uart_int_nxt <= '1';
        end if;
        
-       if (uart_data_read = '1' and w1_st_co(17) = '1' and ext_reg.sel = '1') then
-               w1_st_co_nxt(17) <= '0';
+       if (uart_data_read = '1' and w1_st_co(1) = '1' and ext_reg.sel = '1') then
+               w1_st_co_nxt(1) <= '0';
        end if;
        
 end process gwriten;