Record port map in VHDL

Guest #5466095
hello guys,

I need some help with the port map in VHDL
 I have to port map a module to the top module something like
1
 port map ( a => b)
 the Problem is that b has been define in a record something like:
1
 type x is record 
2
 y : foo_in;
3
end record;

and
1
 type foo_in is record
2
     b: std_logic;
3
end record;

What I have done is create a Signal
1
 Signal t : x 
2

3
port map (
4
  a => t.b
5
)

I don't think my port map is correct. What will be the proper way to do 
it.

Many thanks
Moderator (Company: Titel) #5466129
New wrote:
> I don't think my port map is correct.
And whats the problem with it?
What error does what compiler report to you?
And please post a code snippet thats somehow compilable and simulable.

> What will be the proper way to do it.
What type is a?
Guest #5466145
Hi Miller,

Thanks for your Reply

a and b are both std_logic type  port signal. I have a Problem with the 
record in the middle.

I mean if I have to do
1
 port map (
2
   a => t.y.b;
3
)

or
1
 port map(
2
   a => t.foo_in.b;
3
)

Thanks

Reply

A question of your own? This thread is over 8 years old. Ask it in a thread of its own – more people read along there, and it gets answered more often and sooner.

Start a new thread

A fix, an addition or feedback on this thread? Then reply here.

Formatting
  • [c]C-Code[/c]
  • [vhdl]VHDL-Code[/vhdl]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.