最近在练习使用STL编程,我试图编写一个HOOK&hoist的功能块,现在编写完成,程序如下:FP #initial
R #con_leftfir
R #con_rightfir
R #con_rightsec
R #con_leftsec
R #lad_up
R #lad_down
R #catch
S #home
ONE: AN #home
JC TWO
A #workfinish
S #con_left
R #con_right
A #forword_p
R #home
S #lad_down
TWO: AN #lad_down
JC THR
A #forword_p
R #con_up
S #con_down
A #down_p
R #lad_down
S #catch
THR: AN #catch
JC for
A #down_p
CALL "select_m" , DB1
up :=#up_m
down :=#down_m
up_q :=#up_m_q
down_q:=#down_m_q
A #down_p
A #mannual.finish
R #catch
S #lad_up
O(
A #backword_p
R #con_right
S #con_left
A #middle_p
R #con_rightsec
S #home
JC ONE
)
for: AN #lad_up
JC fiv
A #forword_p
R #con_down
S #con_up
R #lad_up
S #con_rightfir
fiv: AN #con_rightfir
JC six
A #forword_p
R #con_left
S #con_right
A #middle_p
R #con_rightfir
S #con_rightsec
six: AN #con_rightsec
JC TWO
A #middle_p
R #con_left
S #con_right
A #backword_p
R #con_rightsec
S #lad_down
然后下载到模拟器中,不能运行,最开始以为是硬件组态有问题,我把以前两个cpu的项目改成最简单的315-2dp组态,发现还是不能下载ob1,又重新新建一个ob1,此时又有报警,发现模拟器的mpi地址不一致,改后下载,能下载 却不能模拟,反复使用排除法,我发现是fb编写有问题,今天晚上准备花点时间来改写fb。希望找到原因。 |