correct big int analysis page
[libreriscv.git] / openpower / Makefile
1 #!/usr/bin/make -f
2 ISA_DIR := ../../openpower-isa/openpower/isa
3 SOURCE_TEX := tex_out/remap.tex tex_out/bitmanip.tex tex_out/vector_ops.tex \
4 tex_out/sv.tex tex_out/svp64_appendix.tex \
5 tex_out/overview.tex tex_out/svp64.tex \
6 tex_out/compliancy_levels.tex tex_out/svp64_quirks.tex \
7 tex_out/sprs.tex tex_out/opcode_regs_deduped.tex \
8 tex_out/normal.tex tex_out/ldst.tex \
9 tex_out/branches.tex tex_out/cr_ops.tex \
10 tex_out/setvl.tex tex_out/svstep.tex \
11 tex_out/mv_swizzle.tex tex_out/mv_vec.tex \
12 tex_out/pseudocode_simplev.tex \
13 tex_out/pseudocode_bitmanip.tex \
14 tex_out/cr_int_predication.tex \
15 tex_out/fcvt.tex tex_out/fclass.tex \
16 tex_out/int_fp_mv.tex tex_out/av_opcodes.tex \
17 tex_out/big_integer.tex \
18 tex_out/pseudocode_fixedshift.tex \
19 tex_out/pseudocode_bcd.tex tex_out/pseudocode_branch.tex \
20 tex_out/pseudocode_comparefixed.tex \
21 tex_out/pseudocode_condition.tex \
22 tex_out/pseudocode_svfparith.tex \
23 tex_out/pseudocode_fixedarith.tex \
24 tex_out/pseudocode_fixedload.tex \
25 tex_out/pseudocode_fixedlogical.tex \
26 tex_out/pseudocode_fixedstore.tex \
27 tex_out/pseudocode_fixedtrap.tex \
28 tex_out/pseudocode_sprset.tex \
29 tex_out/pseudocode_stringldst.tex \
30 tex_out/pseudocode_system.tex \
31 tex_out/pseudocode_fpload.tex tex_out/pseudocode_fpstore.tex \
32 tex_out/pseudocode_fpmove.tex tex_out/pseudocode_fparith.tex \
33 tex_out/pseudocode_fpcvt.tex \
34 tex_out/pseudocode_svfixedarith.tex \
35 tex_out/big_integer_analysis.tex \
36 tex_out/vector_isas.tex \
37 tex_out/fields.tex
38
39 # Does this umbrella rule need to be modified?
40 tex: $(SOURCE_TEX)
41 mkdir -p tex_out
42
43 tex_out/vector_isas.tex : sv/vector_isa_comparison.mdwn
44 mkdir -p tex_out
45 pandoc -f markdown -t latex --top-level-division=section \
46 --filter pandoc_img.py \
47 -N -o tex_out/vector_isas.tex sv/vector_isa_comparison.mdwn
48
49 tex_out/big_integer_analysis.tex : sv/biginteger/analysis.mdwn
50 mkdir -p tex_out
51 pandoc -f markdown -t latex --top-level-division=section \
52 --filter pandoc_img.py \
53 -N -o tex_out/big_integer_analysis.tex sv/biginteger/analysis.mdwn
54
55 tex_out/pseudocode_fixedlogical.tex : $(ISA_DIR)/fixedlogical.mdwn
56 mkdir -p tex_out
57 pandoc -f markdown -t latex --top-level-division=section \
58 --filter pandoc_img.py \
59 -N -o tex_out/pseudocode_fixedlogical.tex \
60 $(ISA_DIR)/fixedlogical.mdwn
61
62 tex_out/pseudocode_fixedarith.tex : $(ISA_DIR)/fixedarith.mdwn
63 mkdir -p tex_out
64 pandoc -f markdown -t latex --top-level-division=section \
65 --filter pandoc_img.py \
66 -N -o tex_out/pseudocode_fixedarith.tex \
67 $(ISA_DIR)/fixedarith.mdwn
68
69 tex_out/pseudocode_svfixedarith.tex : $(ISA_DIR)/svfixedarith.mdwn
70 mkdir -p tex_out
71 pandoc -f markdown -t latex --top-level-division=section \
72 --filter pandoc_img.py \
73 -N -o tex_out/pseudocode_svfixedarith.tex \
74 $(ISA_DIR)/svfixedarith.mdwn
75
76 tex_out/pseudocode_svfparith.tex : $(ISA_DIR)/svfparith.mdwn
77 mkdir -p tex_out
78 pandoc -f markdown -t latex --top-level-division=section \
79 --filter pandoc_img.py \
80 -N -o tex_out/pseudocode_svfparith.tex \
81 $(ISA_DIR)/svfparith.mdwn
82
83 tex_out/sv.tex : sv.mdwn
84 mkdir -p tex_out
85 pandoc -f markdown -t latex --top-level-division=section \
86 --filter pandoc_img.py \
87 -N -o tex_out/sv.tex sv.mdwn
88
89 tex_out/overview.tex : sv/overview.mdwn
90 mkdir -p tex_out
91 pandoc -f markdown -t latex --top-level-division=section \
92 --filter pandoc_img.py \
93 -N -o tex_out/overview.tex sv/overview.mdwn
94
95 tex_out/svp64.tex : sv/svp64.mdwn
96 mkdir -p tex_out
97 pandoc -f markdown -t latex --top-level-division=section \
98 --filter pandoc_img.py \
99 -N -o tex_out/svp64.tex sv/svp64.mdwn
100
101 tex_out/compliancy_levels.tex : sv/compliancy_levels.mdwn
102 mkdir -p tex_out
103 pandoc -f markdown -t latex --top-level-division=section \
104 --filter pandoc_img.py \
105 -N -o tex_out/compliancy_levels.tex sv/compliancy_levels.mdwn
106
107 tex_out/svp64_quirks.tex : sv/svp64_quirks.mdwn
108 mkdir -p tex_out
109 pandoc -f markdown -t latex --top-level-division=section \
110 --filter pandoc_img.py \
111 -N -o tex_out/svp64_quirks.tex sv/svp64_quirks.mdwn
112
113 tex_out/sprs.tex : sv/sprs.mdwn
114 mkdir -p tex_out
115 pandoc -f markdown -t latex --top-level-division=section \
116 --filter pandoc_img.py \
117 -N -o tex_out/sprs.tex sv/sprs.mdwn
118
119 tex_out/opcode_regs_deduped.tex : opcode_regs_deduped.mdwn
120 mkdir -p tex_out
121 pandoc -f markdown -t latex --top-level-division=section \
122 --filter pandoc_img.py \
123 -N -o tex_out/opcode_regs_deduped.tex opcode_regs_deduped.mdwn
124
125 tex_out/normal.tex : sv/normal.mdwn
126 mkdir -p tex_out
127 pandoc -f markdown -t latex --top-level-division=section \
128 --filter pandoc_img.py \
129 -N -o tex_out/normal.tex sv/normal.mdwn
130
131 tex_out/ldst.tex : sv/ldst.mdwn
132 mkdir -p tex_out
133 pandoc -f markdown -t latex --top-level-division=section \
134 --filter pandoc_img.py \
135 -N -o tex_out/ldst.tex sv/ldst.mdwn
136
137 tex_out/branches.tex : sv/branches.mdwn
138 mkdir -p tex_out
139 pandoc -f markdown -t latex --top-level-division=section \
140 --filter pandoc_img.py \
141 -N -o tex_out/branches.tex sv/branches.mdwn
142
143 tex_out/cr_ops.tex : sv/cr_ops.mdwn
144 mkdir -p tex_out
145 pandoc -f markdown -t latex --top-level-division=section \
146 --filter pandoc_img.py \
147 -N -o tex_out/cr_ops.tex sv/cr_ops.mdwn
148
149 tex_out/setvl.tex : sv/setvl.mdwn
150 mkdir -p tex_out
151 pandoc -f markdown -t latex --top-level-division=section \
152 --filter pandoc_img.py \
153 -N -o tex_out/setvl.tex sv/setvl.mdwn
154
155 tex_out/svstep.tex : sv/svstep.mdwn
156 mkdir -p tex_out
157 pandoc -f markdown -t latex --top-level-division=section \
158 --filter pandoc_img.py \
159 -N -o tex_out/svstep.tex sv/svstep.mdwn
160
161 tex_out/mv_swizzle.tex : sv/mv.swizzle.mdwn
162 mkdir -p tex_out
163 pandoc -f markdown -t latex --top-level-division=section \
164 --filter pandoc_img.py \
165 -N -o tex_out/mv_swizzle.tex sv/mv.swizzle.mdwn
166
167 tex_out/fields.tex : sv/fields.mdwn
168 mkdir -p tex_out
169 ./mdwn_inline.py sv/fields.mdwn tex_out/fields.mdwn
170 pandoc -f markdown -t latex --top-level-division=section \
171 --filter pandoc_img.py \
172 -N -o tex_out/fields.tex tex_out/fields.mdwn
173
174 tex_out/mv_vec.tex : sv/mv.vec.mdwn
175 mkdir -p tex_out
176 pandoc -f markdown -t latex --top-level-division=section \
177 --filter pandoc_img.py \
178 -N -o tex_out/mv_vec.tex sv/mv.vec.mdwn
179
180 tex_out/pseudocode_simplev.tex : $(ISA_DIR)/simplev.mdwn
181 mkdir -p tex_out
182 pandoc -f markdown -t latex --top-level-division=section \
183 --filter pandoc_img.py \
184 -N -o tex_out/pseudocode_simplev.tex \
185 $(ISA_DIR)/simplev.mdwn
186
187 tex_out/pseudocode_bitmanip.tex : $(ISA_DIR)/bitmanip.mdwn
188 mkdir -p tex_out
189 pandoc -f markdown -t latex --top-level-division=section \
190 --filter pandoc_img.py \
191 -N -o tex_out/pseudocode_bitmanip.tex \
192 $(ISA_DIR)/bitmanip.mdwn
193
194 tex_out/cr_int_predication.tex : sv/cr_int_predication.mdwn
195 mkdir -p tex_out
196 pandoc -f markdown -t latex --top-level-division=section \
197 --filter pandoc_img.py \
198 -N -o tex_out/cr_int_predication.tex sv/cr_int_predication.mdwn
199
200 tex_out/fcvt.tex : sv/fcvt.mdwn
201 mkdir -p tex_out
202 pandoc -f markdown -t latex --top-level-division=section \
203 --filter pandoc_img.py \
204 -N -o tex_out/fcvt.tex sv/fcvt.mdwn
205
206 tex_out/fclass.tex : sv/fclass.mdwn
207 mkdir -p tex_out
208 pandoc -f markdown -t latex --top-level-division=section \
209 --filter pandoc_img.py \
210 -N -o tex_out/fclass.tex sv/fclass.mdwn
211
212 tex_out/int_fp_mv.tex : sv/int_fp_mv.mdwn
213 mkdir -p tex_out
214 pandoc -f markdown -t latex --top-level-division=section \
215 --filter pandoc_img.py \
216 -N -o tex_out/int_fp_mv.tex sv/int_fp_mv.mdwn
217
218 tex_out/av_opcodes.tex : sv/av_opcodes.mdwn
219 mkdir -p tex_out
220 pandoc -f markdown -t latex --top-level-division=section \
221 --filter pandoc_img.py \
222 -N -o tex_out/av_opcodes.tex sv/av_opcodes.mdwn
223
224 tex_out/big_integer.tex : sv/biginteger.mdwn
225 mkdir -p tex_out
226 pandoc -f markdown -t latex --top-level-division=section \
227 --filter pandoc_img.py \
228 -N -o tex_out/big_integer.tex sv/biginteger.mdwn
229
230 tex_out/pseudocode_fixedshift.tex : $(ISA_DIR)/fixedshift.mdwn
231 mkdir -p tex_out
232 pandoc -f markdown -t latex --top-level-division=section \
233 --filter pandoc_img.py \
234 -N -o tex_out/pseudocode_fixedshift.tex \
235 $(ISA_DIR)/fixedshift.mdwn
236
237 tex_out/svp64_appendix.tex: sv/svp64/appendix.mdwn
238 mkdir -p tex_out
239 ./mdwn_inline.py sv/svp64/appendix.mdwn tex_out/appendix.mdwn
240 pandoc -f markdown -t latex --top-level-division=section \
241 --filter pandoc_img.py \
242 -N -o tex_out/svp64_appendix.tex tex_out/appendix.mdwn
243
244 tex_out/vector_ops.tex: sv/vector_ops.mdwn
245 mkdir -p tex_out
246 ./mdwn_inline.py sv/vector_ops.mdwn tex_out/vector_ops.mdwn
247 pandoc -f markdown -t latex --top-level-division=section \
248 --filter pandoc_img.py \
249 -N -o tex_out/vector_ops.tex tex_out/vector_ops.mdwn
250
251 tex_out/remap.tex: sv/remap.mdwn
252 mkdir -p tex_out
253 ./mdwn_inline.py sv/remap.mdwn tex_out/remap.mdwn
254 pandoc -f markdown -t latex --top-level-division=section \
255 --filter pandoc_img.py \
256 -N -o tex_out/remap.tex tex_out/remap.mdwn
257
258 tex_out/bitmanip.tex: sv/bitmanip.mdwn pandoc_img.py
259 mkdir -p tex_out
260 ./mdwn_inline.py sv/bitmanip.mdwn tex_out/bitmanip.mdwn
261 pandoc -f markdown -t latex --top-level-division=section \
262 --filter pandoc_img.py \
263 -N -o tex_out/bitmanip.tex tex_out/bitmanip.mdwn
264
265 tex_out/pseudocode_bcd.tex : $(ISA_DIR)/bcd.mdwn
266 mkdir -p tex_out
267 pandoc -f markdown -t latex --top-level-division=section \
268 --filter pandoc_img.py \
269 -N -o tex_out/pseudocode_bcd.tex \
270 $(ISA_DIR)/bcd.mdwn
271
272 tex_out/pseudocode_branch.tex : $(ISA_DIR)/branch.mdwn
273 mkdir -p tex_out
274 pandoc -f markdown -t latex --top-level-division=section \
275 --filter pandoc_img.py \
276 -N -o tex_out/pseudocode_branch.tex \
277 $(ISA_DIR)/branch.mdwn
278
279 tex_out/pseudocode_comparefixed.tex : $(ISA_DIR)/comparefixed.mdwn
280 mkdir -p tex_out
281 pandoc -f markdown -t latex --top-level-division=section \
282 --filter pandoc_img.py \
283 -N -o tex_out/pseudocode_comparefixed.tex \
284 $(ISA_DIR)/comparefixed.mdwn
285
286 tex_out/pseudocode_condition.tex : $(ISA_DIR)/condition.mdwn
287 mkdir -p tex_out
288 pandoc -f markdown -t latex --top-level-division=section \
289 --filter pandoc_img.py \
290 -N -o tex_out/pseudocode_condition.tex \
291 $(ISA_DIR)/condition.mdwn
292
293 tex_out/pseudocode_fixedload.tex : $(ISA_DIR)/fixedload.mdwn
294 mkdir -p tex_out
295 pandoc -f markdown -t latex --top-level-division=section \
296 --filter pandoc_img.py \
297 -N -o tex_out/pseudocode_fixedload.tex \
298 $(ISA_DIR)/fixedload.mdwn
299
300 tex_out/pseudocode_fixedstore.tex : $(ISA_DIR)/fixedstore.mdwn
301 mkdir -p tex_out
302 pandoc -f markdown -t latex --top-level-division=section \
303 --filter pandoc_img.py \
304 -N -o tex_out/pseudocode_fixedstore.tex \
305 $(ISA_DIR)/fixedstore.mdwn
306
307 tex_out/pseudocode_fixedtrap.tex : $(ISA_DIR)/fixedtrap.mdwn
308 mkdir -p tex_out
309 pandoc -f markdown -t latex --top-level-division=section \
310 --filter pandoc_img.py \
311 -N -o tex_out/pseudocode_fixedtrap.tex \
312 $(ISA_DIR)/fixedtrap.mdwn
313
314 tex_out/pseudocode_sprset.tex : $(ISA_DIR)/sprset.mdwn
315 mkdir -p tex_out
316 pandoc -f markdown -t latex --top-level-division=section \
317 --filter pandoc_img.py \
318 -N -o tex_out/pseudocode_sprset.tex \
319 $(ISA_DIR)/sprset.mdwn
320
321 tex_out/pseudocode_stringldst.tex : $(ISA_DIR)/stringldst.mdwn
322 mkdir -p tex_out
323 pandoc -f markdown -t latex --top-level-division=section \
324 --filter pandoc_img.py \
325 -N -o tex_out/pseudocode_stringldst.tex \
326 $(ISA_DIR)/stringldst.mdwn
327
328 tex_out/pseudocode_system.tex : $(ISA_DIR)/system.mdwn
329 mkdir -p tex_out
330 pandoc -f markdown -t latex --top-level-division=section \
331 --filter pandoc_img.py \
332 -N -o tex_out/pseudocode_system.tex \
333 $(ISA_DIR)/system.mdwn
334
335 tex_out/pseudocode_fpload.tex : $(ISA_DIR)/fpload.mdwn
336 mkdir -p tex_out
337 pandoc -f markdown -t latex --top-level-division=section \
338 --filter pandoc_img.py \
339 -N -o tex_out/pseudocode_fpload.tex \
340 $(ISA_DIR)/fpload.mdwn
341
342 tex_out/pseudocode_fpstore.tex : $(ISA_DIR)/fpstore.mdwn
343 mkdir -p tex_out
344 pandoc -f markdown -t latex --top-level-division=section \
345 --filter pandoc_img.py \
346 -N -o tex_out/pseudocode_fpstore.tex \
347 $(ISA_DIR)/fpstore.mdwn
348
349 tex_out/pseudocode_fpmove.tex : $(ISA_DIR)/fpmove.mdwn
350 mkdir -p tex_out
351 pandoc -f markdown -t latex --top-level-division=section \
352 --filter pandoc_img.py \
353 -N -o tex_out/pseudocode_fpmove.tex \
354 $(ISA_DIR)/fpmove.mdwn
355
356 tex_out/pseudocode_fparith.tex : $(ISA_DIR)/fparith.mdwn
357 mkdir -p tex_out
358 pandoc -f markdown -t latex --top-level-division=section \
359 --filter pandoc_img.py \
360 -N -o tex_out/pseudocode_fparith.tex \
361 $(ISA_DIR)/fparith.mdwn
362
363 tex_out/pseudocode_fpcvt.tex : $(ISA_DIR)/fpcvt.mdwn
364 mkdir -p tex_out
365 pandoc -f markdown -t latex --top-level-division=section \
366 --filter pandoc_img.py \
367 -N -o tex_out/pseudocode_fpcvt.tex \
368 $(ISA_DIR)/fpcvt.mdwn
369
370
371
372 simple_v_spec.pdf : tex simple_v_spec.tex
373 pdflatex -synctex=1 -interaction=nonstopmode simple_v_spec.tex
374
375 pdf : simple_v_spec.pdf
376
377 upload : pdf
378 rsync -HPavz simple_v_spec.pdf \
379 libre-soc.org:/var/www/ftp.libre-riscv.org
380
381 clean:
382 rm -fr tex_out