[J-Uart]
- use LSB first for UART - Uart_wb: added generic for default baudrate and fifo depth git-svn-id: http://moon:8086/svn/vhdl/trunk@1358 cc03376c-175c-47c8-b038-4cd826a8556b
This commit is contained in:
@@ -51,7 +51,7 @@ signal bit_count : unsigned (3 downto 0);
|
||||
--
|
||||
--
|
||||
begin
|
||||
ser_out <= shiftreg(shiftreg'left);
|
||||
ser_out <= shiftreg(0);
|
||||
Tx_complete <= not busy;
|
||||
|
||||
shift_enable_counter:
|
||||
@@ -103,9 +103,9 @@ begin
|
||||
elsif shift_enable = '1' then
|
||||
if start = '1' then
|
||||
start <= '0';
|
||||
shiftreg <= '0' & dinreg & '1';
|
||||
shiftreg <= '1' & dinreg & '0';
|
||||
elsif bit_count /= 0 then
|
||||
shiftreg <= shiftreg(shiftreg'left-1 downto 0) & '1';
|
||||
shiftreg <= '1' & shiftreg(shiftreg'left downto 1);
|
||||
if bit_count = 1 then
|
||||
busy <= '0';
|
||||
end if;
|
||||
|
||||
Reference in New Issue
Block a user