head	1.1;
branch	1.1.1;
access;
symbols
	arelease:1.1.1.1
	avendor:1.1.1;
locks; strict;
comment	@# @;


1.1
date	2006.04.12.02.49.30;	author tmsiqueira;	state Exp;
branches
	1.1.1.1;
next	;
commitid	402d443c6aad4567;

1.1.1.1
date	2006.04.12.02.49.30;	author tmsiqueira;	state Exp;
branches;
next	;
commitid	402d443c6aad4567;


desc
@@


1.1
log
@Initial revision
@
text
@library IEEE;
use IEEE.STD_LOGIC_1164.all;
use IEEE.STD_LOGIC_ARITH.all;
use IEEE.STD_LOGIC_UNSIGNED.all;

--  Uncomment the following lines to use the declarations that are
--  provided for instantiating Xilinx primitive components.
--library UNISIM;
--use UNISIM.VComponents.all;

entity serial is
  port (
    clk    : in  std_logic;
    rst    : in  std_logic;
    input  : in  std_logic_vector(1 downto 0);
--	 tbaux  : out std_logic_vector(1 downto 0);
    output : out std_logic);
end serial;

architecture serial of serial is
  type states is (st0, st1);
  signal state : states;


  signal aux : std_logic_vector(1 downto 0);

begin

--tbaux <= aux;
  process(clk, rst)
  begin
    if rst = '1' then
      aux <= (others => '0');
		output <= '0';
    elsif clk'event and clk = '1' then
	   case state is
		   when st0 =>
			   aux <= input;
				output <= aux(0);
				state <= st1;
		   when st1 =>
			   output <= aux(1);
				state <= st0;
		end case;			
    end if;
  end process;
end serial;@


1.1.1.1
log
@Original
@
text
@@
