3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-07-05 15:06:11 +00:00

Merge pull request #5982 from YosysHQ/cleanup

File cleanup
This commit is contained in:
Miodrag Milanović 2026-06-23 14:07:10 +00:00 committed by GitHub
commit 30d0b39a15
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
590 changed files with 7338 additions and 7566 deletions

View file

@ -5,4 +5,3 @@ contact_links:
- name: IRC Channel - name: IRC Channel
url: https://web.libera.chat/#yosys url: https://web.libera.chat/#yosys
about: "#yosys on irc.libera.chat" about: "#yosys on irc.libera.chat"

View file

@ -22,4 +22,3 @@ body:
description: "A clear and detailed description of the feature." description: "A clear and detailed description of the feature."
validations: validations:
required: true required: true

30
.pre-commit-config.yaml Normal file
View file

@ -0,0 +1,30 @@
# To use:
#
# pre-commit run -a
#
# Or:
#
# pre-commit install # (runs every time you commit in git)
#
# To update this file:
#
# pre-commit autoupdate
#
# See https://github.com/pre-commit/pre-commit
exclude: ^libs/
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-illegal-windows-names
- id: check-yaml
args: [--allow-multiple-documents]
- id: end-of-file-fixer
- id: fix-byte-order-marker
- id: mixed-line-ending
args: [--fix,lf]
- id: trailing-whitespace

View file

@ -1802,4 +1802,3 @@ Yosys 0.1.0 .. Yosys 0.2.0
- Added "design -stash/-copy-from/-copy-to" - Added "design -stash/-copy-from/-copy-to"
- Added "copy" command - Added "copy" command
- Added "splice" command - Added "splice" command

View file

@ -303,4 +303,3 @@ DOCS (e.g.)
This will build/rebuild yosys as necessary before generating the website This will build/rebuild yosys as necessary before generating the website
documentation from the yosys help commands. To build for pdf instead of html, documentation from the yosys help commands. To build for pdf instead of html,
use the `docs-latexpdf` target. use the `docs-latexpdf` target.

View file

@ -27,4 +27,3 @@ for fn in test_*.il; do
done done
echo "OK." echo "OK."

View file

@ -118,4 +118,3 @@ os.system("set -x; ./test_gold > test_gold.out")
os.system("set -x; ./test_gate > test_gate.out") os.system("set -x; ./test_gate > test_gate.out")
os.system("set -x; md5sum test_gold.out test_gate.out") os.system("set -x; md5sum test_gold.out test_gate.out")

View file

@ -11,4 +11,3 @@ endmodule
module unit_y(input [31:0] a, b, c, output [31:0] y); module unit_y(input [31:0] a, b, c, output [31:0] y);
assign y = a & (b | c); assign y = a & (b | c);
endmodule endmodule

View file

@ -52,4 +52,3 @@ echo ""
echo " All tests passed." echo " All tests passed."
echo "" echo ""
exit 0 exit 0

View file

@ -30,4 +30,3 @@ for fn in test_*.il; do
done done
grep '^-- invariant .* is false' *.out || echo 'All OK.' grep '^-- invariant .* is false' *.out || echo 'All OK.'

View file

@ -29,4 +29,3 @@ Yosys environment variables
``YOSYS_ABORT_ON_LOG_ERROR`` ``YOSYS_ABORT_ON_LOG_ERROR``
Can be used for debugging Yosys internals. Setting it to 1 causes abort() to Can be used for debugging Yosys internals. Setting it to 1 causes abort() to
be called when Yosys terminates with an error message. be called when Yosys terminates with an error message.

View file

@ -20,4 +20,3 @@ output reg Q;
always @(posedge C) always @(posedge C)
Q <= D; Q <= D;
endmodule endmodule

View file

@ -16,4 +16,3 @@ macc_xilinx_xmap.dot: macc_xilinx_*.v macc_xilinx_test.ys
.PHONY: clean .PHONY: clean
clean: clean:
@rm -f *.dot @rm -f *.dot

View file

@ -50,4 +50,3 @@ show -prefix macc_xilinx_test2e -format dot -notitle test2
design -load __macc_xilinx_xmap design -load __macc_xilinx_xmap
show -prefix macc_xilinx_xmap -format dot -notitle show -prefix macc_xilinx_xmap -format dot -notitle

View file

@ -88,4 +88,3 @@ check:
stat stat
check -noinit check -noinit
blackbox =A:whitebox blackbox =A:whitebox

View file

@ -15,4 +15,3 @@ opt_merge after
clean clean
show -format dot -prefix opt_merge_full -notitle -color cornflowerblue uut show -format dot -prefix opt_merge_full -notitle -color cornflowerblue uut

View file

@ -14,4 +14,3 @@ opt_muxtree after
clean clean
show -format dot -prefix opt_muxtree_full -notitle -color cornflowerblue uut show -format dot -prefix opt_muxtree_full -notitle -color cornflowerblue uut

View file

@ -19,4 +19,3 @@ eval -set in 1 -show out
eval -set in 270369 -show out eval -set in 270369 -show out
sat -set out 632435482 sat -set out 632435482

View file

@ -17,4 +17,3 @@ examples:
.PHONY: clean .PHONY: clean
clean: clean:
@rm -f *.dot @rm -f *.dot

View file

@ -178,4 +178,3 @@ of carry chains and DSPs, it avoids optimising for a path that isn't the actual
critical path, while the generally-longer paths result in ABC9 being able to critical path, while the generally-longer paths result in ABC9 being able to
reduce design area by mapping other logic to slower cells with greater logic reduce design area by mapping other logic to slower cells with greater logic
density. density.

View file

@ -31,4 +31,3 @@ for commands such as `abc`\ /`abc9`, `simplemap`, `dfflegalize`, and
extract extract
abc abc
cell_libs cell_libs

View file

@ -787,4 +787,3 @@ Asynchronous writes
end end
assign read_data = mem[read_addr]; assign read_data = mem[read_addr];

View file

@ -14,4 +14,3 @@ of interest for developers looking to customise Yosys builds.
advanced_bugpoint advanced_bugpoint
contributing contributing
test_suites test_suites

View file

@ -194,4 +194,3 @@ compiler versions. For up to date information, including OS versions, refer to
.. code-block:: console .. code-block:: console
cmake --build build --target test-unit cmake --build build --target test-unit

View file

@ -16,4 +16,3 @@ These scripts contain three types of commands:
overview overview
control_and_data control_and_data
verilog_frontend verilog_frontend

View file

@ -56,4 +56,3 @@ constructs must be called from the synthesis script first.
.. [1] .. [1]
In Yosys the term pass is only used to refer to commands that operate on the In Yosys the term pass is only used to refer to commands that operate on the
RTLIL data structure. RTLIL data structure.

View file

@ -16,4 +16,3 @@ Programming board:
All of the above: All of the above:
bash run.sh bash run.sh

View file

@ -21,4 +21,3 @@ create_clock -add -name sys_clk_pin -period 10.00 -waveform {0 5} [get_ports CLK
set_property CONFIG_VOLTAGE 3.3 [current_design] set_property CONFIG_VOLTAGE 3.3 [current_design]
set_property CFGBVS VCCO [current_design] set_property CFGBVS VCCO [current_design]

View file

@ -10,4 +10,3 @@ Each test bench can be run separately by either running:
The later case also includes pure verilog simulation using the iverilog The later case also includes pure verilog simulation using the iverilog
and gtkwave for comparison. and gtkwave for comparison.

View file

@ -36,4 +36,3 @@ X1 nC D t DLATCH
X2 C t Q DLATCH X2 C t Q DLATCH
X3 C nC NOT X3 C nC NOT
.ENDS DFF .ENDS DFF

View file

@ -41,4 +41,3 @@ always @(posedge C, posedge S, posedge R)
else else
Q <= D; Q <= D;
endmodule endmodule

View file

@ -28,4 +28,3 @@ Alatch D E null null Q nQ latch1
.model dff1 d_dff .model dff1 d_dff
Adff D C null null Q nQ dff1 Adff D C null null Q nQ dff1
.ENDS DFF .ENDS DFF

View file

@ -13,4 +13,3 @@ abc -liberty cmos_cells.lib;;
write_verilog synth.v write_verilog synth.v
write_spice -neg 0s -pos 1s synth.sp write_spice -neg 0s -pos 1s synth.sp

View file

@ -4,4 +4,3 @@ set -ex
../../yosys counter.ys ../../yosys counter.ys
ngspice testbench.sp ngspice testbench.sp

View file

@ -12,4 +12,3 @@ iverilog -o counter_tb counter.v counter_tb.v
# requires ngspice with xspice support enabled: # requires ngspice with xspice support enabled:
ngspice testbench_digital.sp ngspice testbench_digital.sp

View file

@ -19,4 +19,3 @@ int main()
Yosys::yosys_shutdown(); Yosys::yosys_shutdown();
return 0; return 0;
} }

View file

@ -14,4 +14,3 @@ gowinTool_linux directory
3.) edit gowinTool_linux/bin/gwlicense.ini. Set lic="..." to 3.) edit gowinTool_linux/bin/gwlicense.ini. Set lic="..." to
the full path to the license file. the full path to the license file.

View file

@ -2,4 +2,3 @@
iverilog -D POST_IMPL -o verif_post -s tb_top tb_top.v top.vqm $(yosys-config --datdir/altera_intel/max10/cells_comb_max10.v) iverilog -D POST_IMPL -o verif_post -s tb_top tb_top.v top.vqm $(yosys-config --datdir/altera_intel/max10/cells_comb_max10.v)
vvp -N verif_post vvp -N verif_post

View file

@ -2,4 +2,3 @@
iverilog -D POST_IMPL -o verif_post -s tb lfsr_updown_tb.v top.vqm $(yosys-config --datdir/altera_intel/max10/cells_comb_max10.v) iverilog -D POST_IMPL -o verif_post -s tb lfsr_updown_tb.v top.vqm $(yosys-config --datdir/altera_intel/max10/cells_comb_max10.v)
vvp -N verif_post vvp -N verif_post

View file

@ -10,4 +10,3 @@ osu035_stdcells.lib:
clean: clean:
rm -f osu035_stdcells.lib rm -f osu035_stdcells.lib
rm -f example.yslog example.edif rm -f example.yslog example.edif

View file

@ -74,4 +74,3 @@ clean:
rm -f glift_mux.ys rm -f glift_mux.ys
.PHONY: demo1 demo2 demo3 demo4 demo5 demo6 demo7 demo8 demo9 clean .PHONY: demo1 demo2 demo3 demo4 demo5 demo6 demo7 demo8 demo9 clean

View file

@ -10,4 +10,3 @@ module demo9;
cover(1); cover(1);
end end
endmodule endmodule

0
examples/smtbmc/glift/C7552.v Executable file → Normal file
View file

0
examples/smtbmc/glift/C880.v Executable file → Normal file
View file

0
examples/smtbmc/glift/alu2.v Executable file → Normal file
View file

0
examples/smtbmc/glift/alu4.v Executable file → Normal file
View file

0
examples/smtbmc/glift/t481.v Executable file → Normal file
View file

0
examples/smtbmc/glift/too_large.v Executable file → Normal file
View file

0
examples/smtbmc/glift/ttt2.v Executable file → Normal file
View file

0
examples/smtbmc/glift/x1.v Executable file → Normal file
View file

View file

@ -161,4 +161,3 @@ std::unique_ptr<AST::AstNode> AST::dpi_call(AstSrcLocType, const std::string&, c
YOSYS_NAMESPACE_END YOSYS_NAMESPACE_END
#endif /* YOSYS_ENABLE_LIBFFI */ #endif /* YOSYS_ENABLE_LIBFFI */

View file

@ -691,4 +691,3 @@ struct BlifFrontend : public Frontend {
} BlifFrontend; } BlifFrontend;
YOSYS_NAMESPACE_END YOSYS_NAMESPACE_END

View file

@ -836,5 +836,3 @@ skip_cell:;
} LibertyFrontend; } LibertyFrontend;
YOSYS_NAMESPACE_END YOSYS_NAMESPACE_END

View file

@ -34,4 +34,3 @@ should be something like this:
SBY [example] summary: engine_0 (smtbmc yices) returned PASS for induction SBY [example] summary: engine_0 (smtbmc yices) returned PASS for induction
SBY [example] summary: successful proof by k-induction. SBY [example] summary: successful proof by k-induction.
SBY [example] DONE (PASS, rc=0) SBY [example] DONE (PASS, rc=0)

View file

@ -713,4 +713,3 @@ import[ \t\r\n]+\"(DPI|DPI-C)\"[ \t\r\n]+function[ \t\r\n]+ {
<*>. { BEGIN(0); return char_tok(*YYText(), out_loc); } <*>. { BEGIN(0); return char_tok(*YYText(), out_loc); }
%% %%

View file

@ -712,4 +712,3 @@ RTLIL::Const RTLIL::const_bwmux(const RTLIL::Const &arg1, const RTLIL::Const &ar
} }
YOSYS_NAMESPACE_END YOSYS_NAMESPACE_END

View file

@ -97,4 +97,3 @@ for line in fileinput.input():
print(simHelper) print(simHelper)
# new # new
simHelper = SimHelper() simHelper = SimHelper()

View file

@ -169,4 +169,3 @@ void PrettyJson::entry_json(const char *name, const Json &value)
this->name(name); this->name(name);
this->value(value); this->value(value);
} }

View file

@ -401,4 +401,3 @@ struct DesignPass : public Pass {
} DesignPass; } DesignPass;
YOSYS_NAMESPACE_END YOSYS_NAMESPACE_END

View file

@ -282,4 +282,3 @@ struct OptLutInsPass : public Pass {
} OptLutInsPass; } OptLutInsPass;
PRIVATE_NAMESPACE_END PRIVATE_NAMESPACE_END

View file

@ -347,4 +347,3 @@ struct OptMemFeedbackPass : public Pass {
} OptMemFeedbackPass; } OptMemFeedbackPass;
PRIVATE_NAMESPACE_END PRIVATE_NAMESPACE_END

View file

@ -106,4 +106,3 @@ struct OptMemPriorityPass : public Pass {
} OptMemPriorityPass; } OptMemPriorityPass;
PRIVATE_NAMESPACE_END PRIVATE_NAMESPACE_END

View file

@ -650,4 +650,3 @@ struct WreducePass : public Pass {
} WreducePass; } WreducePass;
PRIVATE_NAMESPACE_END PRIVATE_NAMESPACE_END

View file

@ -117,4 +117,3 @@ struct ProcMemWrPass : public Pass {
} ProcMemWrPass; } ProcMemWrPass;
PRIVATE_NAMESPACE_END PRIVATE_NAMESPACE_END

View file

@ -82,4 +82,3 @@ always @(posedge clk)
assign y = counter == 12; assign y = counter == 12;
endmodule endmodule

View file

@ -11,4 +11,3 @@ sat -show rst,counter -set-at 3 y 1'b1 -seq 4 example004
sat -prove y 1'b0 -show rst,counter,y -ignore_unknown_cells example004 sat -prove y 1'b0 -show rst,counter,y -ignore_unknown_cells example004
sat -prove y 1'b0 -tempinduct -show rst,counter,y -set-at 1 rst 1'b1 -seq 1 example004 sat -prove y 1'b0 -tempinduct -show rst,counter,y -set-at 1 rst 1'b1 -seq 1 example004

View file

@ -1,4 +1,3 @@
#define FILTERLIB #define FILTERLIB
#include "libparse.cc" #include "libparse.cc"

View file

@ -1286,4 +1286,3 @@ int main(int argc, char **argv)
} }
#endif #endif

View file

@ -389,4 +389,3 @@ struct TestAutotbBackend : public Backend {
} TestAutotbBackend; } TestAutotbBackend;
PRIVATE_NAMESPACE_END PRIVATE_NAMESPACE_END

View file

@ -70,4 +70,3 @@ module \$_DFF_P_ (input D, C, output Q);
DFF _TECHMAP_REPLACE_ DFF _TECHMAP_REPLACE_
(.q(Q), .d(D), .ck(C)); (.q(Q), .d(D), .ck(C));
endmodule endmodule

View file

@ -74,6 +74,3 @@ module DFF (output reg q,
q <= d; q <= d;
endmodule endmodule

View file

@ -170,4 +170,3 @@ module _80_analogdevices_alu (A, B, CI, BI, X, Y, CO);
assign X = S; assign X = S;
endmodule endmodule

View file

@ -60,4 +60,3 @@ module \$_SDFFE_PP1P_ (input D, C, E, R, output Q);
endmodule endmodule
`endif `endif

View file

@ -76,4 +76,3 @@ module \$lut (A, Y);
endmodule endmodule
`endif `endif

View file

@ -62,4 +62,3 @@ assign X = AA ^ BB;
endmodule endmodule
`endif `endif

View file

@ -5,4 +5,3 @@ endmodule
module \$__FABULOUS_OBUF (output PAD, input I); module \$__FABULOUS_OBUF (output PAD, input I);
IO_1_bidirectional_frame_config_pass _TECHMAP_REPLACE_ (.PAD(PAD), .I(I), .T(1'b0)); IO_1_bidirectional_frame_config_pass _TECHMAP_REPLACE_ (.PAD(PAD), .I(I), .T(1'b0));
endmodule endmodule

View file

@ -216,4 +216,3 @@ struct GatemateFoldInvPass : public Pass {
} GatemateFoldInvPass; } GatemateFoldInvPass;
PRIVATE_NAMESPACE_END PRIVATE_NAMESPACE_END

View file

@ -257,4 +257,3 @@ module ADCA (
parameter CSR_OFFSET = -12'd1180; // Parameter 2, signed number, temperature mode - 1560~- 760, typical value - 1180; Voltage mode - 410~410, typical value 0 parameter CSR_OFFSET = -12'd1180; // Parameter 2, signed number, temperature mode - 1560~- 760, typical value - 1180; Voltage mode - 410~410, typical value 0
endmodule endmodule

View file

@ -64,4 +64,3 @@ module _80_gw1n_alu(A, B, CI, BI, X, Y, CO);
end endgenerate end endgenerate
assign X = AA ^ BB ^ {Y_WIDTH{BI}}; assign X = AA ^ BB ^ {Y_WIDTH{BI}};
endmodule endmodule

View file

@ -2151,5 +2151,3 @@ module EMCU (
); );
endmodule endmodule

View file

@ -103,4 +103,3 @@ if __name__ == '__main__':
with open(f'adc.v', 'r') as fin: with open(f'adc.v', 'r') as fin:
for l in fin: for l in fin:
fout.write(l); fout.write(l);

View file

@ -2787,4 +2787,3 @@ module ADCA (
parameter CSR_OFFSET = -12'd1180; // Parameter 2, signed number, temperature mode - 1560~- 760, typical value - 1180; Voltage mode - 410~410, typical value 0 parameter CSR_OFFSET = -12'd1180; // Parameter 2, signed number, temperature mode - 1560~- 760, typical value - 1180; Voltage mode - 410~410, typical value 0
endmodule endmodule

View file

@ -72,4 +72,3 @@ module _80_ice40_alu (A, B, CI, BI, X, Y, CO);
assign X = AA ^ BB; assign X = AA ^ BB;
endmodule endmodule

View file

@ -16,4 +16,3 @@ for dbits in 2 4 8 16 24 32; do
if grep -H ERROR ${id}_tb.txt; then false; fi if grep -H ERROR ${id}_tb.txt; then false; fi
done; done done; done
echo OK echo OK

View file

@ -90,4 +90,3 @@ module \$__M9K_ALTSYNCRAM_SINGLEPORT_FULL (CLK2, CLK3, A1ADDR, A1DATA, A1EN, B1A
.addressstall_b(1'b0)); .addressstall_b(1'b0));
endmodule endmodule

View file

@ -71,5 +71,3 @@ module \$lut (A, Y);
endgenerate endgenerate
endmodule endmodule

View file

@ -55,5 +55,3 @@ module \$lut (A, Y);
wire _TECHMAP_FAIL_ = 1; wire _TECHMAP_FAIL_ = 1;
endgenerate endgenerate
endmodule // endmodule //

View file

@ -295,5 +295,3 @@ module cycloneiv_pll
output icdrclk; output icdrclk;
endmodule // cycloneive_pll endmodule // cycloneive_pll

View file

@ -71,5 +71,3 @@ module \$lut (A, Y);
endgenerate endgenerate
endmodule endmodule

View file

@ -55,5 +55,3 @@ module \$lut (A, Y);
wire _TECHMAP_FAIL_ = 1; wire _TECHMAP_FAIL_ = 1;
endgenerate endgenerate
endmodule // endmodule //

View file

@ -70,4 +70,3 @@ module \$__MUL9X9 (input [8:0] A, input [8:0] B, output [17:0] Y);
.dataout (Y) .dataout (Y)
); );
endmodule endmodule

View file

@ -2030,4 +2030,3 @@ module DCUA(CH0_HDINP, CH1_HDINP, CH0_HDINN, CH1_HDINN, D_TXBIT_CLKP_FROM_ND, D_
input D_REFCLKI; input D_REFCLKI;
output D_FFS_PLOL; output D_FFS_PLOL;
endmodule endmodule

View file

@ -10589,4 +10589,3 @@ module PCLKDIVSP(CLKIN, CLKOUT, LSRPDIV);
output CLKOUT; output CLKOUT;
input LSRPDIV; input LSRPDIV;
endmodule endmodule

View file

@ -579,4 +579,3 @@ endmodule
module TSALL(TSALL); module TSALL(TSALL);
input TSALL; input TSALL;
endmodule endmodule

View file

@ -579,4 +579,3 @@ endmodule
module TSALL(TSALL); module TSALL(TSALL);
input TSALL; input TSALL;
endmodule endmodule

View file

@ -580,4 +580,3 @@ endmodule
module TSALL(TSALL); module TSALL(TSALL);
input TSALL; input TSALL;
endmodule endmodule

View file

@ -102,4 +102,3 @@ module \$__SF2_ALU (A, B, CI, BI, X, Y, CO);
); );
end endgenerate end endgenerate
endmodule endmodule

View file

@ -101,4 +101,3 @@ module \$lut (A, Y);
endgenerate endgenerate
endmodule endmodule
`endif `endif

View file

@ -123,4 +123,3 @@ RAM64x12 #(
); );
endmodule endmodule

View file

@ -2153,4 +2153,3 @@ module NX_IOM_CONTROL_L(RTCK1, RRCK1, WTCK1, WRCK1, RTCK2, RRCK2, WTCK2, WRCK2,
parameter sel_clkw_rx1 = 2'b00; parameter sel_clkw_rx1 = 2'b00;
parameter sel_clkw_rx2 = 2'b00; parameter sel_clkw_rx2 = 2'b00;
endmodule endmodule

Some files were not shown because too many files have changed in this diff Show more