URL
https://opencores.org/ocsvn/w11/w11/trunk
Subversion Repositories w11
[/] [w11/] [tags/] [w11a_V0.5/] [rtl/] [bplib/] [s3board/] [s3_rs232_iob_ext.vhd] - Rev 40
Go to most recent revision | Compare with Previous | Blame | View Log
-- $Id: s3_rs232_iob_ext.vhd 314 2010-07-09 17:38:41Z mueller $ -- -- Copyright 2010- by Walter F.J. Mueller <W.F.J.Mueller@gsi.de> -- -- This program is free software; you may redistribute and/or modify it under -- the terms of the GNU General Public License as published by the Free -- Software Foundation, either version 2, or at your option any later version. -- -- This program is distributed in the hope that it will be useful, but -- WITHOUT ANY WARRANTY, without even the implied warranty of MERCHANTABILITY -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -- for complete details. -- ------------------------------------------------------------------------------ -- Module Name: s3_rs232_iob_ext - syn -- Description: iob's for external rs232 (PMod) -- -- Dependencies: xlib/iob_reg_i -- xlib/iob_reg_o -- -- Test bench: - -- -- Target Devices: generic -- Tool versions: xst 11.4; ghdl 0.26 -- -- Revision History: -- Date Rev Version Comment -- 2010-04-17 278 1.0 Initial version ------------------------------------------------------------------------------ -- library ieee; use ieee.std_logic_1164.all; use ieee.std_logic_arith.all; use work.slvtypes.all; use work.xlib.all; -- ---------------------------------------------------------------------------- entity s3_rs232_iob_ext is -- iob's for external rs232 (PMod) port ( CLK : in slbit; -- clock RXD : out slbit; -- receive data (board view) TXD : in slbit; -- transmit data (board view) CTS_N : out slbit; -- clear to send (act. low) RTS_N : in slbit; -- request to send (act. low) I_RXD : in slbit; -- pad-i: receive data (board view) O_TXD : out slbit; -- pad-o: transmit data (board view) I_CTS_N : in slbit; -- pad-i: clear to send (act. low) O_RTS_N : out slbit -- pad-o: request to send (act. low) ); end s3_rs232_iob_ext; architecture syn of s3_rs232_iob_ext is begin IOB_RXD : iob_reg_i -- line idle=1, so init sync flop =1 generic map (INIT => '1') port map (CLK => CLK, CE => '1', DI => RXD, PAD => I_RXD); IOB_TXD : iob_reg_o -- line idle=1, so init sync flop =1 generic map (INIT => '1') port map (CLK => CLK, CE => '1', DO => TXD, PAD => O_TXD); IOB_CTS : iob_reg_i port map (CLK => CLK, CE => '1', DI => CTS_N, PAD => I_CTS_N); IOB_RTS : iob_reg_o port map (CLK => CLK, CE => '1', DO => RTS_N, PAD => O_RTS_N); end syn;
Go to most recent revision | Compare with Previous | Blame | View Log