2

我想知道两者之间是否有任何区别:

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
};

提前致谢!

4

1 回答 1

4

简而言之,event_port它将检测毛刺,即模拟周期内的零时间信号变化。的值simple_port将由模拟周期结束时的信号值决定,无论在此之前它切换了多少次。

于 2017-02-24T15:49:12.963 回答