MicroN8 Posted February 1, 2014 Report Share Posted February 1, 2014 Sorry about the bad pun...I am taking a computer networking class this term and the teacher has said token ring about 20+ times in 9 class periods. So, I got to thinking about how to implement such a design with logic. I spent today reading Introduction to Digital Design and messing around with the new Aldec Active HDL I had to download (due to the student version expired 1-1-14). I got a token ring simulation working on the PapPro and logic start wing. Each switch represent a network connected to the ring. If the switch is up the network wants to transmit. When the led above the switch is on the network has the token and is transmitting. If the switch is down the token is passed quicker. The token is placed in the ring by the up joystick and pressing the joystick like a button resets the whole ring(without a token). I spent about 8 hours messing with this. It just looks like a glorified Larson scanner though (if all switches are up). Oh well.One interesting thing I learned from it is that if you time it right and put 2 or more tokens into the ring (by pressing up again) and all the switches are not up, one token can catch the other one and it gets destroyed or less often both tokens get destroyed. I don't know if this is how it would work in a real token network since they only have one token, maybe it is just a flaw in my design.I used lots of D flip flops, some pulse extenders and clippers, a clock divider with fast and slow output, and a lot of or and and gates.Check it out if you have the papilio pro, logic shield and papilio loader handy and want to see some flashing leds respond to switches. token_top.bit Link to comment Share on other sites More sharing options...
This topic is now archived and is closed to further replies.