projects
/
calu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
667cacc
)
typcast dirtyfix
author
Manfred
<xzarion@l0725898.(none)>
Tue, 11 Jan 2011 13:03:16 +0000
(14:03 +0100)
committer
Manfred
<xzarion@l0725898.(none)>
Tue, 11 Jan 2011 13:03:16 +0000
(14:03 +0100)
cpu/src/rs232_tx_arc.vhd
patch
|
blob
|
history
diff --git
a/cpu/src/rs232_tx_arc.vhd
b/cpu/src/rs232_tx_arc.vhd
index db56984ca5217b5376cbea412714d766740e2e0c..3dce8796b52fb5163c16dfa296c542fa49ecce19 100755
(executable)
--- a/
cpu/src/rs232_tx_arc.vhd
+++ b/
cpu/src/rs232_tx_arc.vhd
@@
-13,16
+13,17
@@
library IEEE;
use IEEE.std_logic_1164.all;
use IEEE.numeric_std.all;
use IEEE.std_logic_1164.all;
use IEEE.numeric_std.all;
+use work.extension_uart_pkg.all;
+
use work.common_pkg.all;
use work.core_pkg.all;
use work.common_pkg.all;
use work.core_pkg.all;
-use work.extension_uart_pkg.all;
architecture beh of rs232_tx is
-- definierern der intern verwendeten Signale
type STATE_TYPE is (IDLE,SEND);
signal state, state_next : STATE_TYPE;
signal bus_tx_int, bus_tx_nxt : std_logic := '1';
architecture beh of rs232_tx is
-- definierern der intern verwendeten Signale
type STATE_TYPE is (IDLE,SEND);
signal state, state_next : STATE_TYPE;
signal bus_tx_int, bus_tx_nxt : std_logic := '1';
- signal baud_cnt,baud_cnt_next : integer
:= 0
;
+ signal baud_cnt,baud_cnt_next : integer;
signal cnt, cnt_next : natural range 0 to 11 := 0;
signal idle_sig, idle_sig_next : std_logic := '0';
signal cnt, cnt_next : natural range 0 to 11 := 0;
signal idle_sig, idle_sig_next : std_logic := '0';
@@
-85,8
+86,8
@@
begin
tx_rdy <= '1';
cnt_next <= 0;
-- TODO: wtf, typproblem
tx_rdy <= '1';
cnt_next <= 0;
-- TODO: wtf, typproblem
-
-- baud_cnt_next <= to_integer(
unsigned(bd_rate));
- baud_cnt_next <= CLK_PER_BAUD;
+
baud_cnt_next <= to_integer(IEEE.numeric_std.
unsigned(bd_rate));
+
--
baud_cnt_next <= CLK_PER_BAUD;
when SEND =>
-- Signalisiert dass gerade ein Byte versendet wird
tx_rdy <= '0';
when SEND =>
-- Signalisiert dass gerade ein Byte versendet wird
tx_rdy <= '0';