Multiple instances

M

mattia

Guest
Hi all, I need some help. Which is the best way to instantiate multiple
cores using the minimun additional logic available? Can you provide me
some code?

Thanks a lot,
Mattia
 
"mattia" <gervaz@gmail.com> wrote in message
news:4995fbd3$0$1110$4fafbaef@reader3.news.tin.it...
Hi all, I need some help. Which is the best way to instantiate multiple
cores using the minimun additional logic available?
Instantiate each core and connect them with wires.

Can you provide me
some code?
entity Things is port(
Gazinta: in std_ulogic;
Gazouta: in std_ulogic);
end Things;
architecture RTL of Things is
signal bbb: std_ulogic;
begin
The_Thing1 : entity Thing1
port map(
a=> Gazinta,
b=> bbb);

The_Thing2 : entity Thing2
port map(
a=> bbb,
b=> Gazouta);
end RTL;

See, it's not that hard. Enjoy.

Kevin Jennings
 
Il Fri, 13 Feb 2009 18:10:38 -0500, KJ ha scritto:

"mattia" <gervaz@gmail.com> wrote in message
news:4995fbd3$0$1110$4fafbaef@reader3.news.tin.it...
Hi all, I need some help. Which is the best way to instantiate multiple
cores using the minimun additional logic available?

Instantiate each core and connect them with wires.

Can you provide me
some code?


entity Things is port(
Gazinta: in std_ulogic;
Gazouta: in std_ulogic);
end Things;
architecture RTL of Things is
signal bbb: std_ulogic;
begin
The_Thing1 : entity Thing1
port map(
a=> Gazinta,
b=> bbb);

The_Thing2 : entity Thing2
port map(
a=> bbb,
b=> Gazouta);
end RTL;

See, it's not that hard. Enjoy.

Kevin Jennings
Ok, but what if I want to feed all my instances with the same clock event
so that executing one or N instances don't affect my performances? I want
to test the performances of a core instantiated multiple times in order
to see if my device scale proportionally.
 
"mattia" <gervaz@gmail.com> wrote in message
news:49960724$0$1112$4fafbaef@reader4.news.tin.it...
Il Fri, 13 Feb 2009 18:10:38 -0500, KJ ha scritto:

"mattia" <gervaz@gmail.com> wrote in message
news:4995fbd3$0$1110$4fafbaef@reader3.news.tin.it...
Hi all, I need some help. Which is the best way to instantiate multiple
snip

Ok, but what if I want to feed all my instances with the same clock event
so that executing one or N instances don't affect my performances?
You don't connect 'clock events', you connect signals. If you have multiple
instances that all need to be receiving some signal that happens to be named
'clock', then you simply put that signal name on the right side of the port
map

The_Thing1 : entity work.Thing1
port map(
a=> Gazinta,
x=> clock,
b=> bbb);

The_Thing2 : entity work.Thing2
port map(
a=> bbb,
y=> clock,
b=> Gazouta);

I want
to test the performances of a core instantiated multiple times in order
to see if my device scale proportionally.
Is there something holding you back from doing just that? The example
entities 'Thing1' and 'Thing2' could just as easily be the same entity. For
example...
The_Thing1 : entity work.Thing1 port map(....);
The_Thing2 : entity work.Thing1 port map(....);

KJ
 
Il Fri, 13 Feb 2009 19:35:25 -0500, KJ ha scritto:

"mattia" <gervaz@gmail.com> wrote in message
news:49960724$0$1112$4fafbaef@reader4.news.tin.it...
Il Fri, 13 Feb 2009 18:10:38 -0500, KJ ha scritto:

"mattia" <gervaz@gmail.com> wrote in message
news:4995fbd3$0$1110$4fafbaef@reader3.news.tin.it...
Hi all, I need some help. Which is the best way to instantiate
multiple
snip

Ok, but what if I want to feed all my instances with the same clock
event so that executing one or N instances don't affect my
performances?

You don't connect 'clock events', you connect signals. If you have
multiple instances that all need to be receiving some signal that
happens to be named 'clock', then you simply put that signal name on the
right side of the port map

The_Thing1 : entity work.Thing1
port map(
a=> Gazinta,
x=> clock,
b=> bbb);

The_Thing2 : entity work.Thing2
port map(
a=> bbb,
y=> clock,
b=> Gazouta);

I want
to test the performances of a core instantiated multiple times in order
to see if my device scale proportionally.

Is there something holding you back from doing just that? The example
entities 'Thing1' and 'Thing2' could just as easily be the same entity.
For example...
The_Thing1 : entity work.Thing1 port map(....); The_Thing2 : entity
work.Thing1 port map(....);

KJ
Understood, thanks.
 

Welcome to EDABoard.com

Sponsor

Back
Top