verilator suppor for opae (partial)

This commit is contained in:
Blaise Tine
2020-06-03 06:22:49 -04:00
parent 16d5a8a09c
commit 106d707024
35 changed files with 621 additions and 128 deletions

View File

@@ -1,6 +1,4 @@
.PHONY: build_config
build_config:
../hw/scripts/gen_config.py --outv none --outc ./config.h
all:

View File

@@ -1,5 +1,4 @@
#include "../config.h"
#include <VX_config.h>
# .section .FileIO

View File

@@ -1,4 +1,4 @@
#include "../config.h"
#include <VX_config.h>
.section .text

View File

@@ -1,4 +1,4 @@
#include "../config.h"
#include <VX_config.h>
.type vx_print_str, @function
.global vx_print_str

View File

@@ -1,4 +1,4 @@
#include "../config.h"
#include <VX_config.h>
.section .init, "ax"
.global _start

View File

@@ -4,6 +4,8 @@ COMP = ~/dev/riscv-gnu-toolchain/drops/bin/riscv32-unknown-elf-g++
CC_FLAGS = -march=rv32im -mabi=ilp32 -O3 -Wl,-Bstatic,-T,../../startup/vx_link.ld
CC_FLAGS += -nostartfiles -ffreestanding -fno-rtti -fno-exceptions -Wl,--gc-sections
CC_FLAGS += -I../../../hw
DMP = ~/dev/riscv-gnu-toolchain/drops/bin/riscv32-unknown-elf-objdump
CPY = ~/dev/riscv-gnu-toolchain/drops/bin/riscv32-unknown-elf-objcopy

View File

@@ -1,4 +1,4 @@
#include "../config.h"
#include <VX_config.h>
#include "../intrinsics/vx_intrinsics.h"
#include "vx_api.h"
#include <inttypes.h>