A
alb
Hi everyone,
I was wondering if there's any way to describe a bus 'type' and declare
it to be a port, where the bus has signals going in and out of an entity.
I certainly know that registers can group elements together but then
when declared as ports they can be of in/out/inout mode only [1].
On a practical side, assuming I want to have a wishbone bus, can I group
all the signals in a sort of "macro port" which can be mapped more
easily? I certainly realize that an 'in' port on one side should be an
'out' one on another side.
In my testbenches I usually 'abstract' the physical interface with some
sort of type definition which then is mapped into the physical port
through a set of functions but would that be advisable for synthesis?
Any hint/suggestion/comment is appreciated,
Al
[1] I intentionally omitted 'buffer' and 'linkage', the first being
essentially the same as 'out' in vhdl-2008 and the second being
something I've never understood the reason for :-/
I was wondering if there's any way to describe a bus 'type' and declare
it to be a port, where the bus has signals going in and out of an entity.
I certainly know that registers can group elements together but then
when declared as ports they can be of in/out/inout mode only [1].
On a practical side, assuming I want to have a wishbone bus, can I group
all the signals in a sort of "macro port" which can be mapped more
easily? I certainly realize that an 'in' port on one side should be an
'out' one on another side.
In my testbenches I usually 'abstract' the physical interface with some
sort of type definition which then is mapped into the physical port
through a set of functions but would that be advisable for synthesis?
Any hint/suggestion/comment is appreciated,
Al
[1] I intentionally omitted 'buffer' and 'linkage', the first being
essentially the same as 'out' in vhdl-2008 and the second being
something I've never understood the reason for :-/