T
Tricky
I have a design where I need to capture data in the middle of a
pipeline and dump it to file. I wanted to know people's thoughts on
where you would normally put code to do this.
The pipeline in question is in the top level file, between 2 entity
instantiations. What Im doing is capturing the data and generating the
expected results for the next entity in the pipeline via a process
(surrounded by synthesis translate_off/on directives). My Questions:
1. Is it possible to access the same signals via the top level
instantiation in the testbench, thus removing the debugging code from
the top level file?
2. If the signals change name for some reason in the top level file in
the future, would this missmatch then be picked up by the compiler
when I compile the testbench?
3. Are people happy with debug processes sat in the middle of
synthesisable code, or would you rather see this kind of stuff in the
testbench?
Any input appriciated.
Thanks
Richard
pipeline and dump it to file. I wanted to know people's thoughts on
where you would normally put code to do this.
The pipeline in question is in the top level file, between 2 entity
instantiations. What Im doing is capturing the data and generating the
expected results for the next entity in the pipeline via a process
(surrounded by synthesis translate_off/on directives). My Questions:
1. Is it possible to access the same signals via the top level
instantiation in the testbench, thus removing the debugging code from
the top level file?
2. If the signals change name for some reason in the top level file in
the future, would this missmatch then be picked up by the compiler
when I compile the testbench?
3. Are people happy with debug processes sat in the middle of
synthesisable code, or would you rather see this kind of stuff in the
testbench?
Any input appriciated.
Thanks
Richard