Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bump fork for version 0.44 #23

Merged
merged 93 commits into from
Aug 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
93 commits
Select commit Hold shift + click to select a range
7a8a69b
opt_expr: Revisit sorting in `replace_const_cells`
povik Jan 31, 2024
fa4a2b6
opt_expr: In clkinv loop ignore irrelevant cells early
povik Jan 31, 2024
01f332e
opt_expr: reduce mostly harmless warning to log
widlarizer Jun 25, 2024
78ae4ed
hashlib: Add some more primes
georgerennie Jul 1, 2024
339d4e8
hashlib: Correct prime sequence
georgerennie Jul 2, 2024
acddc36
add PolarFire FPGA support
tony-min-1 Jul 2, 2024
2ced275
replace space indent with tab indent
tony-min-1 Jul 2, 2024
68a11c9
more indent fix
tony-min-1 Jul 2, 2024
f57b624
fix indent
tony-min-1 Jul 2, 2024
e5bdc9b
remove DSP48 references
tony-min-1 Jul 3, 2024
7770fa7
fix cells_sim.v
tony-min-1 Jul 4, 2024
0bb7d13
changes made to filenames + references
Damon-Ma-MCHP Jul 4, 2024
59e45be
Merge branch 'mchp' of https://github.com/tony-min-1/yosys into chang…
Damon-Ma-MCHP Jul 4, 2024
d0cd01a
fixed typos, build with makefile succeeds
Damon-Ma-MCHP Jul 4, 2024
c385421
rename options
Damon-Ma-MCHP Jul 4, 2024
6b80e02
missed a few pf instances
Damon-Ma-MCHP Jul 4, 2024
5ba06fd
another typo
Damon-Ma-MCHP Jul 4, 2024
7ff8912
Merge pull request #1 from tony-min-1/change_filenames
tony-min-1 Jul 4, 2024
19d3214
use output reg instead of additional reg declaration
tony-min-1 Jul 4, 2024
e3c4791
move microchip tests from techlibs/microchip/tests to tests/arch/micr…
tony-min-1 Jul 4, 2024
8e7ec2d
add assertions for synth_microchip tests
tony-min-1 Jul 4, 2024
9de5602
ininclude microchip tests in makefile
tony-min-1 Jul 4, 2024
e9ff5f7
Merge pull request #2 from tony-min-1/move_tests
tony-min-1 Jul 4, 2024
6fe0e00
Add missing u sram init (#3)
tony-min-1 Jul 4, 2024
9d0bca9
Gowin. Add an energy saving primitive
yrabbit Jul 6, 2024
d41688f
Revisions (#4)
tony-min-1 Jul 8, 2024
3c95a28
fix compile warning
tony-min-1 Jul 8, 2024
a0c9d10
undo last change, to investigate dff_opt test failure
tony-min-1 Jul 8, 2024
af67c74
initialize argidx to 1
tony-min-1 Jul 8, 2024
fee274c
Makefile: let clang use -Og in debug builds
widlarizer Jul 8, 2024
ad22430
Makefile: use -O3 instead of -Os
widlarizer Jul 8, 2024
0afb5e2
cosmetic changes
tony-min-1 Jul 8, 2024
3db69b7
inline all tests. Add switch to remove init values as PolarFire DFFs …
tony-min-1 Jul 8, 2024
725746b
Makefile: LTO for all, lld for clang
widlarizer Jul 9, 2024
130dee6
Use alternate location for VS build required files
mmicko Jul 9, 2024
6583444
Merge pull request #4482 from YosysHQ/micko/vs_build
mmicko Jul 9, 2024
b08688f
Bump version
github-actions[bot] Jul 10, 2024
19bbdd8
Gowin. Add the DCS primitive
yrabbit Jul 11, 2024
9d15f1d
Makefile: reproducible .gitcommit
widlarizer Jul 12, 2024
7d9ba37
abc: bump for reproducilbe .gitcommit
widlarizer Jul 12, 2024
0cd55e1
Makefile: fix
widlarizer Jul 12, 2024
532188f
opt_expr: change info message
widlarizer Jul 15, 2024
2f51448
haiku: Basic fixes to build under Haiku
kallisti5 Jun 4, 2024
9abdf36
Merge pull request #4428 from kallisti5/haikuisms
widlarizer Jul 15, 2024
1166238
Merge pull request #4176 from povik/opt_expr-performance
widlarizer Jul 15, 2024
49f5477
Bump version
github-actions[bot] Jul 16, 2024
ec32c9a
Makefile: do install `bitpattern.h`
povik Jul 17, 2024
1d7a47b
Merge pull request #4487 from YosysHQ/emil/abc-reproducible-git-hash
widlarizer Jul 18, 2024
1440f62
Merge pull request #4489 from yrabbit/dcs
widlarizer Jul 18, 2024
43c1328
Merge pull request #4479 from yrabbit/z1-power
widlarizer Jul 18, 2024
81df855
Merge pull request #4494 from povik/install-bitpattern-h
povik Jul 18, 2024
583db7b
sigmap: comments
widlarizer Jul 18, 2024
72a0380
ast: don't suggest use in external projects
widlarizer Jul 18, 2024
c94aa71
VHDL is case insensitive, make sure netlist name is proper
mmicko Jul 18, 2024
28ebefd
Bump version
github-actions[bot] Jul 19, 2024
118b282
Merge pull request #4499 from YosysHQ/emil/ast-comments
povik Jul 19, 2024
bf758b9
Makefile: turn off LTO on gcc due to regression
widlarizer Jul 22, 2024
a947572
Add lld to clang build environments and Dockerfile
widlarizer Jul 22, 2024
5d05589
Add llvmPackages.bintools to buildInputs, otherwise we get a linkage …
RCoeurjoly Jul 22, 2024
8c1431f
Guess VHDL frontend for both *.vhd and *vhdl files
RCoeurjoly Jul 23, 2024
ce11ddb
Simplified run_frontend by using a lambda function for file extension…
RCoeurjoly Jul 23, 2024
ad47844
actions: macos install lld from llvm package
widlarizer Jul 24, 2024
29d53bc
actions: try fix GITHUB_PATH
widlarizer Jul 24, 2024
7cd27e1
Makefile: remove accidental abc opt level override for wasi builds
widlarizer Jul 24, 2024
9566709
Initialize extensions when verific pass is registered
mmicko Jul 25, 2024
e063b96
synthprop: Reformat the help
povik Jul 25, 2024
7ee685a
proc_rom: Set `src` on the emitted memory
povik Jul 25, 2024
610d27d
Bump version
github-actions[bot] Jul 26, 2024
41b51c1
Merge pull request #4503 from RCoeurjoly/vhdl_extension
nakengelhardt Jul 26, 2024
dd3637f
Merge pull request #4506 from povik/synthprop-formatting
nakengelhardt Jul 26, 2024
1c41db6
Update interactive_investigation.rst
JamesTimothyMeech Jul 26, 2024
ced1313
Merge pull request #4510 from JamesTimothyMeech/patch-1
povik Jul 26, 2024
960bca0
Bump version
github-actions[bot] Jul 27, 2024
01fd725
proc_rom: test src attribute on memories
widlarizer Jul 25, 2024
49eaa10
Merge pull request #4425 from YosysHQ/emil/doc-sigmap
widlarizer Jul 29, 2024
4b29f64
cost: add model for techmapped cell count, keep_hierarchy pass with -…
widlarizer Jul 29, 2024
61ae9f4
Merge pull request #4514 from YosysHQ/emil/proc_rom-src-test-2
povik Jul 29, 2024
051d832
Merge pull request #4471 from georgerennie/hashlib_primes
widlarizer Jul 29, 2024
af0c2fa
Brewfile: add llvm for lld
widlarizer Jul 29, 2024
e21dd29
Merge pull request #4502 from YosysHQ/emil/build-opt-levels
widlarizer Jul 29, 2024
7c3666f
Merge pull request #4505 from YosysHQ/micko/ext_register
nakengelhardt Jul 29, 2024
9f869b2
Merge pull request #4474 from tony-min-1/mchp
nakengelhardt Jul 29, 2024
405897a
Update top value that is returned back to hierarchy pass
mmicko Jul 29, 2024
92cac63
Merge pull request #4344 from widlarizer/emil/keep_hierarchy
widlarizer Jul 29, 2024
3e14e67
Merge pull request #4500 from YosysHQ/micko/vhdl_mixcase
mmicko Jul 29, 2024
c788484
Bump version
github-actions[bot] Jul 30, 2024
6d98418
Set ranges on exported wires in VCD and FST
mmicko Aug 2, 2024
01b9997
Merge pull request #4518 from YosysHQ/micko/sim_signal_names
nakengelhardt Aug 5, 2024
eeecb54
Makefile: no LTO and lld by default
widlarizer Aug 5, 2024
d2b5788
Bump version
github-actions[bot] Aug 6, 2024
e5d8505
Merge pull request #4523 from YosysHQ/emil/no-lto-lld
mmicko Aug 6, 2024
80ba43d
Release version 0.44
mmicko Aug 6, 2024
d08bf67
Next dev cycle
mmicko Aug 6, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitcommit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
$Format:%h$
$Format:%H$
3 changes: 2 additions & 1 deletion .github/actions/setup-build-env/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ runs:
if: runner.os == 'macOS'
shell: bash
run: |
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1 brew install bison flex gawk libffi pkg-config bash autoconf
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1 brew install bison flex gawk libffi pkg-config bash autoconf llvm

- name: Linux runtime environment
if: runner.os == 'Linux'
Expand All @@ -28,6 +28,7 @@ runs:
shell: bash
run: |
echo "${{ github.workspace }}/.local/bin" >> $GITHUB_PATH
echo "$(brew --prefix llvm)/bin" >> $GITHUB_PATH
echo "$(brew --prefix bison)/bin" >> $GITHUB_PATH
echo "$(brew --prefix flex)/bin" >> $GITHUB_PATH
echo "procs=$(sysctl -n hw.ncpu)" >> $GITHUB_ENV
2 changes: 1 addition & 1 deletion .github/workflows/test-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
mkdir build
cd build
make -f ../Makefile config-$CC
make -f ../Makefile -j$procs
make -f ../Makefile -j$procs ENABLE_LTO=1

- name: Log yosys-config output
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-verific.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
echo "ENABLE_VERIFIC_LIBERTY := 1" >> Makefile.conf
echo "ENABLE_VERIFIC_YOSYSHQ_EXTENSIONS := 1" >> Makefile.conf
echo "ENABLE_CCACHE := 1" >> Makefile.conf
make -j${{ env.procs }}
make -j${{ env.procs }} ENABLE_LTO=1

- name: Install Yosys
run: |
Expand Down
3 changes: 2 additions & 1 deletion Brewfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ brew "python3"
brew "tcl-tk"
brew "xdot"
brew "bash"
brew 'boost-python3'
brew "boost-python3"
brew "llvm"
18 changes: 17 additions & 1 deletion CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,25 @@
List of major changes and improvements between releases
=======================================================

Yosys 0.43 .. Yosys 0.44-dev
Yosys 0.44 .. Yosys 0.45-dev
--------------------------

Yosys 0.43 .. Yosys 0.44
--------------------------
* Various
- Added ENABLE_LTO compile option to enable link time
optimizations.
- Build support for Haiku OS.

* New commands and options
- Added "keep_hierarchy" pass to add attribute with
same name to modules based on cost.
- Added options "-noopt","-bloat" and "-check_cost" to
"test_cell" pass.

* New back-ends
- Added initial PolarFire support. ( synth_microchip )

Yosys 0.42 .. Yosys 0.43
--------------------------
* Various
Expand Down
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ RUN apt-get update -qq \
&& DEBIAN_FRONTEND=noninteractive apt-get -y install --no-install-recommends \
ca-certificates \
clang \
lld \
curl \
libffi-dev \
libreadline-dev \
Expand Down
71 changes: 45 additions & 26 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ ENABLE_PYOSYS := 0
ENABLE_GCOV := 0
ENABLE_GPROF := 0
ENABLE_DEBUG := 0
ENABLE_NDEBUG := 0
ENABLE_LTO := 0
ENABLE_CCACHE := 0
# sccache is not always a drop-in replacement for ccache in practice
ENABLE_SCCACHE := 0
Expand All @@ -53,6 +53,11 @@ SANITIZER =
# SANITIZER = undefined
# SANITIZER = cfi

# Prefer using ENABLE_DEBUG over setting these
OPT_LEVEL := -O3
GCC_LTO :=
CLANG_LTO := -flto=thin

PROGRAM_PREFIX :=

OS := $(shell uname -s)
Expand Down Expand Up @@ -143,14 +148,19 @@ LIBS += -lrt
endif
endif

YOSYS_VER := 0.43+0
ifeq ($(OS), Haiku)
# Allow usage of non-posix vasprintf, mkstemps functions
CXXFLAGS += -D_DEFAULT_SOURCE
endif

YOSYS_VER := 0.44+0

# Note: We arrange for .gitcommit to contain the (short) commit hash in
# tarballs generated with git-archive(1) using .gitattributes. The git repo
# will have this file in its unexpanded form tough, in which case we fall
# back to calling git directly.
TARBALL_GIT_REV := $(shell cat $(YOSYS_SRC)/.gitcommit)
ifeq ($(TARBALL_GIT_REV),$$Format:%h$$)
ifneq ($(findstring Format:,$(TARBALL_GIT_REV)),)
GIT_REV := $(shell GIT_DIR=$(YOSYS_SRC)/.git git rev-parse --short=9 HEAD || echo UNKNOWN)
else
GIT_REV := $(TARBALL_GIT_REV)
Expand All @@ -159,7 +169,7 @@ endif
OBJS = kernel/version_$(GIT_REV).o

bumpversion:
sed -i "/^YOSYS_VER := / s/+[0-9][0-9]*$$/+`git log --oneline ead4718.. | wc -l`/;" Makefile
sed -i "/^YOSYS_VER := / s/+[0-9][0-9]*$$/+`git log --oneline 80ba43d.. | wc -l`/;" Makefile

ABCMKARGS = CC="$(CXX)" CXX="$(CXX)" ABC_USE_LIBSTDCXX=1 ABC_USE_NAMESPACE=abc VERBOSE=$(Q)

Expand Down Expand Up @@ -207,10 +217,17 @@ ifeq ($(OS), OpenBSD)
ABC_ARCHFLAGS += "-DABC_NO_RLIMIT"
endif

# This gets overridden later.
LTOFLAGS := $(GCC_LTO)

ifeq ($(CONFIG),clang)
CXX = clang++
CXXFLAGS += -std=$(CXXSTD) -Os
CXXFLAGS += -std=$(CXXSTD) $(OPT_LEVEL)
ifeq ($(ENABLE_LTO),1)
LINKFLAGS += -fuse-ld=lld
endif
ABCMKARGS += ARCHFLAGS="-DABC_USE_STDINT_H $(ABC_ARCHFLAGS)"
LTOFLAGS := $(CLANG_LTO)

ifneq ($(SANITIZER),)
$(info [Clang Sanitizer] $(SANITIZER))
Expand All @@ -226,19 +243,20 @@ endif
ifneq ($(findstring cfi,$(SANITIZER)),)
CXXFLAGS += -flto
LINKFLAGS += -flto
LTOFLAGS =
endif
endif

else ifeq ($(CONFIG),gcc)
CXX = g++
CXXFLAGS += -std=$(CXXSTD) -Os
CXXFLAGS += -std=$(CXXSTD) $(OPT_LEVEL)
ABCMKARGS += ARCHFLAGS="-DABC_USE_STDINT_H $(ABC_ARCHFLAGS)"

else ifeq ($(CONFIG),gcc-static)
LINKFLAGS := $(filter-out -rdynamic,$(LINKFLAGS)) -static
LIBS := $(filter-out -lrt,$(LIBS))
CXXFLAGS := $(filter-out -fPIC,$(CXXFLAGS))
CXXFLAGS += -std=$(CXXSTD) -Os
CXXFLAGS += -std=$(CXXSTD) $(OPT_LEVEL)
ABCMKARGS = CC="$(CC)" CXX="$(CXX)" LD="$(CXX)" ABC_USE_LIBSTDCXX=1 LIBS="-lm -lpthread -static" OPTFLAGS="-O" \
ARCHFLAGS="-DABC_USE_STDINT_H -DABC_NO_DYNAMIC_LINKING=1 -Wno-unused-but-set-variable $(ARCHFLAGS)" ABC_USE_NO_READLINE=1
ifeq ($(DISABLE_ABC_THREADS),1)
Expand All @@ -247,12 +265,12 @@ endif

else ifeq ($(CONFIG),afl-gcc)
CXX = AFL_QUIET=1 AFL_HARDEN=1 afl-gcc
CXXFLAGS += -std=$(CXXSTD) -Os
CXXFLAGS += -std=$(CXXSTD) $(OPT_LEVEL)
ABCMKARGS += ARCHFLAGS="-DABC_USE_STDINT_H"

else ifeq ($(CONFIG),cygwin)
CXX = g++
CXXFLAGS += -std=gnu++11 -Os
CXXFLAGS += -std=gnu++11 $(OPT_LEVEL)
ABCMKARGS += ARCHFLAGS="-DABC_USE_STDINT_H"

else ifeq ($(CONFIG),wasi)
Expand All @@ -267,7 +285,7 @@ AR = $(WASI_SDK)/bin/ar
RANLIB = $(WASI_SDK)/bin/ranlib
WASIFLAGS := --sysroot $(WASI_SDK)/share/wasi-sysroot $(WASIFLAGS)
endif
CXXFLAGS := $(WASIFLAGS) -std=$(CXXSTD) -Os -D_WASI_EMULATED_PROCESS_CLOCKS $(filter-out -fPIC,$(CXXFLAGS))
CXXFLAGS := $(WASIFLAGS) -std=$(CXXSTD) $(OPT_LEVEL) -D_WASI_EMULATED_PROCESS_CLOCKS $(filter-out -fPIC,$(CXXFLAGS))
LINKFLAGS := $(WASIFLAGS) -Wl,-z,stack-size=1048576 $(filter-out -rdynamic,$(LINKFLAGS))
LIBS := -lwasi-emulated-process-clocks $(filter-out -lrt,$(LIBS))
ABCMKARGS += AR="$(AR)" RANLIB="$(RANLIB)"
Expand All @@ -285,7 +303,7 @@ endif
else ifeq ($(CONFIG),mxe)
PKG_CONFIG = /usr/local/src/mxe/usr/bin/i686-w64-mingw32.static-pkg-config
CXX = /usr/local/src/mxe/usr/bin/i686-w64-mingw32.static-g++
CXXFLAGS += -std=$(CXXSTD) -Os -D_POSIX_SOURCE -DYOSYS_MXE_HACKS -Wno-attributes
CXXFLAGS += -std=$(CXXSTD) $(OPT_LEVEL) -D_POSIX_SOURCE -DYOSYS_MXE_HACKS -Wno-attributes
CXXFLAGS := $(filter-out -fPIC,$(CXXFLAGS))
LINKFLAGS := $(filter-out -rdynamic,$(LINKFLAGS)) -s
LIBS := $(filter-out -lrt,$(LIBS))
Expand All @@ -296,7 +314,7 @@ EXE = .exe

else ifeq ($(CONFIG),msys2-32)
CXX = i686-w64-mingw32-g++
CXXFLAGS += -std=$(CXXSTD) -Os -D_POSIX_SOURCE -DYOSYS_WIN32_UNIX_DIR
CXXFLAGS += -std=$(CXXSTD) $(OPT_LEVEL) -D_POSIX_SOURCE -DYOSYS_WIN32_UNIX_DIR
CXXFLAGS := $(filter-out -fPIC,$(CXXFLAGS))
LINKFLAGS := $(filter-out -rdynamic,$(LINKFLAGS)) -s
LIBS := $(filter-out -lrt,$(LIBS))
Expand All @@ -306,7 +324,7 @@ EXE = .exe

else ifeq ($(CONFIG),msys2-64)
CXX = x86_64-w64-mingw32-g++
CXXFLAGS += -std=$(CXXSTD) -Os -D_POSIX_SOURCE -DYOSYS_WIN32_UNIX_DIR
CXXFLAGS += -std=$(CXXSTD) $(OPT_LEVEL) -D_POSIX_SOURCE -DYOSYS_WIN32_UNIX_DIR
CXXFLAGS := $(filter-out -fPIC,$(CXXFLAGS))
LINKFLAGS := $(filter-out -rdynamic,$(LINKFLAGS)) -s
LIBS := $(filter-out -lrt,$(LIBS))
Expand All @@ -315,13 +333,20 @@ ABCMKARGS += LIBS="-lpthread -lshlwapi -s" ABC_USE_NO_READLINE=0 CC="x86_64-w64-
EXE = .exe

else ifeq ($(CONFIG),none)
CXXFLAGS += -std=$(CXXSTD) -Os
CXXFLAGS += -std=$(CXXSTD) $(OPT_LEVEL)
ABCMKARGS += ARCHFLAGS="-DABC_USE_STDINT_H $(ABC_ARCHFLAGS)"
LTOFLAGS =

else
$(error Invalid CONFIG setting '$(CONFIG)'. Valid values: clang, gcc, mxe, msys2-32, msys2-64, none)
endif


ifeq ($(ENABLE_LTO),1)
CXXFLAGS += $(LTOFLAGS)
LINKFLAGS += $(LTOFLAGS)
endif

ifeq ($(ENABLE_LIBYOSYS),1)
TARGETS += libyosys.so
endif
Expand Down Expand Up @@ -436,16 +461,8 @@ CXXFLAGS += -pg
LINKFLAGS += -pg
endif

ifeq ($(ENABLE_NDEBUG),1)
CXXFLAGS := -O3 -DNDEBUG $(filter-out -Os -ggdb,$(CXXFLAGS))
endif

ifeq ($(ENABLE_DEBUG),1)
ifeq ($(CONFIG),clang)
CXXFLAGS := -O0 -DDEBUG $(filter-out -Os,$(CXXFLAGS))
else
CXXFLAGS := -Og -DDEBUG $(filter-out -Os,$(CXXFLAGS))
endif
CXXFLAGS := -Og -DDEBUG $(filter-out $(OPT_LEVEL),$(CXXFLAGS))
endif

ifeq ($(ENABLE_ABC),1)
Expand Down Expand Up @@ -574,6 +591,7 @@ S =
endif

$(eval $(call add_include_file,kernel/binding.h))
$(eval $(call add_include_file,kernel/bitpattern.h))
$(eval $(call add_include_file,kernel/cellaigs.h))
$(eval $(call add_include_file,kernel/celledges.h))
$(eval $(call add_include_file,kernel/celltypes.h))
Expand Down Expand Up @@ -619,7 +637,7 @@ $(eval $(call add_include_file,backends/rtlil/rtlil_backend.h))

OBJS += kernel/driver.o kernel/register.o kernel/rtlil.o kernel/log.o kernel/calc.o kernel/yosys.o
OBJS += kernel/binding.o
OBJS += kernel/cellaigs.o kernel/celledges.o kernel/satgen.o kernel/scopeinfo.o kernel/qcsat.o kernel/mem.o kernel/ffmerge.o kernel/ff.o kernel/yw.o kernel/json.o kernel/fmt.o
OBJS += kernel/cellaigs.o kernel/celledges.o kernel/cost.o kernel/satgen.o kernel/scopeinfo.o kernel/qcsat.o kernel/mem.o kernel/ffmerge.o kernel/ff.o kernel/yw.o kernel/json.o kernel/fmt.o
ifeq ($(ENABLE_ZLIB),1)
OBJS += kernel/fstdata.o
endif
Expand Down Expand Up @@ -773,10 +791,10 @@ check-git-abc:
exit 1; \
elif git -C "$(YOSYS_SRC)" submodule status abc 2>/dev/null | grep -q '^ '; then \
exit 0; \
elif [ -f "$(YOSYS_SRC)/abc/.gitcommit" ] && ! grep -q '\$$Format:%h\$$' "$(YOSYS_SRC)/abc/.gitcommit"; then \
elif [ -f "$(YOSYS_SRC)/abc/.gitcommit" ] && ! grep -q '\$$Format:%[hH]\$$' "$(YOSYS_SRC)/abc/.gitcommit"; then \
echo "'abc' comes from a tarball. Continuing."; \
exit 0; \
elif [ -f "$(YOSYS_SRC)/abc/.gitcommit" ] && grep -q '\$$Format:%h\$$' "$(YOSYS_SRC)/abc/.gitcommit"; then \
elif [ -f "$(YOSYS_SRC)/abc/.gitcommit" ] && grep -q '\$$Format:%[hH]\$$' "$(YOSYS_SRC)/abc/.gitcommit"; then \
echo "Error: 'abc' is not configured as a git submodule."; \
echo "To resolve this:"; \
echo "1. Back up your changes: Save any modifications from the 'abc' directory to another location."; \
Expand Down Expand Up @@ -863,6 +881,7 @@ endif
+cd tests/arch/quicklogic/pp3 && bash run-test.sh $(SEEDOPT)
+cd tests/arch/quicklogic/qlf_k6n10f && bash run-test.sh $(SEEDOPT)
+cd tests/arch/gatemate && bash run-test.sh $(SEEDOPT)
+cd tests/arch/microchip && bash run-test.sh $(SEEDOPT)
+cd tests/rpc && bash run-test.sh
+cd tests/memfile && bash run-test.sh
+cd tests/verilog && bash run-test.sh
Expand Down
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ Xdot (graphviz) is used by the ``show`` command in yosys to display schematics.
For example on Ubuntu Linux 16.04 LTS the following commands will install all
prerequisites for building yosys:

$ sudo apt-get install build-essential clang bison flex \
$ sudo apt-get install build-essential clang lld bison flex \
libreadline-dev gawk tcl-dev libffi-dev git \
graphviz xdot pkg-config python3 libboost-system-dev \
libboost-python-dev libboost-filesystem-dev zlib1g-dev
Expand Down Expand Up @@ -116,6 +116,17 @@ unless `CXX` is assigned in the call to make, e.g.

$ make CXX=$CXX

The Makefile has many variables influencing the build process. These can be
adjusted by modifying the Makefile.conf file which is created at the
`make config-...` step (see above), or they can be set by passing an option
to the make command directly.

For example, if you have clang, and (a compatible version of) `ld.lld`
available in PATH, it's recommended to speed up incremental builds with
lld by enabling LTO:

$ make ENABLE_LTO=1

For other compilers and build configurations it might be
necessary to make some changes to the config section of the
Makefile.
Expand Down
2 changes: 1 addition & 1 deletion abc
Submodule abc updated 1 files
+1 −1 .gitcommit
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
project = 'YosysHQ Yosys'
author = 'YosysHQ GmbH'
copyright ='2024 YosysHQ GmbH'
yosys_ver = "0.43"
yosys_ver = "0.44"

# select HTML theme
html_theme = 'furo'
Expand Down
2 changes: 1 addition & 1 deletion docs/source/getting_started/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ Installing all prerequisites for Ubuntu 20.04:

.. code:: console

sudo sudo apt-get install build-essential clang bison flex \
sudo sudo apt-get install build-essential clang lld bison flex \
libreadline-dev gawk tcl-dev libffi-dev git make \
graphviz xdot pkg-config python3 libboost-system-dev \
libboost-python-dev libboost-filesystem-dev zlib1g-dev
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ leads us to the third diagram:

Output of the third :cmd:ref:`show` command in :ref:`example_ys`

Here we see that the :cmd:ref:`proc` command not only has removed the artifacts
Here we see that the :cmd:ref:`opt` command not only has removed the artifacts
left behind by :cmd:ref:`proc`, but also determined correctly that it can remove
the first ``$mux`` cell without changing the behavior of the circuit.

Expand Down
4 changes: 2 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
yosys = pkgs.clangStdenv.mkDerivation {
name = "yosys";
src = ./. ;
buildInputs = with pkgs; [ clang bison flex libffi tcl readline python3 llvmPackages.libcxxClang zlib git pkg-configUpstream ];
buildInputs = with pkgs; [ clang bison flex libffi tcl readline python3 llvmPackages.libcxxClang zlib git pkg-configUpstream llvmPackages.bintools ];
checkInputs = with pkgs; [ gtest ];
propagatedBuildInputs = [ abc-verifier ];
preConfigure = "make config-clang";
Expand All @@ -41,7 +41,7 @@
packages.default = yosys;
defaultPackage = yosys;
devShell = pkgs.mkShell {
buildInputs = with pkgs; [ clang bison flex libffi tcl readline python3 llvmPackages.libcxxClang zlib git gtest abc-verifier ];
buildInputs = with pkgs; [ clang llvmPackages.bintools bison flex libffi tcl readline python3 llvmPackages.libcxxClang zlib git gtest abc-verifier ];
};
}
);
Expand Down
8 changes: 4 additions & 4 deletions frontends/ast/ast.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
*
* This is the AST frontend library.
*
* The AST frontend library is not a frontend on it's own but provides a
* generic abstract syntax tree (AST) abstraction for HDL code and can be
* used by HDL frontends. See "ast.h" for an overview of the API and the
* Verilog frontend for an usage example.
* The AST frontend library is not a frontend on its own but provides an
* abstract syntax tree (AST) abstraction for the open source Verilog frontend
* at frontends/verilog.
*
*
*/

Expand Down
Loading
Loading