FPGA Central - World's 1st FPGA / CPLD Portal

FPGA Central

World's 1st FPGA Portal

 

Go Back   FPGA Groups > NewsGroup > VHDL

VHDL comp.lang.vhdl newsgroup / Usenet

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-02-2003, 02:53 PM
jtj
Guest
 
Posts: n/a
Default how to test benching a bidirectional port

Hi All

I would like to test a bi-directional port in a test bench.
To generate the test bench I use Bencher, a GUI tool that is bundled with
Xilinx ISE.
Assigning OUTDATA to PADPIN works fine but when I try to assign a value to
PADPIN form the test bench
Modelsim gives the following error: "Nonresolved signal padpin has multiple
sources."

What is the trick? -Any help is appreciated since I'm starting to be
frustrated.

Thanks in advance
-Jan


-------------------------------------------------

library IEEE;
use IEEE.std_logic_1164.all;

entity BIPAD is port (
PADPIN : inout std_ulogic_vector(15 downto 0);
RD : in std_ulogic;
WR : in std_ulogic;
OUTDATA : in std_ulogic_vector(15 downto 0);
INDATA : out std_ulogic_vector(15 downto 0));
end BIPAD;

architecture test of BIPAD is

begin
PADPIN <= OUTDATA when (WR = '1' and RD = '0') else "ZZZZZZZZZZZZZZZZ";
-- PADPIN <= OUTDATA when (WR = '1' and RD = '0'); --else
"ZZZZZZZZZZZZZZZZZZZZZZZZ";
INDATA <= PADPIN when (WR = '0' and RD = '1');
end test;




Reply With Quote
  #2 (permalink)  
Old 10-02-2003, 05:38 PM
Mike Treseler
Guest
 
Posts: n/a
Default Re: how to test benching a bidirectional port

jtj wrote:

> I would like to test a bi-directional port in a test bench.


Related thread:

http://groups.google.com/groups?q=oe_demo+entity

-- Mike Treseler

Reply With Quote
  #3 (permalink)  
Old 10-02-2003, 07:14 PM
jan
Guest
 
Posts: n/a
Default Re: how to test benching a bidirectional port

Hi Mike

Thanks a lot
-Jan

"Mike Treseler" <[email protected]> wrote in message
news:[email protected]
> jtj wrote:
>
> > I would like to test a bi-directional port in a test bench.

>
> Related thread:
>
> http://groups.google.com/groups?q=oe_demo+entity
>
> -- Mike Treseler
>



Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Bidirectional open drain port fazulu deen FPGA 0 11-27-2007 10:31 AM
playing test SVF files for Spartan-3 Starter Board (using iMPACT ? or a test software?) [email protected] FPGA 6 11-27-2006 01:45 PM
bidirectional connection between two bidirectional ports Manfred Balik FPGA 12 09-10-2006 09:53 PM
Newbie in Chipscope-changes need to route bidirectional data port subint FPGA 5 06-26-2006 11:21 AM
Spartan IIE VHDL inout port bidirectional bus problem. [email protected] FPGA 1 11-02-2005 06:25 AM


All times are GMT +1. The time now is 06:36 AM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright 2008 @ FPGA Central. All rights reserved