Skip to content

Commit 0d61b1e

Browse files
committed
created seperate include dir
1 parent 78ce635 commit 0d61b1e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+2802
-2793
lines changed

.slang/server.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
"indexGlobs": ["./cores/gb/src/.../*.sv*", "./cores/gba/rtl/.../*.sv*"],
3-
"flags": "-f ./build/debug/cores/gba/rtl/gba.f",
4-
"build": "./build/debug/cores/gba/rtl/gba.f"
2+
"indexGlobs": ["./cores/gb/rtl/.../*.sv*", "./cores/gba/rtl/.../*.sv*"],
3+
"flags": "-f ./build/debug/cores/gb/rtl/gb.f"
54
}

cores/common/rtl/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Common code shared by the cores.

cores/gb/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ function(gb_add_rtl)
2323
endif()
2424
endfunction()
2525

26+
set(GB_INCLUDE_DIR
27+
${CMAKE_CURRENT_SOURCE_DIR}/include
28+
)
29+
2630
add_subdirectory(rtl)
2731

2832
target_sources(libgb PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/sim/gb.cpp)

cores/gb/debug/src/debugger.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include "debugger.hpp"
22

3-
#include "VGameboy_Bus_if.h"
3+
#include "VGameboy_GB_Bus_if.h"
44
#include "backends/imgui_impl_sdl2.h"
55
#include "backends/imgui_impl_sdlrenderer2.h"
66
#include "gbh.hpp"
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
`ifndef CPU_ALU_SVH
22
`define CPU_ALU_SVH
33

4-
`include "cpu/opcodes.svh"
5-
6-
import cpu_types_pkg::*;
4+
import gb_cpu_opcodes_pkg::*;
5+
import gb_cpu_types_pkg::*;
76

87
typedef struct packed {
98
logic [7:0] result; // The ALU output value
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
`ifndef CPU_IDU_OPS_SVH
22
`define CPU_IDU_OPS_SVH
33

4-
`include "cpu/opcodes.svh"
5-
6-
import cpu_types_pkg::*;
4+
import gb_cpu_opcodes_pkg::*;
5+
import gb_cpu_types_pkg::*;
76

87
`define APPLY_IDU_OP(SRC, DST, OP, REGS) \
98
begin \
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
`ifndef CPU_UTIL_SV
22
`define CPU_UTIL_SV
33

4-
`include "cpu/opcodes.svh"
5-
6-
import cpu_types_pkg::*;
4+
import gb_cpu_opcodes_pkg::*;
5+
import gb_cpu_types_pkg::*;
76

87
`define DISPLAY_CONTROL_WORD(CW, i) \
98
begin \

0 commit comments

Comments
 (0)