maxplus下如何描述锁存器呢?我的总有问题!烦!!!!!!
if reset='0' then
bobsel_reg<=(others=>'1');
fan_mask<=(others=>'0');
int_mask<=(others=>'0');
elsif intclr='0' and wr='0' then
int_mask<=data;
elsif fanclr='0'and wr='0' then
fan_mask<=data(2 downto 0);
elsif bob_sel='0'and wr='0' then
bobsel_reg<=data;
end if;