adds VSCode configuration

This commit is contained in:
2025-07-20 12:10:04 +02:00
parent a45db1d245
commit 20660d52ab
4 changed files with 35 additions and 21 deletions

10
.vscode/extensions.json vendored Normal file
View File

@@ -0,0 +1,10 @@
{
"recommendations": [
"ms-vscode.cpptools-extension-pack",
"llvm-vs-code-extensions.vscode-clangd",
"eclipse-cdt.cdt-gdb-vscode",
"eclipse-cdt.memory-inspector",
"eclipse-cdt.peripheral-inspector",
]
}

30
.vscode/launch.json vendored
View File

@@ -5,16 +5,18 @@
"version": "0.2.0", "version": "0.2.0",
"configurations": [ "configurations": [
{ {
"type": "gdb", "type": "gdbtarget",
"request": "attach", "request": "attach",
"name": "Attach-to-gdbserver", "name": "Attach-to-gdbserver",
"executable": "./fw/hello-world/hello", "program": "./fw/hello-world/hello",
"target": ":10000", "imageAndSymbols": {
"remote": true, "symbolFileName": "./fw/hello-world/hello"
},
"target": {
"port": "10000"
},
"cwd": "${workspaceRoot}", "cwd": "${workspaceRoot}",
"valuesFormatting": "prettyPrinters", "gdb": "riscv64-unknown-elf-gdb",
"gdbpath": "/opt/riscv/bin/riscv32-unknown-elf-gdb",
"debugger_args": [],
"presentation": { "presentation": {
"hidden": true, "hidden": true,
"group": "FW Debug", "group": "FW Debug",
@@ -24,10 +26,9 @@
{ {
"type": "gdb", "type": "gdb",
"request": "launch", "request": "launch",
"name": "Launch-VP-with-gdbserver", "name": "Launch VP with gdbserver",
"cwd": "${workspaceRoot}", "cwd": "${workspaceRoot}",
"valuesFormatting": "parseText", "program": "${workspaceFolder}/build/Debug/src/riscv-vp",
"target": "./build/src/tgc-vp",
"arguments": "-f fw/hello-world/hello -g 10000", "arguments": "-f fw/hello-world/hello -g 10000",
"presentation": { "presentation": {
"hidden": true, "hidden": true,
@@ -38,16 +39,17 @@
{ {
"type": "gdb", "type": "gdb",
"request": "launch", "request": "launch",
"name": "VP-Debug", "name": "Launch VP",
"cwd": "${workspaceRoot}", "cwd": "${workspaceRoot}",
"program": "${workspaceFolder}/out/build/Debug/src/riscv-vp", "program": "${workspaceFolder}/build/Debug/src/riscv-vp",
"arguments": "--isa ? -f fw/hello-world/hello" "arguments": "--isa tgc5c -f fw/hello-world/hello",
"openGdbConsole": true
}, },
], ],
"compounds": [ "compounds": [
{ {
"name": "FW-Debug", "name": "FW-Debug",
"configurations": ["Launch-VP-with-gdbserver", "Attach-to-gdbserver"] "configurations": ["Launch VP with gdbserver", "Attach-to-gdbserver"]
} }
] ]
} }

14
.vscode/settings.json vendored
View File

@@ -5,13 +5,15 @@
"debug.allowBreakpointsEverywhere": true, "debug.allowBreakpointsEverywhere": true,
"editor.rulers": [ "editor.rulers": [
{ {
"column": 120, "column": 140,
"comment": "clang-format" "comment": "clang-format"
} }
], ],
"cmake.configureArgs": [ "clangd.arguments": [
"--preset", "--pretty",
"Debug", "--background-index",
"-DCMAKE_EXPORT_COMPILE_COMMANDS=ON" "--compile-commands-dir=${workspaceFolder}/build"
] ],
"cmake.copyCompileCommands": "${workspaceFolder}/build/compile_commands.json"
} }

View File

@@ -67,7 +67,7 @@ private:
sc_core::sc_signal<bool, sc_core::SC_MANY_WRITERS> core_int_s{"core_int_s"}; sc_core::sc_signal<bool, sc_core::SC_MANY_WRITERS> core_int_s{"core_int_s"};
void gen_reset(); void gen_reset();
#include "../vp/gen/PipelinedMemoryBusToApbBridge.h" #include "../vp/gen/PipelinedMemoryBusToApbBridge.h" // IWYU pragma: keep
}; };
} // namespace vp } // namespace vp