OpenCores
URL https://opencores.org/ocsvn/xucpu/xucpu/trunk

Subversion Repositories xucpu

[/] [xucpu/] [trunk/] [src/] [io/] [tty_out.vhdl] - Blame information for rev 34

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 lcdsgmtr
-- Copyright 2015, Jürgen Defurne
2
--
3
-- This file is part of the Experimental Unstable CPU System.
4
--
5
-- The Experimental Unstable CPU System Is free software: you can redistribute
6
-- it and/or modify it under the terms of the GNU Lesser General Public License
7
-- as published by the Free Software Foundation, either version 3 of the
8
-- License, or (at your option) any later version.
9
--
10
-- The Experimental Unstable CPU System is distributed in the hope that it will
11
-- be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
12
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser
13
-- General Public License for more details.
14
--
15
-- You should have received a copy of the GNU Lesser General Public License
16
-- along with Experimental Unstable CPU System. If not, see
17
-- http://www.gnu.org/licenses/lgpl.txt.
18
 
19
 
20
LIBRARY IEEE;
21
USE IEEE.STD_LOGIC_1164.ALL;
22
USE work.system_package.ALL;
23
 
24
ENTITY tty_out IS
25
  PORT (
26
    reset    : IN  STD_LOGIC;
27
    clock    : IN  STD_LOGIC;
28
    rd       : IN  STD_LOGIC;
29
    wr       : IN  STD_LOGIC;
30
    data_in  : IN  STD_LOGIC_VECTOR(15 DOWNTO 0);
31
    data_out : OUT STD_LOGIC_VECTOR(15 DOWNTO 0);
32
    address  : IN  STD_LOGIC_VECTOR(14 DOWNTO 0);
33
    tx       : OUT STD_LOGIC);
34
END tty_out;
35
 
36
ARCHITECTURE Behavioral OF tty_out IS
37
 
38
  SIGNAL data   : STD_LOGIC_VECTOR(7 DOWNTO 0);
39
  SIGNAL status : STD_LOGIC_VECTOR(7 DOWNTO 0);
40
 
41
BEGIN
42
 
43
  -- purpose: Base system for serial out state machine
44
  -- type   : sequential
45
  -- inputs : clock, reset
46
  -- outputs: 
47
  main : PROCESS (clock, reset)
48
  BEGIN  -- PROCESS main
49
    IF reset = '0' THEN                 -- asynchronous reset (active low)
50
      data   <= X"00";
51
      status <= X"00";
52
      tx     <= '0';
53
    ELSIF rising_edge(clock) THEN       -- rising clock edge
54
 
55
    END IF;
56
  END PROCESS main;
57
END Behavioral;
58
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.