#! /usr/bin/python import empty from opcodes import * from memory_map import mem_map from branching_flags import * bench_dir = "Floating_Point_FSM" bench_file = "floating_point_fsm" bench_name = bench_dir + "/" + bench_file SIMD_bench_name = bench_dir + "/" + "SIMD_" + bench_file # Get empty instances with default parameters empty = empty.assemble_all() def assemble_PC(): # Nothing to do here. PC = empty["PC"] PC.file_name = bench_name return PC def assemble_A(): A = empty["A"] A.file_name = bench_name A.P("A_IO", mem_map["A"]["IO_base"]) A.A(0) # Literal numbers A.L(0) A.L(1), A.N("one")
#! /usr/bin/python import empty from opcodes import * from memory_map import mem_map from branching_flags import * bench_dir = "Hailstone_A" bench_file = "hailstone_a" bench_name = bench_dir + "/" + bench_file SIMD_bench_name = bench_dir + "/" + "SIMD_" + bench_file # Get empty instances with default parameters empty = empty.assemble_all() lookahead = [0, 1, 2, 2, 1, 1, 1, 8, 2, 10, 2, 4, 2, 2, 5, 5, 1, 2, 20, 20, 1, 1, 8, 8, 1, 26, 1, 242, 10, 10, 10, 91, 2, 11, 4, 4, 13, 13, 13, 38, 2, 121, 2, 14, 5, 5, 5, 137, 2, 17, 17, 17, 2, 2, 161, 161, 20, 56, 20, 19, 20, 20, 182, 182, 1, 7, 22, 22, 8, 8, 8, 206, 26, 71, 26, 8, 26, 26, 76, 76, 1, 80, 242, 242, 1, 1, 28, 28, 10, 29, 10, 263, 10, 10, 91, 91, 4, 94, 11, 11, 11, 11, 11, 890, 4, 101, 4, 103, 107, 107, 107, 319, 13, 4, 37, 37, 13, 13, 38, 38, 40, 350, 40, 118, 121, 121, 364, 1093, 2, 125, 14, 14, 44, 44, 44, 43, 5, 395, 5, 134, 5, 5, 137, 137, 17, 47, 47, 47, 17, 17, 16, 16, 17, 49, 17, 445, 152, 152, 152, 1367, 2, 155, 53, 53, 161, 161, 161, 479, 2, 1457, 2, 164, 56, 56, 56, 167, 20, 19, 19, 19, 20, 20, 175, 175, 20, 59, 20, 179, 182, 182, 182, 1640, 8, 62, 188, 188, 7, 7, 7, 190, 22, 64, 22, 65, 22, 22, 593, 593, 8, 67, 202, 202, 8, 8, 206, 206, 71, 23, 71, 209, 71, 71, 638, 638, 26, 647, 8, 8, 74, 74, 74, 661, 26, 668, 26, 674, 76, 76, 76, 2051, 80, 26, 233, 233, 80, 80, 236, 236, 242, 238, 242, 719, 728, 728, 2186, 6560] odd_count_cubed = [1, 81, 81, 81, 27, 27, 27, 243, 27, 243, 27, 81, 27, 27, 81,