Sorry guys, still can't get this to work
TB code:
assert(false) report "Maximum FIFO depth: " & to_string(<<signal .tb.dut.gen_module__0.module.fifo_depth : std_logic_vector>>) severity note;
Copy and Paste from sim environment
sim:/tb/dut/gen_module__0/module/fifo_depth
For some reason, I would get the following compile error from Riviera Pro:
COMP96 ERROR COMP96_0010: "Invalid literal." "../tb.vhd" 675 98
COMP96 ERROR COMP96_0018: "Identifier expected expected." "../tb.vhd" 675 98
The 98th character position is right at the beginning of 'gen_module__0', so it looks like from the compiler's POV, the module is not yet generated.
Note that if I have something other than gen_module__0 in place, then the code would actually compiled, but would then fail at elaboration. So I do think we are moving at the right direction.
On Tuesday, 13 November 2012 03:00:53 UTC-8, Sean Durkin wrote:
> py wrote:
>
> > Hi Sean,
>
> >
>
> > I tried the hierachical referenece method and ran into an issue. It
>
> > does work if I could reference a signal in an instantiated module.
>
> > However, what should the syntax be if a module is generated? ie:
>
> >
>
> > gen_counter : for idx in 0 to max-1 generate
>
> >
>
> > counter: entity work.counter ... ...
>
> >
>
> > end generate gen_counter;
>
> >
>
> > The signal I want to reference inside the counter module.
>
>
>
> Yeah, I'm always unclear about that, too. 
>
>
>
> Usually I just click through the hierarchy in the simulator GUI and then
>
> copy&paste the displayed hierarchy name.
>
>
>
> HTH,
>
> Sean