Record port map in VHDL

Guest #5466095
Rate this post
• ▲ useful
▼ not useful
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
Guest #5466145
Rate this post
• ▲ useful
▼ not useful
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

Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.

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.