Skip to content

Commit

Permalink
[software] Create Python data generation framework
Browse files Browse the repository at this point in the history
  • Loading branch information
mbertuletti committed Feb 26, 2024
1 parent 1d56f7b commit cfa60fa
Show file tree
Hide file tree
Showing 15 changed files with 344 additions and 749 deletions.
2 changes: 1 addition & 1 deletion software/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ runtime/arch.ld

# Generated data files
data.h
data/data*.h
apps/*/data*.h
3 changes: 1 addition & 2 deletions software/apps/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ include $(RUNTIME_DIR)/runtime.mk

APPS := $(patsubst $(APPS_DIR)/%/main.c,%,$(shell find $(APPS_DIR) -name "main.c"))
DATA := $(patsubst %.args,%.h,$(shell find $(APPS_DIR) -name "data.args"))
ALLPYS := $(patsubst %.py,%.h,$(wildcard $(DATA_DIR)/*.py))
BINARIES := $(addprefix $(BIN_DIR)/,$(APPS))
ifeq ($(config), systolic)
ALL := $(APPS)
Expand All @@ -37,7 +36,7 @@ all_llvm: $(ALL_LLVM)
$(APPS): % : $(BIN_DIR)/% $(APPS_DIR)/Makefile $(shell find $(RUNTIME_DIR)/**.{S,c,h,ld} -type f)

.PHONY: $(BINARIES)
$(BINARIES): $(BIN_DIR)/%: %/main.c.o $(RUNTIME) $(LINKER_SCRIPT) $(DATA) $(ALLPYS) update_opcodes
$(BINARIES): $(BIN_DIR)/%: %/main.c.o $(RUNTIME) $(LINKER_SCRIPT) $(DATA) update_opcodes
mkdir -p $(dir $@)
$(RISCV_CC) -Iinclude $(RISCV_LDFLAGS) -o $@ $< $(RUNTIME) -T$(RUNTIME_DIR)/link.ld
$(RISCV_OBJDUMP) $(RISCV_OBJDUMP_FLAGS) -D $@ > $@.dump
Expand Down
1 change: 1 addition & 0 deletions software/apps/cfft_radix2_q16/data.args
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
LEN 64
1 change: 1 addition & 0 deletions software/apps/cfft_radix4_q16/data.args
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
LEN 64
3 changes: 3 additions & 0 deletions software/apps/chest_q16/data.args
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
N_TX 4
N_RX 32
N_SAMPLES 256
56 changes: 0 additions & 56 deletions software/data/data_cfft_radix2_q16.h.tpl

This file was deleted.

200 changes: 0 additions & 200 deletions software/data/data_cfft_radix2_q16.py

This file was deleted.

58 changes: 0 additions & 58 deletions software/data/data_cfft_radix4_q16.h.tpl

This file was deleted.

Loading

0 comments on commit cfa60fa

Please sign in to comment.