Instead, use two “Hex Keyboards” (available under the “Simulation IO” library). Do not use binary switches for the inputs A, B, C, D. Implement and test the circuit using Logic Works. Example #3: A=0, B=1, C=1, D=1 à 01 is less than 11, so LessThan is 1. Example #2: A=0, B=1, C=0, D=1 à 01 is not less than 01, so LessThan is 0. Example #1: A=1, B=0, C=0, D=1 à 10 is not less than 01, so LessThan is 0. Inputs: A (high order bit of number #1), B (low order bit of number #1),Ĭ (high order bit of number #2), D (low order bit of number #2), Output: LessThan – true if AB < CD. You wish to compare two 2-bit numbers and decide if the first is less than the second. (When you are ready, start a new file – do not include this in your previous file). Submit this file later, together with part 2. Label the circuit and the page in accordance with the Suggested method: Select your components and add them to the schematic Add switches for I/O Add and label wires to connect the devices Add probes for outputs and label the outputs. Using LogicWorks, implement and test a circuit for the following: You must use binary switches for inputs A, B, and C. See /Users/cs/lmcdowel/courses/si232/logicworks 1. Be sure to save your files on your X drive, not on the local computer, or else you may lose your work. It is highly recommended that you label and probe/switch your signals first, rather than at the end, to facilitate testing. See Requirements for Logic Works Circuits :
Logicworks 5 add library install#
However, if you wish to install on your own PC to work outside of class, see the instruction on Blackboard under “Course Information.” ( this is the first time we have used Blackboard in the course, but everyone is enrolled in the SI232 course. In the lab room, you don’t need to install LogicWorks. My thought is that the excess use of “if-else” statement within a switch statement may be the cause of the problems, but I can’t figure it out at this moment.And Schematics Start during lab and finish on your own time. Additional money after st50 does not get returned, it stays on the FSM. After refund has been issued, the FSM does not return to st0 and the refund outputs stay on.ģ. RST (reset) doesn’t reset the FSM to st0.Ģ.
Here is the list of the problems I recognized:ġ.
Logicworks 5 add library code#
The code does not have any syntactical error, but it is not doing what I desire. I will try to make some helpful comments. I will have my code in a text document file and some screenshots in this Word file. The FSM then return st50 and await the user’s next action. Once 50 cents is reached, any additional money that the machine collects will be automatically return. Once 50 cents is reach, the user has the option to buy the candy and the FSM must return to st0 after.Ĥ.
Once the refund has been issued, the FSM must return to st0.ģ. The vending machine must have the “refund” feature at any point of the finite state machine.Ģ. St0 being no money is remained, all the way to st100 being 1 dollar is remained.ġ. I am using the finite state machine (FSM) to keep track of the amount of money that remains and execute according actions depends on what the user does subsequently. Once 50 cents are collected, the user would press an “OK” button and the machine would give out the candy. Each item is 50 cents and the machine accepts nickels, dimes and quarters. Basically I want simulate a vending machine that sells candies. Thank you all.ĭescription: It is a relative simple project in terms functionality.
I am very unfamiliar with VHDL and my team members, teacher and TA have not been able to help. This is my final project of a Digital System course. Vending Machine Controller-using VHDL and Logicworks 5