HAL
configuration.py
Go to the documentation of this file.
1 #!/usr/bin/python3
2 
3 import os
4 import getpass
5 
6 # ---- CONFIGURATION ----
7 username = getpass.getuser()
8 
9 path_to_core_collection = "/home/" + username + "/git/hal-benchmarks"
10 path_to_hal = "/home/" + username + "/git/hal"
11 path_to_hal_build = path_to_hal + "/build-release"
12 path_to_hal_bin = path_to_hal_build + "/bin/hal"
13 path_dataflow_out = path_to_hal_build + "/dataflow_out"
14 
15 netlists = dict()
16 netlists["vivado"] = dict()
17 netlists["synopsys"] = dict()
18 
19 
20 default_gate_libraries = dict()
21 default_gate_libraries["vivado"] = "XILINX_UNISIM"
22 default_gate_libraries["synopsys"] = "lsi_10k"
23 
24 special_gate_libraries = dict()
25 
26 # test
27 netlists["vivado"]["test"] = "test/test.vhd"
28 
29 # aes
30 netlists["vivado"]["tiny_aes"] = "crypto/tiny_aes/tiny_aes_hsing_xilinx_unisim_vivado.vhd"
31 netlists["synopsys"]["tiny_aes"] = "crypto/tiny_aes/tiny_aes_hsing_lsi_10k_synopsys.v"
32 
33 # des
34 netlists["vivado"]["des"] = "crypto/des/des_xilinx_unisim_vivado.vhd"
35 netlists["synopsys"]["des"] = "crypto/des/des_lsi_10k_synopsys.v"
36 
37 
38 # keccak
39 netlists["vivado"]["sha-3"] = "crypto/sha-3/sha-3_xilinx_unisim_vivado.vhd"
40 netlists["synopsys"]["sha-3"] = "crypto/sha-3/sha-3_lsi_10k_synopsys.v"
41 
42 # present
43 netlists["vivado"]["present"] = "crypto/present/present_xilinx_unisim_vivado.vhd"
44 netlists["synopsys"]["present"] = "crypto/present/present_lsi_10k_synopsys.v"
45 
46 # rsa
47 netlists["vivado"]["rsa"] = "crypto/rsa/rsa_xilinx_unisim_vivado.vhd"
48 netlists["synopsys"]["rsa"] = "crypto/rsa/rsa_lsi_10k_synopsys.v"
49 
50 
51 
52 # open8
53 netlists["vivado"]["open8"] = "cpu/open8/open8_xilinx_unisim_vivado.vhd"
54 netlists["synopsys"]["open8"] = "cpu/open8/open8_lsi_10k_synopsys.v"
55 
56 
57 # edge
58 netlists["vivado"]["edge"] = "cpu/edge/egde_xilinx_unisim_vivado.vhd"
59 netlists["synopsys"]["edge"] = "cpu/edge/edge_lsi_10k_synopsys.v"
60 
61 # ibex
62 netlists["vivado"]["ibex"] = "cpu/ibex_risc-v/ibex_xilinx_unisim_vivado.vhd"
63 netlists["synopsys"]["ibex"] = "cpu/ibex_risc-v/ibex_lsi_10k_synopsys.v"
64 
65 
66 
67 # opentitan
68 netlists["vivado"]["opentitan"] = "soc/opentitan/opentitan_xilinx_unisim_vivado.vhd"
69 netlists["synopsys"]["opentitan"] = "soc/opentitan/opentitan_lsi_10k_synopsys.vhd"
70 special_gate_libraries[("synopsys", "opentitan")] = "lsi_10k"
71 
72 netlists["vivado"]["axi"] = "others/1m_2s_v1.vhd"
73 
74 netlists["vivado"]["soc"] = "soc/netlist/soc.vhd"
75 
76 
77 netlists["vivado"]["aes_trojan"] = "crypto/tiny_aes/tiny_aes_trojan.vhd"
78 netlists["vivado"]["rsa_trojan"] = "crypto/rsa/rsa_trojan.vhd"
79 
80 
81 # netlists for paper:
82 
83 netlists_paper = dict()
84 
85 # crypto
86 netlists_paper["tiny_aes"] = "128"
87 netlists_paper["des"] = "56,32"
88 netlists_paper["rsa"] = "512"
89 netlists_paper["present"] = "80,64"
90 netlists_paper["sha-3"] = "1600,512,1088"
91 
92 
93 # cpu
94 netlists_paper["ibex"] = "31,32,33"
95 netlists_paper["edge"] = "32"
96 netlists_paper["open8"] = "16,8"
97 
98 
99 #soc
100 netlists_paper["opentitan"] = "512,256,128,33,32,31"