Host Engineering Forum

General Category => Do-more CPUs and Do-more Designer Software => Topic started by: Bolt on December 09, 2021, 02:35:07 AM

Title: FIFORESET not setting Empty bit
Post by: Bolt on December 09, 2021, 02:35:07 AM
I was working on a project tonight, and I did a DEVCLEAR, STRCLEAR, and FIFORESET (clear user block) all triggered by one bit.  It did everything, but it did not reset the FIFO.Empty flag to TRUE.  I have not troubleshooted it further.  Is this expected behavior?
Title: Re: FIFORESET not setting Empty bit
Post by: BobO on December 09, 2021, 08:57:22 AM
I was working on a project tonight, and I did a DEVCLEAR, STRCLEAR, and FIFORESET (clear user block) all triggered by one bit.  It did everything, but it did not reset the FIFO.Empty flag to TRUE.  I have not troubleshooted it further.  Is this expected behavior?

Should set Depth to 0, Empty to true, and Full to false. I did a quick test and it seems to work. Could be something else going on though.
Title: Re: FIFORESET not setting Empty bit
Post by: Bolt on December 09, 2021, 09:31:49 AM
It set Depth to 0, but not Empty to TRUE.  I did not have it completely Full, so not sure what it would have done there.
Title: Re: FIFORESET not setting Empty bit
Post by: BobO on December 09, 2021, 09:41:21 AM
It set Depth to 0, but not Empty to TRUE.  I did not have it completely Full, so not sure what it would have done there.

If you can dupe it with a small bit of code, please send it to us.