@@ -79,7 +79,8 @@ void hls_foc_periodic_ap_fixed(
7979 volatile int & Vc_cmd_stts,
8080 volatile int & Ialpha_stts,
8181 volatile int & Ibeta_stts,
82- volatile int & Ihomopolar_stts) {
82+ volatile int & Ihomopolar_stts,
83+ volatile int & fixed_angle_args) {
8384 #pragma HLS interface axis port = Ia
8485 #pragma HLS interface axis port = Ib
8586 #pragma HLS interface axis port = Ic
@@ -127,6 +128,7 @@ void hls_foc_periodic_ap_fixed(
127128 #pragma HLS interface s_axilite port = Ialpha_stts bundle = foc_args
128129 #pragma HLS interface s_axilite port = Ibeta_stts bundle = foc_args
129130 #pragma HLS interface s_axilite port = Ihomopolar_stts bundle = foc_args
131+ #pragma HLS interface s_axilite port = fixed_angle_args bundle = foc_args
130132
131133 #pragma HLS interface s_axilite port = return bundle = foc_args
132134 long trip_cnt = 0x7fffffffffffffffL ;
@@ -141,7 +143,7 @@ void hls_foc_periodic_ap_fixed(
141143 //
142144 id_stts, flux_acc_stts, flux_err_stts, flux_out_stts, iq_stts, torque_acc_stts, torque_err_stts,
143145 torque_out_stts, speed_stts, speed_acc_stts, speed_err_stts, speed_out_stts, angle_stts,
144- Va_cmd_stts, Vb_cmd_stts, Vc_cmd_stts, Ialpha_stts, Ibeta_stts, Ihomopolar_stts, trip_cnt);
146+ Va_cmd_stts, Vb_cmd_stts, Vc_cmd_stts, Ialpha_stts, Ibeta_stts, Ihomopolar_stts, fixed_angle_args, trip_cnt);
145147}
146148// clang-format on
147149
@@ -195,7 +197,8 @@ void hls_foc_periodic_int( // used for testing synthesizability of hls_foc_strm_
195197 volatile int & Vc_cmd_stts,
196198 volatile int & Ialpha_stts,
197199 volatile int & Ibeta_stts,
198- volatile int & Ihomopolar_stts) {
200+ volatile int & Ihomopolar_stts,
201+ volatile int & fixed_angle_args) {
199202#pragma HLS interface axis port = Ia
200203#pragma HLS interface axis port = Ib
201204#pragma HLS interface axis port = Ic
@@ -244,6 +247,7 @@ void hls_foc_periodic_int( // used for testing synthesizability of hls_foc_strm_
244247#pragma HLS interface s_axilite port = Ialpha_stts bundle = foc_args
245248#pragma HLS interface s_axilite port = Ibeta_stts bundle = foc_args
246249#pragma HLS interface s_axilite port = Ihomopolar_stts bundle = foc_args
250+ #pragma HLS interface s_axilite port = fixed_angle_args bundle = foc_args
247251
248252#pragma HLS interface s_axilite port = return bundle = foc_args
249253
@@ -259,7 +263,7 @@ void hls_foc_periodic_int( // used for testing synthesizability of hls_foc_strm_
259263 //
260264 id_stts, flux_acc_stts, flux_err_stts, flux_out_stts, iq_stts, torque_acc_stts, torque_err_stts,
261265 torque_out_stts, speed_stts, speed_acc_stts, speed_err_stts, speed_out_stts, angle_stts, Va_cmd_stts,
262- Vb_cmd_stts, Vc_cmd_stts, Ialpha_stts, Ibeta_stts, Ihomopolar_stts, trip_cnt);
266+ Vb_cmd_stts, Vc_cmd_stts, Ialpha_stts, Ibeta_stts, Ihomopolar_stts, fixed_angle_args, trip_cnt);
263267}
264268
265269// hls_foc_oneSample_ap_fixed is mainly used for generating testing files for cosim
@@ -313,7 +317,8 @@ void hls_foc_oneSample_ap_fixed(
313317 volatile int & Vc_cmd_stts,
314318 volatile int & Ialpha_stts,
315319 volatile int & Ibeta_stts,
316- volatile int & Ihomopolar_stts) {
320+ volatile int & Ihomopolar_stts,
321+ volatile int & fixed_angle_args) {
317322#pragma HLS interface axis port = Ia
318323#pragma HLS interface axis port = Ib
319324#pragma HLS interface axis port = Ic
@@ -361,6 +366,7 @@ void hls_foc_oneSample_ap_fixed(
361366#pragma HLS interface s_axilite port = Ialpha_stts bundle = foc_args
362367#pragma HLS interface s_axilite port = Ibeta_stts bundle = foc_args
363368#pragma HLS interface s_axilite port = Ihomopolar_stts bundle = foc_args
369+ #pragma HLS interface s_axilite port = fixed_angle_args bundle = foc_args
364370
365371// #pragma HLS interface ap_none port = ppr_args
366372// #pragma HLS interface ap_none port = control_mode_args
@@ -413,5 +419,5 @@ void hls_foc_oneSample_ap_fixed(
413419 //
414420 id_stts, flux_acc_stts, flux_err_stts, flux_out_stts, iq_stts, torque_acc_stts, torque_err_stts,
415421 torque_out_stts, speed_stts, speed_acc_stts, speed_err_stts, speed_out_stts, angle_stts, Va_cmd_stts,
416- Vb_cmd_stts, Vc_cmd_stts, Ialpha_stts, Ibeta_stts, Ihomopolar_stts, trip_cnt);
422+ Vb_cmd_stts, Vc_cmd_stts, Ialpha_stts, Ibeta_stts, Ihomopolar_stts, fixed_angle_args, trip_cnt);
417423}
0 commit comments