Wire up sim uart TX interrupt

TX is always ready, so just always sent interrupt when enabled.

No RX interrupt.

Signed-off-by: Michael Neuling <mikey@neuling.org>
pull/165/head
Michael Neuling 5 years ago
parent fc5f7506f8
commit e5a30a1358

@ -43,6 +43,9 @@ entity pp_soc_uart is
txd : out std_logic; txd : out std_logic;
rxd : in std_logic; rxd : in std_logic;


-- Interrupt signal:
irq : out std_logic;

-- Wishbone ports: -- Wishbone ports:
wb_adr_in : in std_logic_vector(11 downto 0); wb_adr_in : in std_logic_vector(11 downto 0);
wb_dat_in : in std_logic_vector( 7 downto 0); wb_dat_in : in std_logic_vector( 7 downto 0);
@ -70,6 +73,10 @@ begin


wb_ack_out <= wb_ack and wb_cyc_in and wb_stb_in; wb_ack_out <= wb_ack and wb_cyc_in and wb_stb_in;


-- For the sim console, the transmit buffer is always empty, so always
-- interrupt if enabled. No recieve interrupt.
irq <= irq_tx_ready_enable;

wishbone: process(clk) wishbone: process(clk)
variable sim_tmp : std_logic_vector(63 downto 0); variable sim_tmp : std_logic_vector(63 downto 0);
begin begin

Loading…
Cancel
Save