Skip to content

make run-emulator-debug fails, even though run-emulator works #9

@apaj

Description

@apaj

Hi,
everything is running smoothly until I try to do make run-emulator-debug. That results in the following:

running basedir/Makefile: make run-emulator-debug

make -C emulator/rv32_1stage/ run-debug
make[1]: Entering directory '/home/apaj/riscv-sodor/emulator/rv32_1stage'
make[1]: *** No rule to make target 'run-asm-tests-debug', needed by 'run-debug'.  Stop.
make[1]: Leaving directory '/home/apaj/riscv-sodor/emulator/rv32_1stage'
Makefile:97: recipe for target 'emulator/rv32_1stage/generated-src-debug/timestamp' failed
make: *** [emulator/rv32_1stage/generated-src-debug/timestamp] Error 2

At this webpage, I found this text:

When run in debug mode, all processors will generate .vcd information (viewable by your favorite waveform viewer). All processors can also spit out cycle-by-cycle log information. Although already done for you by the build system, to generate .vcd files, see emulator/common/Makefile.include to add the "-v${vcdfilename}" flag to the emulator-debug binary.

When I open Makefile.include, I do see this part:

output:
        mkdir -p $@

$(addprefix output/, $(global_asm_vcd)): output/%.vcd: $(global_tstdir)/% emulator-debug
        mkdir -p output
        ./emulator-debug -v$@ +max-cycles=$(asm_test_timeout) +verbose +loadmem=$< 2> /dev/null

...

$(addprefix output/, $(global_bmarks_vcd)): output/%.riscv.vcd: $(global_bmarkdir)/%.riscv emulator-debug
        mkdir -p output
        ./emulator-debug -v$@ +max-cycles=$(bmark_timeout) +verbose +loadmem=$< 2> /dev/null

but, unfortunately, I have to admit I don't really see how to add -v if it's already there...

Could someone please advise?

Thanks,
Aleksandar

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions