异步复位信号已经同步释放之后,那么在进程里面应该怎么写代码呢?是方式一呢,还是方式二呢?
方式一:
process(reset,clkin)
begin
if reset='0' then
dataout <= (others => '0');
elsif clkin'event and clkin='1' then
。。。。。。。。。。。。。。。。。。。。。。。
方式二:
process(reset,clkin)
begin
if clkin'event and clkin='1' then
if reset='0' then
dataout <= (others => '0');
。。。。。。。。。。。。。。。。。。。。。