Skip to content

Commit

Permalink
Merge pull request #38 from hasheddan/ccls-setup
Browse files Browse the repository at this point in the history
Add .ccls config for LSP features in sim
  • Loading branch information
hasheddan authored Jul 4, 2023
2 parents 945455d + 5b8895d commit 9876305
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .ccls
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
g++
-I/usr/include/c++/11
-I/usr/share/verilator/include
-I/usr/share/verilator/include/vltstd
-I./obj_dir
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,7 @@ obj_dir
build/

# miscellaneous
scratch/
scratch/

# developer tools
.ccls-cache/
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,4 @@ $(SIMOUTDIR)/%.o: $(SIMDIR)/%.cpp $(RTLDIR)/%.v
verilate: $(SIMOUTDIR)/top.o $(SIMOUTDIR)/alu.o

simulate.%: verilate
@$(SIMOUTDIR)/V$*
@$(SIMOUTDIR)/V$*
1 change: 0 additions & 1 deletion sim/alu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ limitations under the License.
*/

#include <verilated.h>
#include "verilated_vcd_c.h"
#include "Valu.h"

QData aluExec(Valu*& alu, QData a, QData b) {
Expand Down

0 comments on commit 9876305

Please sign in to comment.