mirror of
https://github.com/Minres/RISCV-VP.git
synced 2025-12-17 08:51:35 +00:00
adds VSCode configuration
This commit is contained in:
10
.vscode/extensions.json
vendored
Normal file
10
.vscode/extensions.json
vendored
Normal 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
30
.vscode/launch.json
vendored
@@ -5,16 +5,18 @@
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"type": "gdb",
|
||||
"type": "gdbtarget",
|
||||
"request": "attach",
|
||||
"name": "Attach-to-gdbserver",
|
||||
"executable": "./fw/hello-world/hello",
|
||||
"target": ":10000",
|
||||
"remote": true,
|
||||
"program": "./fw/hello-world/hello",
|
||||
"imageAndSymbols": {
|
||||
"symbolFileName": "./fw/hello-world/hello"
|
||||
},
|
||||
"target": {
|
||||
"port": "10000"
|
||||
},
|
||||
"cwd": "${workspaceRoot}",
|
||||
"valuesFormatting": "prettyPrinters",
|
||||
"gdbpath": "/opt/riscv/bin/riscv32-unknown-elf-gdb",
|
||||
"debugger_args": [],
|
||||
"gdb": "riscv64-unknown-elf-gdb",
|
||||
"presentation": {
|
||||
"hidden": true,
|
||||
"group": "FW Debug",
|
||||
@@ -24,10 +26,9 @@
|
||||
{
|
||||
"type": "gdb",
|
||||
"request": "launch",
|
||||
"name": "Launch-VP-with-gdbserver",
|
||||
"name": "Launch VP with gdbserver",
|
||||
"cwd": "${workspaceRoot}",
|
||||
"valuesFormatting": "parseText",
|
||||
"target": "./build/src/tgc-vp",
|
||||
"program": "${workspaceFolder}/build/Debug/src/riscv-vp",
|
||||
"arguments": "-f fw/hello-world/hello -g 10000",
|
||||
"presentation": {
|
||||
"hidden": true,
|
||||
@@ -38,16 +39,17 @@
|
||||
{
|
||||
"type": "gdb",
|
||||
"request": "launch",
|
||||
"name": "VP-Debug",
|
||||
"name": "Launch VP",
|
||||
"cwd": "${workspaceRoot}",
|
||||
"program": "${workspaceFolder}/out/build/Debug/src/riscv-vp",
|
||||
"arguments": "--isa ? -f fw/hello-world/hello"
|
||||
"program": "${workspaceFolder}/build/Debug/src/riscv-vp",
|
||||
"arguments": "--isa tgc5c -f fw/hello-world/hello",
|
||||
"openGdbConsole": true
|
||||
},
|
||||
],
|
||||
"compounds": [
|
||||
{
|
||||
"name": "FW-Debug",
|
||||
"configurations": ["Launch-VP-with-gdbserver", "Attach-to-gdbserver"]
|
||||
"configurations": ["Launch VP with gdbserver", "Attach-to-gdbserver"]
|
||||
}
|
||||
]
|
||||
}
|
||||
14
.vscode/settings.json
vendored
14
.vscode/settings.json
vendored
@@ -5,13 +5,15 @@
|
||||
"debug.allowBreakpointsEverywhere": true,
|
||||
"editor.rulers": [
|
||||
{
|
||||
"column": 120,
|
||||
"column": 140,
|
||||
"comment": "clang-format"
|
||||
}
|
||||
],
|
||||
"cmake.configureArgs": [
|
||||
"--preset",
|
||||
"Debug",
|
||||
"-DCMAKE_EXPORT_COMPILE_COMMANDS=ON"
|
||||
]
|
||||
"clangd.arguments": [
|
||||
"--pretty",
|
||||
"--background-index",
|
||||
"--compile-commands-dir=${workspaceFolder}/build"
|
||||
],
|
||||
"cmake.copyCompileCommands": "${workspaceFolder}/build/compile_commands.json"
|
||||
|
||||
}
|
||||
@@ -67,7 +67,7 @@ private:
|
||||
sc_core::sc_signal<bool, sc_core::SC_MANY_WRITERS> core_int_s{"core_int_s"};
|
||||
|
||||
void gen_reset();
|
||||
#include "../vp/gen/PipelinedMemoryBusToApbBridge.h"
|
||||
#include "../vp/gen/PipelinedMemoryBusToApbBridge.h" // IWYU pragma: keep
|
||||
};
|
||||
|
||||
} // namespace vp
|
||||
|
||||
Reference in New Issue
Block a user