init pmod uart txd
This commit is contained in:
parent
8e8d2608bf
commit
a621ac20aa
12 changed files with 522 additions and 3 deletions
34
uart/sim/uart_tb.vhdl
Normal file
34
uart/sim/uart_tb.vhdl
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
library ieee;
|
||||
use ieee.std_logic_1164.all;
|
||||
|
||||
entity uart_tb is
|
||||
end entity;
|
||||
|
||||
architecture behav of uart_tb is
|
||||
|
||||
component uart_top is
|
||||
|
||||
port(
|
||||
clk : in std_logic;
|
||||
in_send : in std_logic;
|
||||
out_txd : out std_logic
|
||||
);
|
||||
|
||||
end component;
|
||||
|
||||
signal clk : std_logic := '0';
|
||||
signal in_send : std_logic := '0';
|
||||
signal out_txd : std_logic;
|
||||
|
||||
begin
|
||||
|
||||
clk <= not clk after 4 ns;
|
||||
in_send <= '1' after 16 ns;
|
||||
|
||||
U1: uart_top port map(
|
||||
clk,
|
||||
in_send,
|
||||
out_txd
|
||||
);
|
||||
|
||||
end architecture;
|
||||
Loading…
Add table
Add a link
Reference in a new issue