Skip to content

Commit

Permalink
Update SW for FPGA Test (#109)
Browse files Browse the repository at this point in the history
* Update GeMM+XDMA Software

* Fix SW Bugs

* \n -> \r\n

* Delete unnecessary hemaia hjson and update ci

* Modify the default cfg hjson file
  • Loading branch information
IveanEx authored Feb 10, 2025
1 parent 34a28ff commit a7a5cbb
Show file tree
Hide file tree
Showing 17 changed files with 1,584 additions and 789 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ jobs:
- name: Compile SW
run: |
echo "Compiling SW"
make sw CFG_OVERRIDE=target/sw/cfg/hemaia.hjson -j$(nproc)
make sw CFG_OVERRIDE=target/sw/cfg/hemaia_ci.hjson -j$(nproc)
- name: Compile RTL
run: |
make rtl CFG_OVERRIDE=target/rtl/cfg/hemaia.hjson
make rtl CFG_OVERRIDE=target/rtl/cfg/hemaia_ci.hjson
- name: Compile Verilator Binary
run: |
make occamy_system_vlt -j$(nproc)
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
MKFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST)))
MKFILE_DIR := $(dir $(MKFILE_PATH))

CFG_OVERRIDE ?= target/rtl/cfg/hemaia.hjson
CFG_OVERRIDE ?= target/rtl/cfg/hemaia_tapeout.hjson
CFG = $(realpath $(CFG_OVERRIDE))

clean:
Expand Down
2 changes: 1 addition & 1 deletion target/rtl/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ CFG = $(TARGET_RTL)/cfg/lru.hjson
$(CFG): FORCE
@# If the LRU config file doesn't exist, we use the default config.
@if [ ! -e $@ ] ; then \
DEFAULT_CFG="$(TARGET_RTL)/cfg/hemaia.hjson"; \
DEFAULT_CFG="$(TARGET_RTL)/cfg/hemaia_tapeout.hjson"; \
echo "Using default config file: $$DEFAULT_CFG"; \
cp $$DEFAULT_CFG $@; \
fi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,10 @@
cfg_base_offset: 65536 // 0x10000
},
clusters:[
"snax_KUL_cluster", // snax_cgra_cluster
"snax_KUL_cluster",
"snax_KUL_dse_cluster",
"snax_hypercorex_cluster",
// "snax_dimc_cluster"
snax_dimc_cluster
],

// peripherals
Expand Down
198 changes: 0 additions & 198 deletions target/rtl/cfg/hemaia_two_clusters.hjson

This file was deleted.

11 changes: 1 addition & 10 deletions target/sim/sw/device/apps/snax/snax-gemmx-conv/data/datagen.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,11 @@
import sys
import os

import subprocess

# Add data utility path
sys.path.append(os.path.join(os.path.dirname(__file__),
"../../../../../../../../util/sim/"))
sys.path.append(os.path.join(os.path.dirname(__file__), "../../../../../../../../util/sim/"))
from data_utils import format_scalar_definition, format_vector_definition # noqa E402

# Add golden model path
bender_command = subprocess.run(['bender', 'path', 'snitch_cluster'],
capture_output=True, text=True)
snax_utils_path = bender_command.stdout.strip()

sys.path.append(snax_utils_path + "/util/sim/")

from snax_utils import ( # noqa E402
conv2d,
im2col,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
channel_en_C: 1,

// memory space configurations
interleaved_address: 1,
interleaved_address: 0,
memory_size: 128,

// hardware parameters
Expand Down
Loading

0 comments on commit a7a5cbb

Please sign in to comment.