forked from DeepWok/mase
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
166 lines (152 loc) · 9 KB
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
alias ts := test-sw
alias th := test-hw
alias re := reformat
test-sw:
bash scripts/test-machop.sh
pytest --log-level=DEBUG --verbose \
-n 1 \
--cov=src/chop/ --cov-report=html \
--html=report.html --self-contained-html \
--junitxml=test/report.xml \
--profile --profile-svg \
test/
# This test will only focus on the typical hardware components
test-hw:
# Activation_layers
python3 src/mase_components/activation_layers/test/fixed_relu_tb.py
# Cast
python3 src/mase_components/cast/test/fixed_cast_tb.py
# Linear layers
python3 src/mase_components/linear_layers/fixed_linear_layer/test/fixed_linear_tb.py
# MxInt
python3 src/mase_components/linear_layers/mxint_operators/test/mxint_linear_tb.py
# Memory
python3 src/mase_components/memory/test/fifo_tb.py
# This test will test all the available component
test-hardware-slow:
# Activation_layers
# python3 scripts/build-components.py
python3 src/mase_components/activation_layers/test/fixed_gelu_tb.py
python3 src/mase_components/activation_layers/test/fixed_leaky_relu_tb.py
python3 src/mase_components/activation_layers/test/fixed_relu_tb.py
python3 src/mase_components/activation_layers/test/fixed_selu_tb.py
# python3 src/mase_components/activation_layers/test/fixed_sigmoid_tb.py
python3 src/mase_components/activation_layers/test/fixed_softermax_1d_tb.py
# python3 src/mase_components/activation_layers/test/fixed_softermax_tb.py
# python3 src/mase_components/activation_layers/test/fixed_softmax_tb.py
python3 src/mase_components/activation_layers/test/fixed_softplus_tb.py
python3 src/mase_components/activation_layers/test/fixed_softsign_tb.py
python3 src/mase_components/activation_layers/test/fixed_tanh_tb.py
# python3 src/mase_components/activation_layers/test/softermax_global_norm_tb.py
# python3 src/mase_components/activation_layers/test/softermax_local_window_tb.py
# python3 src/mase_components/activation_layers/test/softermax_lpw_pow2_tb.py
# python3 src/mase_components/activation_layers/test/softermax_lpw_reciprocal_tb.py
# python3 src/mase_components/activation_layers/test/test_lint_activation_layers.py
# python3 src/mase_components/activation_layers/test/test_synth_activation_layers.py
# DEV mode (no intention to fix)
# python3 src/mase_components/activation_layers/test/fixed_elu_tb.py
# python3 src/mase_components/activation_layers/test/fixed_hardshrink_tb.py
# python3 src/mase_components/activation_layers/test/fixed_hardswish_tb.py
# python3 src/mase_components/activation_layers/test/fixed_logsigmoid_tb.py
# python3 src/mase_components/activation_layers/test/fixed_silu_tb.py
# python3 src/mase_components/activation_layers/test/fixed_softshrink_tb.py
# Cast
python3 src/mase_components/cast/test/fixed_cast_tb.py
python3 src/mase_components/cast/test/fixed_rounding_tb.py
python3 src/mase_components/cast/test/fixed_signed_cast_tb.py
# python3 src/mase_components/cast/test/fixed_unsigned_cast_tb.py
# Common
python3 src/mase_components/common/test/comparator_accumulator_tb.py
python3 src/mase_components/common/test/cut_data_tb.py
python3 src/mase_components/common/test/lut_tb.py
python3 src/mase_components/common/test/wrap_data_tb.py
# python3 src/mase_components/common/test/register_slice_tb.py
# python3 src/mase_components/common/test/test_lint_common.py
# DEV
# python3 src/mase_components/common/test/comparator_tree_tb.py
# python3 src/mase_components/common/test/single_element_repeat_tb.py
# Convolution_layers
python3 src/mase_components/convolution_layers/test/convolution_tb.py
# Inteface
python3 src/mase_components/interface/axi/test/test_lint_axi.py
# python3 src/mase_components/interface/axi/test/test_synth_axi.py
# Language models llmint8
python3 src/mase_components/language_models/llmint8/test/find_max_tb.py
python3 src/mase_components/language_models/llmint8/test/fixed_comparator_tree_layer_tb.py
python3 src/mase_components/language_models/llmint8/test/fixed_comparator_tree_tb.py
python3 src/mase_components/language_models/llmint8/test/quantized_matmul_tb.py
python3 src/mase_components/language_models/llmint8/test/quantizer_top_tb.py
python3 src/mase_components/language_models/llmint8/test/scatter_tb.py
# DEV
# python3 src/mase_components/language_models/llmint8/test/llm_int8_top_tb.py
# Linear layers
python3 src/mase_components/linear_layers/fixed_linear_layer/test/fixed_linear_tb.py
# python3 src/mase_components/linear_layers/fixed_linear_layer/test/binary_activation_binary_linear_tb.py
# python3 src/mase_components/linear_layers/fixed_linear_layer/test/fixed_activation_binary_linear_tb.py
# Linear Layer - fixed_operators
python3 src/mase_components/linear_layers/fixed_operators/test/fixed_accumulator_tb.py
# python3 src/mase_components/linear_layers/fixed_operators/test/fixed_adder_tree_layer_tb.py
python3 src/mase_components/linear_layers/fixed_operators/test/fixed_adder_tree_tb.py
python3 src/mase_components/linear_layers/fixed_operators/test/fixed_dot_product_tb.py
python3 src/mase_components/linear_layers/fixed_operators/test/fixed_lut_index_tb.py
# python3 src/mase_components/linear_layers/fixed_operators/test/fixed_matmul_core_tb.py
python3 src/mase_components/linear_layers/fixed_operators/test/fixed_mult_tb.py
python3 src/mase_components/linear_layers/fixed_operators/test/fixed_range_augmentation_tb.py
# python3 src/mase_components/linear_layers/fixed_operators/test/fixed_range_reduction_tb.py
# Linear Layer - matmul
# python3 src/mase_components/linear_layers/matmul/test/chain_matmul_tb.py
# python3 src/mase_components/linear_layers/matmul/test/fixed_mamul_tb.py
# python3 src/mase_components/linear_layers/matmul/test/matmul_tb.py
# python3 src/mase_components/linear_layers/matmul/test/matrix_stream_transpose_tb.py
# python3 src/mase_components/linear_layers/matmul/test/transpose_tb.py
# DEV Linear Layer - binary_operators
python3 src/mase_components/linear_layers/binarized_operators/test/binary_activation_binary_adder_tree_layer_tb.py
# python3 src/mase_components/linear_layers/binarized_operators/test/binary_activation_binary_adder_tree_tb.py
# python3 src/mase_components/linear_layers/binarized_operators/test/binary_activation_binary_dot_product_tb.py
# python3 src/mase_components/linear_layers/binarized_operators/test/binary_activation_binary_matmul_core_tb.py
# python3 src/mase_components/linear_layers/binarized_operators/test/binary_activation_binary_mult_tb.py
# python3 src/mase_components/linear_layers/binarized_operators/test/binary_activation_binary_vector_mult_tb.py
# python3 src/mase_components/linear_layers/binarized_operators/test/fixed_activation_binary_dot_product_tb.py
# python3 src/mase_components/linear_layers/binarized_operators/test/fixed_activation_binary_mult_tb.py
# python3 src/mase_components/linear_layers/binarized_operators/test/fixed_activation_binary_vector_mult_tb.py
# python3 src/mase_components/linear_layers/binarized_operators/test/test_lint_binary_arith.py
# MxInt
python3 src/mase_components/linear_layers/mxint_operators/test/mxint_cast_tb.py
python3 src/mase_components/linear_layers/mxint_operators/test/mxint_matmul_tb.py
python3 src/mase_components/linear_layers/mxint_operators/test/mxint_linear_tb.py
python3 src/mase_components/linear_layers/mxint_operators/test/mxint_accumulator_tb.py
# Memory
python3 src/mase_components/memory/test/fifo_tb.py
# python3 src/mase_components/memory/test/input_buffer_tb.py
python3 src/mase_components/memory/test/skid_buffer_tb.py
# python3 src/mase_components/memory/test/unpacked_fifo_tb.py
# python3 src/mase_components/memory/test/repeat_circular_buffer_tb.py
# python3 src/mase_components/memory/test/test_lint_memory.py
# Normalization_layers
python3 src/mase_components/normalization_layers/test/batch_norm_2d_tb.py
python3 src/mase_components/normalization_layers/test/group_norm_2d_tb.py
# DEV
# python3 src/mase_components/normalization_layers/test/channel_selection_tb.py
# python3 src/mase_components/normalization_layers/test/rms_norm_2d_tb.py
# python3 src/mase_components/normalization_layers/test/test_lint_norm.py
# Scalar operators
python3 src/mase_components/scalar_operators/fixed/test/fixed_isqrt_tb.py
python3 src/mase_components/scalar_operators/fixed/test/isqrt_sw.py
# python3 src/mase_components/scalar_operators/float/test/test_lint_float_arithmetic.py
# python3 src/mase_components/scalar_operators/fixed/test/fixed_nr_stage_tb.py
# python3 src/mase_components/scalar_operators/fixed/test/test_lint_fixed_math.py
# Systolic array
# python3 src/mase_components/systolic_arrays/test/test_lint_systolic_arrays.py
# Transformer_layers
python3 src/mase_components/transformer_layers/test/fixed_self_attention_head_tb.py
# python3 src/mase_components/transformer_layers/test/fixed_gqa_head_tb.py
# python3 src/mase_components/transformer_layers/test/fixed_self_attention_tb.py
# python3 src/mase_components/transformer_layers/test/test_lint_attention.py
reformat:
# format python files
black src/chop
black src/mase_components
black src/mase_cocotb
black test
# format verilog
# find src/mase_components -name '*.sv' -exec verible-verilog-format --inplace {} +;