我想知道两者之间是否有任何区别:
1) 简单端口
data_valid : simple_port of bit is instance;
keep data_valid.hdl_path() == "data_valid_o";
event data_valid_f is fall(data_valid$) @sim;
on data_valid_f {
-- do some stuff
};
2) 事件端口
data_valid : event_port is instance;
keep data_valid.hdl_path() == "data_valid_o";
keep data_valid.edge() == fall;
on data_valid$ {
-- do some stuff
};
提前致谢!