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

Reply

VHDL - Unconstrained ports for synthesis

 
Thread Tools Search this Thread
Old 04-20-2005, 02:01 PM   #1
Default Unconstrained ports for synthesis


Hi all,

I am having a component Multiplier with unconstrained ports. But this
is not my top_level_entity and ports are implicity constrained while
instanciating this component.

It simulates well but while synthezing Quartus says that ports must be
constrained. I think that Quartus could infer it from instanciation
syntax. Is there any solution to get around it

Thanks.

-- Mohammed A Khader.



Mohammed A khader
  Reply With Quote
Old 04-20-2005, 03:12 PM   #2
Subroto Datta
 
Posts: n/a
Default Re: Unconstrained ports for synthesis
Hello,

Can you be more specific as to the exact message that Quartus gives? You
can cut ans paste the Quartus message in the reply. Also can you describe
what is meant by "implictly constrainedwhile instanciating" in the post?

Subroto Datta
Altera Corp.

"Mohammed A khader" <> wrote in message
news: oups.com...
> Hi all,
>
> I am having a component Multiplier with unconstrained ports. But this
> is not my top_level_entity and ports are implicity constrained while
> instanciating this component.
>
> It simulates well but while synthezing Quartus says that ports must be
> constrained. I think that Quartus could infer it from instanciation
> syntax. Is there any solution to get around it
>
> Thanks.
>
> -- Mohammed A Khader.
>





Subroto Datta
  Reply With Quote
Old 04-20-2005, 03:51 PM   #3
Mohammed A Khader
 
Posts: n/a
Default Re: Unconstrained ports for synthesis
Hi,

-- Error messages are......

Error: VHDL Entity Declaration error at Multiplier_Synth.Vhd(26):
ports must be constrained
Error: VHDL Entity Declaration error at Multiplier_Synth.Vhd(27): ports
must be constrained
Error: VHDL Entity Declaration error at Multiplier_Synth.Vhd(2: ports
must be constrained
Error: Can't elaborate user hierarchy
"Core:Core_Map|Datapathatapath_Map"
Error: Quartus II Analysis & Synthesis was unsuccessful. 4 errors, 0
warnings
Error: Processing ended: Wed Apr 20 16:33:52 2005
Error: Elapsed time: 00:00:05

-- My Multiplier component is .........
entity Multiplier_Synth is
port(
Op1 : in signed; -- Operator 1
Op2 : in signed; -- Operator 2
Mult_Out : out signed -- Multiplication Result
);
end entity Multiplier_Synth;

architecture Multiplier_Synth_Arch of Multiplier_Synth is
begin
Mult_Out <= Op1 * Op2;
end architecture Multiplier_Synth_Arch;

-- And it has been instantiated in an entity called Datapath_Map as
.......

signal Mux1_Out : WORD20; -- Output of Mux1
signal Mux2_Out : WORD; -- Output of Mux2
signal Mult_Out : signed(39 downto 0); -- Multiplier Output

Multiplier_Map : entity work.Multiplier_Synth(Multiplier_Synth_Arch)
port map(
Op1 => Mux1_Out,
Op2 => Mux2_Out,
Mult_Out => Mult_Out
);

Mux1_Out , Mux2_Out and Mult_Out are constrained signals . Hence
Op1,Op2,Mult_Out implicitly can be constrained by bit length of
20,20,40 respectively.

Thanks..

-- Mohammed A Khader.



Mohammed A Khader
  Reply With Quote
Old 04-20-2005, 05:06 PM   #4
Ralf Hildebrandt
 
Posts: n/a
Default Re: Unconstrained ports for synthesis
Mohammed A Khader wrote:

> Error: VHDL Entity Declaration error at Multiplier_Synth.Vhd(26):
> ports must be constrained


> -- My Multiplier component is .........
> entity Multiplier_Synth is
> port(
> Op1 : in signed; -- Operator 1
> Op2 : in signed; -- Operator 2
> Mult_Out : out signed -- Multiplication Result
> );
> end entity Multiplier_Synth;


Use generic parameters - e.g.:


entity Multiplier_Synth is
generic(
width : integer:=16 );
port(
Op1 : in signed(width-1 downto 0);
Op2 : in signed(width-1 downto 0);
Mult_Out : out signed(width*2-1 downto 0)
);
end entity Multiplier_Synth;


Generic parameters are overridden, if a generic mapping is used during
instantiation. (Otherwise the given default value is used.)
Because you have to define the bitwidth somewhere in your design, it
does not matter where and how. Therefore Generic paramters are suitable.
You can feed them from the very bottom to the top entity.

Ralf


Ralf Hildebrandt
  Reply With Quote
Old 04-21-2005, 12:38 AM   #5
Subroto Datta
 
Posts: n/a
Default Re: Unconstrained ports for synthesis
Hello Mohammed,

We will be adding support for unconstrained entity ports in 5.1,
due out later this year (we need to get 5.0 out first ). In the
interim please use the generic approach suggested by Ralf.

Hope this helps,
Subroto Datta
Altera Corp.



Subroto Datta
  Reply With Quote
Old 04-22-2005, 12:18 AM   #6
Ray Andraka
 
Posts: n/a
Default Re: Unconstrained ports for synthesis
Mohammed A khader wrote:

> Hi all,
>
> I am having a component Multiplier with unconstrained ports. But this
>is not my top_level_entity and ports are implicity constrained while
>instanciating this component.
>
> It simulates well but while synthezing Quartus says that ports must be
>constrained. I think that Quartus could infer it from instanciation
>syntax. Is there any solution to get around it
>
>Thanks.
>
>-- Mohammed A Khader.
>
>
>

I do not believe the Quartus compiler supports unconstrained ports.
Either use generics to size the port, or use a synthesizer such as
synplify that does support unconstrained ports.

--
--Ray Andraka, P.E.
President, the Andraka Consulting Group, Inc.
401/884-7930 Fax 401/884-7950
email
http://www.andraka.com

"They that give up essential liberty to obtain a little
temporary safety deserve neither liberty nor safety."
-Benjamin Franklin, 1759




Ray Andraka
  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
Ports & Bios Problem gullab2 General Help Related Topics 0 09-19-2006 01:14 PM
Re: USB issue ... some USB 2 ports working only in USB 1 mode hungsolo2005@yahoo.com A+ Certification 0 06-14-2006 08:26 PM
can I go from vhs to stand alone dvd recorder using in/out ports JMC DVD Video 5 04-28-2006 03:48 AM
Blocking ports Nell A+ Certification 2 09-22-2005 12:00 AM
alot of open ports leno bob A+ Certification 8 03-27-2005 11:44 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