Go Back   Velocity Reviews > Newsgroups > VHDL
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

VHDL - A good solution wanted...

 
Thread Tools Search this Thread
Old 10-25-2006, 04:06 AM   #1
Default A good solution wanted...


I'm having this little trouble with this structural instantiation of
some component (you can figure as soon as you see the code sample...
Yeah, a processor's datapath). I'm using Xilinx ISE 8.2i and I'm
working on a Spartan 3 XC3S200.

Here is my VHDL code, code that gets thru the syntesize process
perfectly and that I assume to simulate in either ISE Sim or
ModelSim...

entity first is
Port ( i_clk : in STD_LOGIC;
i_rst : in STD_LOGIC;
o_result : out STD_LOGIC_VECTOR(31 downto 0));
end first;

architecture Structural of first is
component Datapath1 is
Port ( i_rst : in std_logic;
i_clk : in std_logic;
o_data : out std_logic_vector(31 downto 0));
end component;
[there are some component declarations here]

signal readadd1, readadd2 : std_logic_vector (4 downto 0);
signal writadd : std_logic_vector (4 downto 0);
signal operins : std_logic_vector (5 downto 0);
[there are some signals here]
begin
datapath: Datapath1 port map (i_rst => i_rst, i_clk => i_clk, o_data(31
downto 26) => open,
o_data(25 downto 21) => readadd1, o_data(20 downto 16) => readadd2,
o_data(15 downto 11) => writadd, o_data(10 downto 6) => open,
o_data(5 downto 0) => operins);
[more code continues ...]

But unfortunately, well, according to LRM 4.3.2.2, "Actual OPEN for a
formal o_data that is associated individually is illegal". Is there a
way to be able to fix this code and finally get simulate this stuff
(Neither ModelSim XE or ISE Simulator wants to accept this code)? What
approach should I use instead of leaving some of the o_data pins of
datapath unconnected?

Thanks beforehand for your answers,

Juan Pablo Garcia,
also known as 48 bytes.



48 bytes
  Reply With Quote
Old 10-25-2006, 11:23 AM   #2
Brian Drummond
 
Posts: n/a
Default Re: A good solution wanted...
On 24 Oct 2006 20:06:02 -0700, "48 bytes" <> wrote:

>I'm having this little trouble with this structural instantiation of
>some component (you can figure as soon as you see the code sample...
>Yeah, a processor's datapath). I'm using Xilinx ISE 8.2i and I'm
>working on a Spartan 3 XC3S200.


>architecture Structural of first is
>component Datapath1 is
> Port ( i_rst : in std_logic;
> i_clk : in std_logic;
> o_data : out std_logic_vector(31 downto 0));
>end component;
>[there are some component declarations here]


>datapath: Datapath1 port map (i_rst => i_rst, i_clk => i_clk, o_data(31
>downto 26) => open,
> o_data(25 downto 21) => readadd1, o_data(20 downto 16) => readadd2,
> o_data(15 downto 11) => writadd, o_data(10 downto 6) => open,
> o_data(5 downto 0) => operins);


>But unfortunately, well, according to LRM 4.3.2.2, "Actual OPEN for a
>formal o_data that is associated individually is illegal".


Associate o_data with a new 32 bit internal signal; you can connect
subranges of this signal to readadd1, readadd2 etc.

Unused subranges will be optimised out during synthesis.

- Brian


Brian Drummond
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
DVDs are 100% brand new, and factory sealed! good quality and cheapprice! helen DVD Video 0 12-28-2007 09:34 AM
DVDs are 100% brand new, and factory sealed! good quality and cheapprice! juninator@gmail.com DVD Video 0 11-30-2007 09:31 AM
DVDs are 100% brand new, and factory sealed! good quality and cheapprice! lioudejun@gmail.com DVD Video 0 11-28-2007 09:05 AM
New releases:Sunshine , Good Luck Chuck & Equalizer: Season 1 : Updated complete downloadable R1 DVD DB & info lists Doug MacLean DVD Video 0 11-06-2007 07:32 AM
Re: Need examples of GOOD Anime Wade365 DVD Video 12 06-30-2003 02:35 PM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46