Altera_Forum
Honored Contributor
15 years agohow to write test bench to see internal signals in ModelSIM-Altera
Hi,
I've created a small microprocessor, with internal register, counter, ALU, ... and i want to see the internal value of some of them in the modelsim simulation (RTL and gate level). It was very easy with the previous version of simulation, but i don't see how to make it with a test bench file. There is a solution to add new signals in the top-level file, but this solution is not clean. I supposed that it exist a more intelligent solution and i ask for your help to find it. To be more complete : In my example, in the top level file (microP vhdl file), i have 3 instances of the register component (inst_reg_A, inst_reg_B and inst_reg_Adr). The register component include a signal 'reg'. So my question is how to specify in the vhdl testbench file that i want to see the inst_reg_A.reg value, inst_reg_B.reg .. Thank's EON