Hi, I am running a ghdl simulation of mc8051 and want to do some profiling by using textio to write the program counter to file. I have found by searching google that it is not possible to do this since the program counter is a couple of levels down in the hierarchy. I have so far used gtkwave on the ghw file and exported to vcd and used vcd2txt to get something I can use awk on. Problem is only that the PC shows up both on positive and negative edge of the clock, hence the wish to use textio to only print on rising clk edge. Ok, that's the background, now the question: How do I do this with vpi? I have not tried vpi before, and the examples did not make it crystal clear to me how to proceed.
I can, of course, add some buses up to top level and then achieve my goal, but if vpi can save me from modifying the design, it would be a better solution. -- Svenn _______________________________________________ Ghdl-discuss mailing list [email protected] https://mail.gna.org/listinfo/ghdl-discuss
