Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
Announcements
The Intel sign-in experience is changing in February to support enhanced security controls. If you sign in, click here for more information.
19678 Discussions

Hello! Any help with a counter issue on my .VWF file.

CPain1
Beginner
183 Views

I am creating a 4-bit up/down counter with the JK FF 74112. When I created my .VWF my counter is not counting properly. Any advice on what could be the problem? I have attached some pics of my program. (My clock needed to be 25MHz, I am using the DE2-115 board, so I pinned my clock to the ENETCLK_25) I am very new at this!! Thank you

0 Kudos
2 Replies
sstrell
Honored Contributor III
141 Views

It's working correctly, but you've got your endianness backwards in the simulation. QA is your LSB but your "Count" output has it as the MSB.

 

#iwork4intel

SyafieqS
Moderator
141 Views

Hi Charlene,

 

Seem like there no problem with the simulation, the logic works properly as it is bidirectional counter. Can see there down and up counting. Input low the count output is counting down from most significant bits. Same goes to high input starting from MSB

Reply