X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=openpower%2FMakefile;h=cd70e09fe943af87ff0c9bd6a56f34fc62be0ccb;hb=7aebe6389a3a7e38c488b972b838f136bc4ae9a8;hp=c7fb3fa3997a0ff174cdba47ce9642d5f1c074c2;hpb=c7e40d01a2c6d47e72f02929833a86540d2cec6b;p=libreriscv.git diff --git a/openpower/Makefile b/openpower/Makefile index c7fb3fa39..cd70e09fe 100755 --- a/openpower/Makefile +++ b/openpower/Makefile @@ -1,107 +1,383 @@ #!/usr/bin/make -f +ISA_DIR := ../../openpower-isa/openpower/isa +SOURCE_TEX := tex_out/remap.tex tex_out/bitmanip.tex tex_out/vector_ops.tex \ + tex_out/sv.tex tex_out/svp64_appendix.tex \ + tex_out/overview.tex tex_out/svp64.tex \ + tex_out/compliancy_levels.tex tex_out/svp64_quirks.tex \ + tex_out/sprs.tex tex_out/opcode_regs_deduped.tex \ + tex_out/normal.tex tex_out/ldst.tex \ + tex_out/branches.tex tex_out/cr_ops.tex \ + tex_out/setvl.tex tex_out/svstep.tex \ + tex_out/mv_swizzle.tex tex_out/mv_vec.tex \ + tex_out/pseudocode_simplev.tex \ + tex_out/pseudocode_bitmanip.tex \ + tex_out/cr_int_predication.tex \ + tex_out/fcvt.tex tex_out/fclass.tex \ + tex_out/int_fp_mv.tex tex_out/av_opcodes.tex \ + tex_out/big_integer.tex \ + tex_out/pseudocode_fixedshift.tex \ + tex_out/pseudocode_bcd.tex tex_out/pseudocode_branch.tex \ + tex_out/pseudocode_comparefixed.tex \ + tex_out/pseudocode_condition.tex \ + tex_out/pseudocode_svfparith.tex \ + tex_out/pseudocode_fixedarith.tex \ + tex_out/pseudocode_fixedload.tex \ + tex_out/pseudocode_fixedlogical.tex \ + tex_out/pseudocode_fixedstore.tex \ + tex_out/pseudocode_fixedtrap.tex \ + tex_out/pseudocode_sprset.tex \ + tex_out/pseudocode_stringldst.tex \ + tex_out/pseudocode_system.tex \ + tex_out/pseudocode_fpload.tex tex_out/pseudocode_fpstore.tex \ + tex_out/pseudocode_fpmove.tex tex_out/pseudocode_fparith.tex \ + tex_out/pseudocode_fpcvt.tex \ + tex_out/pseudocode_svfixedarith.tex \ + tex_out/big_integer_analysis.tex \ + tex_out/vector_isas.tex \ + tex_out/fields.tex -tex: +# Does this umbrella rule need to be modified? +tex: $(SOURCE_TEX) + mkdir -p tex_out + +tex_out/vector_isas.tex : sv/vector_isa_comparison.mdwn mkdir -p tex_out pandoc -f markdown -t latex --top-level-division=section \ --filter pandoc_img.py \ - -N -o tex_out/sv.tex sv.mdwn + -N -o tex_out/vector_isas.tex sv/vector_isa_comparison.mdwn + +tex_out/big_integer_analysis.tex : sv/biginteger/analysis.mdwn + mkdir -p tex_out pandoc -f markdown -t latex --top-level-division=section \ --filter pandoc_img.py \ - -N -o tex_out/vector_isas.tex sv/vector_isa_comparison.mdwn + -N -o tex_out/big_integer_analysis.tex sv/biginteger/analysis.mdwn + +tex_out/pseudocode_fixedlogical.tex : $(ISA_DIR)/fixedlogical.mdwn + mkdir -p tex_out pandoc -f markdown -t latex --top-level-division=section \ --filter pandoc_img.py \ - -N -o tex_out/overview.tex sv/overview.mdwn + -N -o tex_out/pseudocode_fixedlogical.tex \ + $(ISA_DIR)/fixedlogical.mdwn + +tex_out/pseudocode_fixedarith.tex : $(ISA_DIR)/fixedarith.mdwn + mkdir -p tex_out pandoc -f markdown -t latex --top-level-division=section \ --filter pandoc_img.py \ - -N -o tex_out/svp64.tex sv/svp64.mdwn + -N -o tex_out/pseudocode_fixedarith.tex \ + $(ISA_DIR)/fixedarith.mdwn + +tex_out/pseudocode_svfixedarith.tex : $(ISA_DIR)/svfixedarith.mdwn + mkdir -p tex_out pandoc -f markdown -t latex --top-level-division=section \ --filter pandoc_img.py \ - -N -o tex_out/svp64_appendix.tex sv/svp64/appendix.mdwn + -N -o tex_out/pseudocode_svfixedarith.tex \ + $(ISA_DIR)/svfixedarith.mdwn + +tex_out/pseudocode_svfparith.tex : $(ISA_DIR)/svfparith.mdwn + mkdir -p tex_out + pandoc -f markdown -t latex --top-level-division=section \ + --filter pandoc_img.py \ + -N -o tex_out/pseudocode_svfparith.tex \ + $(ISA_DIR)/svfparith.mdwn + +tex_out/sv.tex : sv.mdwn + mkdir -p tex_out + pandoc -f markdown -t latex --top-level-division=section \ + --filter pandoc_img.py \ + -N -o tex_out/sv.tex sv.mdwn + +tex_out/overview.tex : sv/overview.mdwn + mkdir -p tex_out + pandoc -f markdown -t latex --top-level-division=section \ + --filter pandoc_img.py \ + -N -o tex_out/overview.tex sv/overview.mdwn + +tex_out/svp64.tex : sv/svp64.mdwn + mkdir -p tex_out + pandoc -f markdown -t latex --top-level-division=section \ + --filter pandoc_img.py \ + -N -o tex_out/svp64.tex sv/svp64.mdwn + +tex_out/compliancy_levels.tex : sv/compliancy_levels.mdwn + mkdir -p tex_out pandoc -f markdown -t latex --top-level-division=section \ --filter pandoc_img.py \ -N -o tex_out/compliancy_levels.tex sv/compliancy_levels.mdwn + +tex_out/svp64_quirks.tex : sv/svp64_quirks.mdwn + mkdir -p tex_out pandoc -f markdown -t latex --top-level-division=section \ --filter pandoc_img.py \ -N -o tex_out/svp64_quirks.tex sv/svp64_quirks.mdwn + +tex_out/sprs.tex : sv/sprs.mdwn + mkdir -p tex_out pandoc -f markdown -t latex --top-level-division=section \ --filter pandoc_img.py \ -N -o tex_out/sprs.tex sv/sprs.mdwn + +tex_out/opcode_regs_deduped.tex : opcode_regs_deduped.mdwn + mkdir -p tex_out pandoc -f markdown -t latex --top-level-division=section \ --filter pandoc_img.py \ -N -o tex_out/opcode_regs_deduped.tex opcode_regs_deduped.mdwn + +tex_out/normal.tex : sv/normal.mdwn + mkdir -p tex_out pandoc -f markdown -t latex --top-level-division=section \ --filter pandoc_img.py \ -N -o tex_out/normal.tex sv/normal.mdwn + +tex_out/ldst.tex : sv/ldst.mdwn + mkdir -p tex_out pandoc -f markdown -t latex --top-level-division=section \ --filter pandoc_img.py \ -N -o tex_out/ldst.tex sv/ldst.mdwn + +tex_out/branches.tex : sv/branches.mdwn + mkdir -p tex_out pandoc -f markdown -t latex --top-level-division=section \ --filter pandoc_img.py \ -N -o tex_out/branches.tex sv/branches.mdwn + +tex_out/cr_ops.tex : sv/cr_ops.mdwn + mkdir -p tex_out pandoc -f markdown -t latex --top-level-division=section \ --filter pandoc_img.py \ -N -o tex_out/cr_ops.tex sv/cr_ops.mdwn + +tex_out/setvl.tex : sv/setvl.mdwn + mkdir -p tex_out pandoc -f markdown -t latex --top-level-division=section \ --filter pandoc_img.py \ -N -o tex_out/setvl.tex sv/setvl.mdwn + +tex_out/svstep.tex : sv/svstep.mdwn + mkdir -p tex_out pandoc -f markdown -t latex --top-level-division=section \ --filter pandoc_img.py \ -N -o tex_out/svstep.tex sv/svstep.mdwn - ./mdwn_inline.py sv/remap.mdwn tex_out/remap.mdwn + +tex_out/mv_swizzle.tex : sv/mv.swizzle.mdwn + mkdir -p tex_out pandoc -f markdown -t latex --top-level-division=section \ --filter pandoc_img.py \ - -N -o tex_out/remap.tex tex_out/remap.mdwn + -N -o tex_out/mv_swizzle.tex sv/mv.swizzle.mdwn + +tex_out/fields.tex : sv/fields.mdwn + mkdir -p tex_out + ./mdwn_inline.py sv/fields.mdwn tex_out/fields.mdwn pandoc -f markdown -t latex --top-level-division=section \ --filter pandoc_img.py \ - -N -o tex_out/mv_swizzle.tex sv/mv.swizzle.mdwn + -N -o tex_out/fields.tex tex_out/fields.mdwn + sed -i 's/\\section{/\\section*{/g' tex_out/fields.tex + +tex_out/mv_vec.tex : sv/mv.vec.mdwn + mkdir -p tex_out pandoc -f markdown -t latex --top-level-division=section \ --filter pandoc_img.py \ -N -o tex_out/mv_vec.tex sv/mv.vec.mdwn + +tex_out/pseudocode_simplev.tex : $(ISA_DIR)/simplev.mdwn + mkdir -p tex_out pandoc -f markdown -t latex --top-level-division=section \ --filter pandoc_img.py \ -N -o tex_out/pseudocode_simplev.tex \ - ../../openpower-isa/openpower/isa/simplev.mdwn + $(ISA_DIR)/simplev.mdwn + +tex_out/pseudocode_bitmanip.tex : $(ISA_DIR)/bitmanip.mdwn + mkdir -p tex_out pandoc -f markdown -t latex --top-level-division=section \ --filter pandoc_img.py \ - -N -o tex_out/vector_ops.tex sv/vector_ops.mdwn + -N -o tex_out/pseudocode_bitmanip.tex \ + $(ISA_DIR)/bitmanip.mdwn + +tex_out/cr_int_predication.tex : sv/cr_int_predication.mdwn + mkdir -p tex_out pandoc -f markdown -t latex --top-level-division=section \ --filter pandoc_img.py \ -N -o tex_out/cr_int_predication.tex sv/cr_int_predication.mdwn - ./mdwn_inline.py sv/bitmanip.mdwn tex_out/bitmanip.mdwn - pandoc -f markdown -t latex --top-level-division=section \ - --filter pandoc_img.py \ - -N -o tex_out/bitmanip.tex tex_out/bitmanip.mdwn + +tex_out/fcvt.tex : sv/fcvt.mdwn + mkdir -p tex_out pandoc -f markdown -t latex --top-level-division=section \ --filter pandoc_img.py \ -N -o tex_out/fcvt.tex sv/fcvt.mdwn + +tex_out/fclass.tex : sv/fclass.mdwn + mkdir -p tex_out pandoc -f markdown -t latex --top-level-division=section \ --filter pandoc_img.py \ -N -o tex_out/fclass.tex sv/fclass.mdwn + +tex_out/int_fp_mv.tex : sv/int_fp_mv.mdwn + mkdir -p tex_out pandoc -f markdown -t latex --top-level-division=section \ --filter pandoc_img.py \ -N -o tex_out/int_fp_mv.tex sv/int_fp_mv.mdwn + +tex_out/av_opcodes.tex : sv/av_opcodes.mdwn + mkdir -p tex_out pandoc -f markdown -t latex --top-level-division=section \ --filter pandoc_img.py \ -N -o tex_out/av_opcodes.tex sv/av_opcodes.mdwn + +tex_out/big_integer.tex : sv/biginteger.mdwn + mkdir -p tex_out pandoc -f markdown -t latex --top-level-division=section \ --filter pandoc_img.py \ -N -o tex_out/big_integer.tex sv/biginteger.mdwn + +tex_out/pseudocode_fixedshift.tex : $(ISA_DIR)/fixedshift.mdwn + mkdir -p tex_out pandoc -f markdown -t latex --top-level-division=section \ --filter pandoc_img.py \ - -N -o tex_out/big_integer_analysis.tex sv/biginteger/analysis.mdwn + -N -o tex_out/pseudocode_fixedshift.tex \ + $(ISA_DIR)/fixedshift.mdwn + +tex_out/svp64_appendix.tex: sv/svp64/appendix.mdwn + mkdir -p tex_out + ./mdwn_inline.py sv/svp64/appendix.mdwn tex_out/appendix.mdwn pandoc -f markdown -t latex --top-level-division=section \ --filter pandoc_img.py \ - -N -o tex_out/pseudocode_svfixedarith.tex \ - ../../openpower-isa/openpower/isa/svfixedarith.mdwn + -N -o tex_out/svp64_appendix.tex tex_out/appendix.mdwn + +tex_out/vector_ops.tex: sv/vector_ops.mdwn + mkdir -p tex_out + ./mdwn_inline.py sv/vector_ops.mdwn tex_out/vector_ops.mdwn pandoc -f markdown -t latex --top-level-division=section \ --filter pandoc_img.py \ - -N -o tex_out/pseudocode_svfparith.tex \ - ../../openpower-isa/openpower/isa/svfparith.mdwn + -N -o tex_out/vector_ops.tex tex_out/vector_ops.mdwn + +tex_out/remap.tex: sv/remap.mdwn + mkdir -p tex_out + ./mdwn_inline.py sv/remap.mdwn tex_out/remap.mdwn + pandoc -f markdown -t latex --top-level-division=section \ + --filter pandoc_img.py \ + -N -o tex_out/remap.tex tex_out/remap.mdwn + +tex_out/bitmanip.tex: sv/bitmanip.mdwn pandoc_img.py + mkdir -p tex_out + ./mdwn_inline.py sv/bitmanip.mdwn tex_out/bitmanip.mdwn + pandoc -f markdown -t latex --top-level-division=section \ + --filter pandoc_img.py \ + -N -o tex_out/bitmanip.tex tex_out/bitmanip.mdwn + +tex_out/pseudocode_bcd.tex : $(ISA_DIR)/bcd.mdwn + mkdir -p tex_out + pandoc -f markdown -t latex --top-level-division=section \ + --filter pandoc_img.py \ + -N -o tex_out/pseudocode_bcd.tex \ + $(ISA_DIR)/bcd.mdwn + +tex_out/pseudocode_branch.tex : $(ISA_DIR)/branch.mdwn + mkdir -p tex_out + pandoc -f markdown -t latex --top-level-division=section \ + --filter pandoc_img.py \ + -N -o tex_out/pseudocode_branch.tex \ + $(ISA_DIR)/branch.mdwn + +tex_out/pseudocode_comparefixed.tex : $(ISA_DIR)/comparefixed.mdwn + mkdir -p tex_out + pandoc -f markdown -t latex --top-level-division=section \ + --filter pandoc_img.py \ + -N -o tex_out/pseudocode_comparefixed.tex \ + $(ISA_DIR)/comparefixed.mdwn + +tex_out/pseudocode_condition.tex : $(ISA_DIR)/condition.mdwn + mkdir -p tex_out + pandoc -f markdown -t latex --top-level-division=section \ + --filter pandoc_img.py \ + -N -o tex_out/pseudocode_condition.tex \ + $(ISA_DIR)/condition.mdwn + +tex_out/pseudocode_fixedload.tex : $(ISA_DIR)/fixedload.mdwn + mkdir -p tex_out + pandoc -f markdown -t latex --top-level-division=section \ + --filter pandoc_img.py \ + -N -o tex_out/pseudocode_fixedload.tex \ + $(ISA_DIR)/fixedload.mdwn + +tex_out/pseudocode_fixedstore.tex : $(ISA_DIR)/fixedstore.mdwn + mkdir -p tex_out + pandoc -f markdown -t latex --top-level-division=section \ + --filter pandoc_img.py \ + -N -o tex_out/pseudocode_fixedstore.tex \ + $(ISA_DIR)/fixedstore.mdwn + +tex_out/pseudocode_fixedtrap.tex : $(ISA_DIR)/fixedtrap.mdwn + mkdir -p tex_out + pandoc -f markdown -t latex --top-level-division=section \ + --filter pandoc_img.py \ + -N -o tex_out/pseudocode_fixedtrap.tex \ + $(ISA_DIR)/fixedtrap.mdwn + +tex_out/pseudocode_sprset.tex : $(ISA_DIR)/sprset.mdwn + mkdir -p tex_out + pandoc -f markdown -t latex --top-level-division=section \ + --filter pandoc_img.py \ + -N -o tex_out/pseudocode_sprset.tex \ + $(ISA_DIR)/sprset.mdwn + +tex_out/pseudocode_stringldst.tex : $(ISA_DIR)/stringldst.mdwn + mkdir -p tex_out + pandoc -f markdown -t latex --top-level-division=section \ + --filter pandoc_img.py \ + -N -o tex_out/pseudocode_stringldst.tex \ + $(ISA_DIR)/stringldst.mdwn + +tex_out/pseudocode_system.tex : $(ISA_DIR)/system.mdwn + mkdir -p tex_out + pandoc -f markdown -t latex --top-level-division=section \ + --filter pandoc_img.py \ + -N -o tex_out/pseudocode_system.tex \ + $(ISA_DIR)/system.mdwn + +tex_out/pseudocode_fpload.tex : $(ISA_DIR)/fpload.mdwn + mkdir -p tex_out + pandoc -f markdown -t latex --top-level-division=section \ + --filter pandoc_img.py \ + -N -o tex_out/pseudocode_fpload.tex \ + $(ISA_DIR)/fpload.mdwn +tex_out/pseudocode_fpstore.tex : $(ISA_DIR)/fpstore.mdwn + mkdir -p tex_out + pandoc -f markdown -t latex --top-level-division=section \ + --filter pandoc_img.py \ + -N -o tex_out/pseudocode_fpstore.tex \ + $(ISA_DIR)/fpstore.mdwn -pdf: +tex_out/pseudocode_fpmove.tex : $(ISA_DIR)/fpmove.mdwn + mkdir -p tex_out + pandoc -f markdown -t latex --top-level-division=section \ + --filter pandoc_img.py \ + -N -o tex_out/pseudocode_fpmove.tex \ + $(ISA_DIR)/fpmove.mdwn + +tex_out/pseudocode_fparith.tex : $(ISA_DIR)/fparith.mdwn + mkdir -p tex_out + pandoc -f markdown -t latex --top-level-division=section \ + --filter pandoc_img.py \ + -N -o tex_out/pseudocode_fparith.tex \ + $(ISA_DIR)/fparith.mdwn + +tex_out/pseudocode_fpcvt.tex : $(ISA_DIR)/fpcvt.mdwn + mkdir -p tex_out + pandoc -f markdown -t latex --top-level-division=section \ + --filter pandoc_img.py \ + -N -o tex_out/pseudocode_fpcvt.tex \ + $(ISA_DIR)/fpcvt.mdwn + + + +simple_v_spec.pdf : tex simple_v_spec.tex pdflatex -synctex=1 -interaction=nonstopmode simple_v_spec.tex -upload: tex pdf +pdf : simple_v_spec.pdf + +upload : pdf rsync -HPavz simple_v_spec.pdf \ libre-soc.org:/var/www/ftp.libre-riscv.org + +clean: + rm -fr tex_out