Skip to content

Commit e34d3c1

Browse files
emacdo12jeanlego
authored andcommitted
Odin: include new benchmarks
1 parent 23fd3c6 commit e34d3c1

File tree

5 files changed

+152
-0
lines changed

5 files changed

+152
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
########################
2+
# arch benchmarks config
3+
########################
4+
5+
script_synthesis_params=--time_limit 3600s
6+
simulation_params= -g 2 -L reset rst -H we
7+
script_simulation_params=--time_limit 3600s
8+
9+
# Path to directory of circuits to use
10+
circuits_dir=../vtr_flow/benchmarks/fpu/hardlogic
11+
12+
# Path to directory of architectures to use
13+
archs_dir=../vtr_flow/arch/timing
14+
15+
# Add circuits to list to sweep
16+
circuit_list_add=bfly.v
17+
circuit_list_add=bgm.v
18+
circuit_list_add=dscg.v
19+
circuit_list_add=fir.v
20+
circuit_list_add=mm3.v
21+
circuit_list_add=ode.v
22+
circuit_list_add=syn2.v
23+
circuit_list_add=syn7.v
24+
25+
# Add architectures to list to sweep
26+
arch_list_add=hard_fpu_arch_timing.xml
27+
28+
synthesis_parse_file=regression_test/parse_result/conf/synth.toml
29+
simulation_parse_file=regression_test/parse_result/conf/sim.toml
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#
2+
############################################
3+
# Configuration file for running experiments
4+
##############################################
5+
6+
# Path to directory of circuits to use
7+
circuits_dir=../vtr_flow/benchmarks/fpu/softlogic
8+
9+
# Path to directory of architectures to use
10+
archs_dir=../vtr_flow/arch/timing
11+
12+
# Add circuits to list to sweep
13+
circuit_list_add=bfly.v
14+
circuit_list_add=bgm.v
15+
circuit_list_add=dscg.v
16+
circuit_list_add=fir.v
17+
circuit_list_add=mm3.v
18+
circuit_list_add=ode.v
19+
circuit_list_add=syn2.v
20+
circuit_list_add=syn7.v
21+
22+
# Add architectures to list to sweep
23+
arch_list_add=k6_N10_mem32K_40nm.xml
24+
25+
synthesis_parse_file=regression_test/parse_result/conf/synth.toml
26+
simulation_parse_file=regression_test/parse_result/conf/sim.toml
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/* This test checks that when you pass an input into a function and there are unused Odin doesn't fail but throws a warning */
2+
3+
module func(in,out);
4+
input [7:0] in;
5+
output [3:0] out;
6+
7+
assign out = in[3:0];
8+
endmodule
9+
10+
module simple_op(in_1,out_1);
11+
input [7:0] in_1;
12+
output [7:0] out_1;
13+
14+
func m1(
15+
.in (in_1),
16+
.out (out_1)
17+
);
18+
endmodule
19+
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
GLOBAL_SIM_BASE_CLK in_1
2+
1 0X9e
3+
0 0X1a
4+
1 0X1a
5+
0 0Xc7
6+
1 0X7a
7+
0 0X54
8+
1 0X71
9+
0 0Xba
10+
1 0Xa5
11+
0 0Xb0
12+
1 0X08
13+
0 0X71
14+
1 0Xc8
15+
0 0Xfa
16+
1 0X6f
17+
0 0Xa6
18+
1 0X51
19+
0 0X7a
20+
1 0X0a
21+
0 0X7d
22+
1 0X5b
23+
0 0Xcf
24+
1 0X39
25+
0 0X70
26+
1 0X55
27+
0 0X13
28+
1 0X93
29+
0 0Xd0
30+
1 0X04
31+
0 0X20
32+
1 0Xcc
33+
0 0Xe5
34+
1 0X4e
35+
0 0X80
36+
1 0X8a
37+
0 0X68
38+
1 0X6f
39+
0 0X05
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
out_1
2+
0Xe
3+
0Xa
4+
0Xa
5+
0X7
6+
0Xa
7+
0X4
8+
0X1
9+
0Xa
10+
0X5
11+
0X0
12+
0X8
13+
0X1
14+
0X8
15+
0Xa
16+
0Xf
17+
0X6
18+
0X1
19+
0Xa
20+
0Xa
21+
0Xd
22+
0Xb
23+
0Xf
24+
0X9
25+
0X0
26+
0X5
27+
0X3
28+
0X3
29+
0X0
30+
0X4
31+
0X0
32+
0Xc
33+
0X5
34+
0Xe
35+
0X0
36+
0Xa
37+
0X8
38+
0Xf
39+
0X5

0 commit comments

Comments
 (0)