move all project variables to env, update readme

This commit is contained in:
Luka Jankovic 2025-11-12 21:23:24 +01:00
parent 2227c52371
commit 2d6563a3cf
3 changed files with 34 additions and 17 deletions

View file

@ -1,22 +1,7 @@
include .env
export $(shell sed 's/=.*//' .env)
PROJ_NAME := example
SIM_TOP := example_tb
TOP := and_gate
SRC_DIR := src
SIM_DIR := sim
BUILD_DIR := .build
WAVEFORM_CFG := $(SIM_DIR)/$(SIM_TOP).sim.wcfg
WAVEFORM_VCD := simulation_${PROJ_NAME}.wdb
PART := xc7z020clg400-1
CONSTRAINTS := Zybo-Z7.xdc
THREADS := 16
THREADS := $(shell nproc)
all: sim