Skip to content

Commit 4343c79

Browse files
Merge pull request YosysHQ#4704 from YosysHQ/krys/drop_ilang
Remove references to ilang
2 parents 3c30a9a + ee73a91 commit 4343c79

28 files changed

+39
-69
lines changed

backends/btor/test_cells.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ cd test_cells.tmp
1010

1111
for fn in test_*.il; do
1212
../../../yosys -p "
13-
read_ilang $fn
13+
read_rtlil $fn
1414
rename gold gate
1515
synth
1616
17-
read_ilang $fn
17+
read_rtlil $fn
1818
miter -equiv -make_assert -flatten gold gate main
1919
hierarchy -top main
2020
write_btor ${fn%.il}.btor

backends/rtlil/rtlil_backend.cc

-15
Original file line numberDiff line numberDiff line change
@@ -464,21 +464,6 @@ struct RTLILBackend : public Backend {
464464
}
465465
} RTLILBackend;
466466

467-
struct IlangBackend : public Backend {
468-
IlangBackend() : Backend("ilang", "(deprecated) alias of write_rtlil") { }
469-
void help() override
470-
{
471-
// |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
472-
log("\n");
473-
log("See `help write_rtlil`.\n");
474-
log("\n");
475-
}
476-
void execute(std::ostream *&f, std::string filename, std::vector<std::string> args, RTLIL::Design *design) override
477-
{
478-
RTLILBackend.execute(f, filename, args, design);
479-
}
480-
} IlangBackend;
481-
482467
struct DumpPass : public Pass {
483468
DumpPass() : Pass("dump", "print parts of the design in RTLIL format") { }
484469
void help() override

backends/smt2/test_cells.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ EOT
2121
for x in $(set +x; ls test_*.il | sort -R); do
2222
x=${x%.il}
2323
cat > $x.ys <<- EOT
24-
read_ilang $x.il
24+
read_rtlil $x.il
2525
copy gold gate
2626
2727
cd gate

backends/smv/test_cells.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ EOT
1717

1818
for fn in test_*.il; do
1919
../../../yosys -p "
20-
read_ilang $fn
20+
read_rtlil $fn
2121
rename gold gate
2222
synth
2323
24-
read_ilang $fn
24+
read_rtlil $fn
2525
miter -equiv -flatten gold gate main
2626
hierarchy -top main
2727
write_smv -tpl template.txt ${fn#.il}.smv

docs/source/_images/internals/overview_flow.tex

+4-4
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,23 @@
1515
\tikzstyle{data} = [draw, fill=blue!10, ellipse, minimum height=3em, minimum width=7em, node distance=15em]
1616
\node[process] (vlog) {Verilog Frontend};
1717
\node[process, dashed, fill=green!5] (vhdl) [right of=vlog] {VHDL Frontend};
18-
\node[process] (ilang) [right of=vhdl] {RTLIL Frontend};
18+
\node[process] (rtlilfe) [right of=vhdl] {RTLIL Frontend};
1919
\node[data] (ast) [below of=vlog, node distance=5em, xshift=7.5em] {AST};
2020
\node[process] (astfe) [below of=ast, node distance=5em] {AST Frontend};
2121
\node[data] (rtlil) [below of=astfe, node distance=5em, xshift=7.5em] {RTLIL};
2222
\node[process] (pass) [right of=rtlil, node distance=5em, xshift=7.5em] {Passes};
2323
\node[process] (vlbe) [below of=rtlil, node distance=7em, xshift=-13em] {Verilog Backend};
24-
\node[process] (ilangbe) [below of=rtlil, node distance=7em, xshift=0em] {RTLIL Backend};
24+
\node[process] (rtlilbe) [below of=rtlil, node distance=7em, xshift=0em] {RTLIL Backend};
2525
\node[process, dashed, fill=green!5] (otherbe) [below of=rtlil, node distance=7em, xshift=+13em] {Other Backends};
2626

2727
\draw[-latex] (vlog) -- (ast);
2828
\draw[-latex] (vhdl) -- (ast);
2929
\draw[-latex] (ast) -- (astfe);
3030
\draw[-latex] (astfe) -- (rtlil);
31-
\draw[-latex] (ilang) -- (rtlil);
31+
\draw[-latex] (rtlilfe) -- (rtlil);
3232
\draw[latex-latex] (rtlil) -- (pass);
3333
\draw[-latex] (rtlil) -- (vlbe);
34-
\draw[-latex] (rtlil) -- (ilangbe);
34+
\draw[-latex] (rtlil) -- (rtlilbe);
3535
\draw[-latex] (rtlil) -- (otherbe);
3636
\end{tikzpicture}
3737
\end{document}

frontends/rtlil/rtlil_frontend.cc

-15
Original file line numberDiff line numberDiff line change
@@ -96,20 +96,5 @@ struct RTLILFrontend : public Frontend {
9696
}
9797
} RTLILFrontend;
9898

99-
struct IlangFrontend : public Frontend {
100-
IlangFrontend() : Frontend("ilang", "(deprecated) alias of read_rtlil") { }
101-
void help() override
102-
{
103-
// |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
104-
log("\n");
105-
log("See `help read_rtlil`.\n");
106-
log("\n");
107-
}
108-
void execute(std::istream *&f, std::string filename, std::vector<std::string> args, RTLIL::Design *design) override
109-
{
110-
RTLILFrontend.execute(f, filename, args, design);
111-
}
112-
} IlangFrontend;
113-
11499
YOSYS_NAMESPACE_END
115100

tests/arch/ecp5/bug1630.ys

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
read_ilang bug1630.il.gz
1+
read_rtlil bug1630.il.gz
22
abc9 -lut 4

tests/arch/ecp5/opt_lut_ins.ys

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
read_ilang << EOF
1+
read_rtlil << EOF
22

33
module \top
44

tests/arch/ice40/bug1626.ys

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
read_ilang <<EOT
1+
read_rtlil <<EOT
22
# Generated by Yosys 0.9+1706 (git sha1 58ab9f60, clang 6.0.0-1ubuntu2 -fPIC -Os)
33
autoidx 2815
44
attribute \src "../hdl/mem/ahb_async_sram_halfwidth.v:9"

tests/arch/ice40/bug1644.ys

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
read_ilang bug1644.il.gz
1+
read_rtlil bug1644.il.gz
22
synth_ice40 -top top -dsp -json adc_dac_pass_through.json -run :map_bram

tests/arch/xilinx/opt_lut_ins.ys

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
read_ilang << EOF
1+
read_rtlil << EOF
22

33
module \top
44

tests/opt/bug2920.ys

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
read_ilang <<EOT
1+
read_rtlil <<EOT
22

33
module \mod
44
wire input 1 \clk

tests/opt/memory_bmux2rom.ys

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
read_ilang << EOT
1+
read_rtlil << EOT
22

33
module \top
44
wire width 4 input 0 \S

tests/opt/opt_lut_elim.ys

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
read_ilang opt_lut_elim.il
1+
read_rtlil opt_lut_elim.il
22
opt_lut
33
select -assert-count 0 t:$lut

tests/opt/opt_lut_ins.ys

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
read_ilang << EOF
1+
read_rtlil << EOF
22

33
module \top
44

tests/opt/opt_lut_port.ys

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
read_ilang opt_lut_port.il
1+
read_rtlil opt_lut_port.il
22
opt_lut
33
select -assert-count 2 t:$lut

tests/opt/opt_reduce_bmux.ys

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
read_ilang << EOT
1+
read_rtlil << EOT
22

33
module \top
44
wire width 12 input 0 \A
@@ -22,7 +22,7 @@ select -assert-count 1 t:$bmux r:WIDTH=4 %i
2222

2323
design -reset
2424

25-
read_ilang << EOT
25+
read_rtlil << EOT
2626

2727
module \top
2828
wire width 6 input 0 \A
@@ -46,7 +46,7 @@ select -assert-count 0 t:$bmux
4646

4747
design -reset
4848

49-
read_ilang << EOT
49+
read_rtlil << EOT
5050

5151
module \top
5252
wire width 160 input 0 \A
@@ -70,7 +70,7 @@ select -assert-count 1 t:$bmux r:S_WIDTH=2 %i
7070

7171
design -reset
7272

73-
read_ilang << EOT
73+
read_rtlil << EOT
7474

7575
module \top
7676
wire width 10 input 0 \A
@@ -95,7 +95,7 @@ select -assert-count 1 t:$mux
9595

9696
design -reset
9797

98-
read_ilang << EOT
98+
read_rtlil << EOT
9999

100100
module \top
101101
wire width 5 input 0 \A

tests/opt/opt_reduce_demux.ys

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
read_ilang << EOT
1+
read_rtlil << EOT
22

33
module \top
44
wire width 4 input 0 \A
@@ -22,7 +22,7 @@ select -assert-count 1 t:$demux r:WIDTH=4 %i
2222

2323
design -reset
2424

25-
read_ilang << EOT
25+
read_rtlil << EOT
2626

2727
module \top
2828
wire width 2 input 1 \S
@@ -45,7 +45,7 @@ select -assert-count 0 t:$demux
4545

4646
design -reset
4747

48-
read_ilang << EOT
48+
read_rtlil << EOT
4949

5050
module \top
5151
wire width 5 input 0 \A
@@ -69,7 +69,7 @@ select -assert-count 1 t:$demux r:S_WIDTH=2 %i
6969

7070
design -reset
7171

72-
read_ilang << EOT
72+
read_rtlil << EOT
7373

7474
module \top
7575
wire width 5 input 0 \A

tests/proc/bug2962.ys

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
read_ilang << EOT
1+
read_rtlil << EOT
22
module \top
33
wire width 4 input 1 \a
44
wire width 2 input 2 \b

tests/proc/proc_rom.ys

+1-1
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ equiv_opt -assert -run prepare: dummy
188188

189189
design -reset
190190

191-
read_ilang <<EOT
191+
read_rtlil <<EOT
192192

193193
module \m
194194
wire width 3 input 1 \a

tests/rpc/frontend.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ def derive(module, parameters):
55
assert module == r"python_inv"
66
if parameters.keys() != {r"\width"}:
77
raise ValueError("Invalid parameters")
8-
return "ilang", r"""
8+
return "rtlil", r"""
99
module \impl
1010
wire width {width:d} input 1 \i
1111
wire width {width:d} output 2 \o

tests/sat/bug2595.ys

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
read_ilang <<EOT
1+
read_rtlil <<EOT
22
module \top
33
wire input 3 \A
44
wire width 2 input 2 \B

tests/smv/run-single.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ EOT
88
cat > $1.ys <<EOT
99
echo on
1010
11-
read_ilang $1.il
11+
read_rtlil $1.il
1212
hierarchy; proc; opt
1313
rename -top uut
1414
design -save gold

tests/techmap/bmuxmap_pmux.ys

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
read_ilang << EOT
1+
read_rtlil << EOT
22

33
module \top
44
wire width 4 input 0 \S
@@ -21,7 +21,7 @@ equiv_opt -assert bmuxmap -pmux
2121
###
2222
design -reset
2323

24-
read_ilang << EOT
24+
read_rtlil << EOT
2525

2626
module \top
2727
wire width 10 input 0 \A

tests/various/autoname.ys

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
read_ilang <<EOT
1+
read_rtlil <<EOT
22
autoidx 2
33
module \top
44
wire output 3 $y

tests/various/bug1496.ys

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
read_ilang << EOF
1+
read_rtlil << EOF
22
module \top
33
wire input 1 \A
44
wire output 2 \Y

tests/various/equiv_opt_undef.ys

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
read_ilang << EOT
1+
read_rtlil << EOT
22

33
module \top
44
wire $a

tests/verilog/assign_to_reg.ys

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# https://github.com/yosyshq/yosys/issues/2035
22

3-
read_ilang <<END
3+
read_rtlil <<END
44
module \top
55
wire width 1 input 0 \halfbrite
66
wire width 2 output 1 \r_on

0 commit comments

Comments
 (0)