From a2c8e47295dbb93faeb2f949ce354c4faa919fc9 Mon Sep 17 00:00:00 2001 From: andyfox-rushc Date: Mon, 11 Sep 2023 11:39:13 -0700 Subject: [PATCH] multpass.cc -> booth.cc, added author/support contact info --- passes/techmap/Makefile.inc | 5 +---- passes/techmap/{multpass.cc => booth.cc} | 12 ++++++++---- 2 files changed, 9 insertions(+), 8 deletions(-) rename passes/techmap/{multpass.cc => booth.cc} (99%) diff --git a/passes/techmap/Makefile.inc b/passes/techmap/Makefile.inc index 8b0b2aa23..fb003103d 100644 --- a/passes/techmap/Makefile.inc +++ b/passes/techmap/Makefile.inc @@ -4,7 +4,7 @@ OBJS += passes/techmap/techmap.o OBJS += passes/techmap/simplemap.o OBJS += passes/techmap/dfflibmap.o OBJS += passes/techmap/maccmap.o -OBJS += passes/techmap/multpass.o +OBJS += passes/techmap/booth.o OBJS += passes/techmap/libparse.o ifeq ($(ENABLE_ABC),1) @@ -30,9 +30,6 @@ OBJS += passes/techmap/extract_reduce.o OBJS += passes/techmap/alumacc.o OBJS += passes/techmap/dffinit.o OBJS += passes/techmap/pmuxtree.o -OBJS += passes/techmap/bmuxmap.o -OBJS += passes/techmap/demuxmap.o -OBJS += passes/techmap/bwmuxmap.o OBJS += passes/techmap/muxcover.o OBJS += passes/techmap/aigmap.o OBJS += passes/techmap/tribuf.o diff --git a/passes/techmap/multpass.cc b/passes/techmap/booth.cc similarity index 99% rename from passes/techmap/multpass.cc rename to passes/techmap/booth.cc index 9e97fc674..21f16aec7 100644 --- a/passes/techmap/multpass.cc +++ b/passes/techmap/booth.cc @@ -1,6 +1,7 @@ /* * yosys -- Yosys Open SYnthesis Suite * + * Copyright (C) 2023 Andy Fox https://www.linkedin.com/in/awfox/ * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -17,8 +18,8 @@ */ /* - MultPass - -------- + Booth Pass + ---------- Replace $mul with booth encoded multipliers. Two different architectures used for signed/unsigned. @@ -31,13 +32,13 @@ http://i.stanford.edu/pub/cstr/reports/csl/tr/94/617/CSL-TR-94-617.pdf How to use: - Add multpass to your yosys script eg: + Add booth pass to your yosys script eg: read_verilog smultiply5_rtl.v opt wreduce opt - multpass + booth alumacc maccmap opt @@ -46,6 +47,9 @@ abc -liberty NangateOpenCellLibrary_typical.lib stat -liberty NangateOpenCellLibrary_typical.lib write_verilog -norename booth_final.v + +or in generic synthesis call with -booth argument: +synth -top my_design -booth */ #include "kernel/sigtools.h"