URL
https://opencores.org/ocsvn/uart_block/uart_block/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 19 |
Rev 20 |
Line 199... |
Line 199... |
done <= '0';
|
done <= '0';
|
end if;
|
end if;
|
end if;
|
end if;
|
|
|
if (WE = '0') and (start = '1') then
|
if (WE = '0') and (start = '1') then
|
if reg_addr = "11" then
|
case reg_addr is
|
|
when "11" =>
|
controlStates <= rx_state_wait;
|
controlStates <= rx_state_wait;
|
|
|
|
when "10" =>
|
|
done <= '1';
|
|
controlStates <= rx_tx_state;
|
|
|
|
when others =>
|
|
null;
|
|
end case;
|
end if;
|
end if;
|
|
|
|
if (start = '0') then
|
|
done <= '0';
|
end if;
|
end if;
|
|
|
|
|
-- Send data and wait to transmit
|
-- Send data and wait to transmit
|
when tx_state_wait =>
|
when tx_state_wait =>
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.