ara icon indicating copy to clipboard operation
ara copied to clipboard

Trouble generating Vector Trace

Open StyleDiablo opened this issue 3 years ago • 9 comments

I am having trouble getting the vector trace generator to work.I tried to compile with the given command but nothing.I tried make bin/${rv64uv-ara-vxor}.ideal for example but all is returning is : No rule to make target 'bin/ara-vxor.ideal'. Stop. Can you help me please?

StyleDiablo avatar Oct 31 '22 14:10 StyleDiablo

Can you share more detail on it? Command line logs etc. Anything related to it. Especially the commands you used to run it.

ghost avatar Nov 01 '22 13:11 ghost

Try adding the rv64uv prefix if you are doing some stuff manually like this: bin/ara-vxor.ideal ---> bin/ rv64uv- ara-vxor.ideal

ghost avatar Nov 01 '22 13:11 ghost

I tried the command that was given , meaning: make bin/${program}.ideal but with rv64uv-ara-vxor where the program is. I tried it with and without the {} or without the dollar sign $ but it keeps giving me the same error, Something along tghe lines of make: *** No rule to make target 'bin/ara-vxor.ideal'. Stop. my exact commands are : make bin/${rv64uv-ara-vxor}.ideal or make bin/$rv64uv-ara-vxor.ideal, make bin/rv64uv-ara-vxor.ideal I dont understand what am I doing wrong.

StyleDiablo avatar Nov 03 '22 14:11 StyleDiablo

In ara/hardware, you need to run this:

make simv app=name of your elf

The elf, if compiled properly using make targets in ara/apps should be present in ara/apps/bin/

Try using the available make targets. The recipies are very well defined already.

ghost avatar Nov 03 '22 14:11 ghost

What about the vector trace?

StyleDiablo avatar Nov 03 '22 14:11 StyleDiablo

If you are talking about the waveform you need to make verilate with trace=1 and waveform will be generated whenever you set the trace flag while doing make simv ...

The command would be like make verilate trace=1 for building rtl and

make simv app=* xyz * trace=1

for generation of waveform in file named sim.fst

Btw did the previous solution work?

ghost avatar Nov 03 '22 15:11 ghost

Yes I am talking about the wavefrom but i was under the impression that if you use the ideal dispatcher it produces a waveform with just the vector signals am I wrong?

StyleDiablo avatar Nov 04 '22 14:11 StyleDiablo

Not sure about the "ideal dispatcher" but the whole hierarchy is traced when you set the flag. Scalar core etc. And everything is recorded ..

ghost avatar Nov 04 '22 14:11 ghost

Ok thank you

StyleDiablo avatar Nov 04 '22 14:11 StyleDiablo

Hello, when in ideal-dispatcher mode, the scalar core is replaced with a FIFO pre-loaded with the vector instructions to execute. The FIFO issues these vector instructions to Ara. To generate the trace, you should use Verilator's tracing capabilities or simulate with a simulator like QuestaSim.

mp-17 avatar Aug 26 '24 12:08 mp-17