GithubHelp home page GithubHelp logo

virtual-labs / exp-state-diagrams-iiith Goto Github PK

View Code? Open in Web Editor NEW
0.0 5.0 0.0 2.52 MB

This experiment belongs to Digital Logic Design Full Name: State Diagrams

Home Page: http://virtual-labs.github.io/exp-state-diagrams-iiith

License: GNU Affero General Public License v3.0

CSS 1.04% HTML 2.07% JavaScript 96.89%
iiith ph2-exp cse15-iiith

exp-state-diagrams-iiith's People

Contributors

aditya-debug15 avatar ananyav2004 avatar gautamxyz avatar pavanchow avatar shreyash-x avatar sravanthimodepu avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

exp-state-diagrams-iiith's Issues

BUG - Incorrect Output

  1. Browser Environment Info:
    Google Chrome 113 on Linux(Ubuntu), Version 113.0.5672.92 (Official Build) (64-bit), X11 Window System.
    Browser Details
    User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36

Bug SCreenshot
image

Description
Despite connecting all connections as mentioned in procedure section, it still gives a fail message.

BUG - Formatting Errors

  1. Browser Environment Info:
    Google Chrome 113 on Linux(Ubuntu), Version 113.0.5672.92 (Official Build) (64-bit), X11 Window System.
    Browser Details
    User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36
  2. Testing URL: https://virtual-labs.github.io/exp-comparator-iiith

3. Aim Section

Types(s) of Issue

  • Sentence framing error

Bug Screenshot
image

Description
Replace Finte by Finite


##4.Theory Section

Type(s) of Issue*

  • Punctuation Errors

Bug Screenshot
image

Description
Give a gap between the 2 sentences shown here.


4.Objective Section

Type(s) of Issue*

  • Sentence framing errors

Bug Screenshot
image

Description

  • The objective of this experiment is to understand the working of the state digram diagram.
  • Try to make a circuit for the given state diagram in the practice section.

5. Posttest Section

Types(s) of Issues

  • Spelling Errors

Question 1:

Bug Screenshot
image

Description
Replace cicruit with circuit.


6. Assignment Section

Types(s) of Issues

  • Grammatical Errors

Bug Screenshot
image
image

Description

  • A student was asked to design the state diagram of a circuit to detect if 1011 occurs in a given inp......

  • Let b point be in the next line.

BUGS - Incorrect/Unclear Instructions, Observations, Messages

  1. Browser Environment Info:
    Google Chrome 113 on Linux(Ubuntu), Version 113.0.5672.92 (Official Build) (64-bit), X11 Window System.
    Browser Details
    User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36

1. Demo Section

  • Speed Issues

Type(s) of Issue

  • Missing Instruction

Description
Whenever we pause the simulation, irrespective of the speed it had earlier, it always goes back to x1 speed when we pause and start back. We have to change the speed again to the desired values every time after pausing and restarting/ just starting. So, this could be mentioned in a more clear way by adding a new instruction as follows:

The default speed is reset to x1 automatically at the beginning of every simulation or whenever you pause and resume. If you want to change the speed, you can do so only while the simulation is running (only after starting or after resuming the simulation).


  • Observation Section Paused Simulation message

Type(s) of Issue

  • Unclear Message

Bug Screenshot
Bug12

Issue
The message says the simulation stopped whenever we pause the simulation, but to make it clearer, it could say

Simulation has been Paused. Please click on the "Start" button to Resume.


2 .Practice Section

  • Selection of Bits & Confusion between Submit and Simulate

Type(s) of Issue

  • Incomplete & Unclear Instructions

Bug Screenshot
image

Description
As seen in the picture above, in the (Practice) section, to simulate the circuit we built for different values of inputs, we must have the option to change the input values as per our convenience and verify. To do that, it is required to double-click on the input value bits to toggle them, but this feature is nowhere mentioned in the Instructions or anywhere else in the entire experiment additionally, in the demo section, we just had to single click to toggle the input bit value and so, the user will be confused as to how to give specific values to inputs.

Also, the instructions are unclear as to what simulate and submit buttons exactly do, as simulate option changes just the output bits which is not very evident for a first-time user. So, the instructions could be made more specific and clear as given below:
Instead of "Click on the "Simulate" button to simulate the circuit and see the output.", include these instructions:

  • You can set the input bits, which are by default 1, to any values of your choice for testing, by double-clicking on them.
  • Click on the "Simulate" button after setting the input bits as per your choice. This will simulate the circuit you built for the input bits set and will change the output bit values accordingly, for you to test your circuit.

Also, add these instructions at the end for a more clear understanding of what submit does.

  • Clicking on "Submit" will display a "Success" or "Failure" message in the Observations Section according to the correctness of your circuit.

ENHANCEMENT - ADD EXPLANATIONS FOR ASSESSMENT QUESTIONS

PRETEST:

REFERENCES: [CHATGPT]

  1. A given state diagram has 8 distinct states the number of flip-flops required to make the circuit are
    a: 3
    b: 4
    c: 8
    d: 1
A single flip-flop can typically represent only 2 distinct states (0 and 1). Given that the state diagram in question has 8 distinct states, it is highly unlikely that 4 flip-flops are sufficient to accurately represent all the states. Since each flip-flop can represent only 2 states, having 4 flip-flops would allow for a total of 16 possible states. This exceeds the requirement of representing only 8 distinct states, making it unlikely that 4 flip-flops are the correct number needed for this state diagram.

Option c: 8

A single flip-flop can typically represent only 2 distinct states (0 and 1). Given that the state diagram in question has 8 distinct states, it is highly unlikely that 8 flip-flops are necessary to accurately represent all the states. Having 8 flip-flops would provide a total of 256 possible states, which is far more than the 8 distinct states required. Therefore, it is unlikely that 8 flip-flops are the correct number needed for this state diagram.

Option d: 1

A single flip-flop can typically represent only 2 distinct states (0 and 1). Given that the state diagram in question has 8 distinct states, it is highly unlikely that 1 flip-flop is sufficient to accurately represent all the states. Having only 1 flip-flop would limit the representation to just 2 possible states, which is far less than the required 8 distinct states. Therefore, it is unlikely that 1 flip-flop is the correct number needed for this state diagram.

In summary, options b, c, and d are unlikely to be the correct number of flip-flops required to accurately represent a state diagram with 8 distinct states.

  1. The following data with three inputs A, B, C and one output Y. The output is 1 when the binary value of the input is odd number. The output is 0 otherwise. Then Y is equal to ?
    a: A and B
    b: A xor B xor C
    c: C
    d: B or C
Let's evaluate each option:

Option a: A and B
This option suggests that the output Y is equal to the logical AND operation between inputs A and B. However, this option is incorrect because the condition states that the output should be 1 when the binary value of the input is an odd number. The logical AND operation would only result in 1 if both A and B are 1, which may not satisfy the condition for an odd number.

Option b: A xor B xor C
This option suggests that the output Y is equal to the logical XOR operation between inputs A, B, and C. This option is incorrect because the condition states that the output should be 1 when the binary value of the input is an odd number. The logical XOR operation returns 1 if the number of 1's in the inputs is odd. However, this expression includes all three inputs A, B, and C, which means the value of C may affect the result even if A and B alone satisfy the odd number condition.

Option c: C
This option suggests that the output Y is equal to the input C. This option is incorrect because the condition states that the output should be 1 when the binary value of the input is an odd number. Using only input C as the output would not consider the values of A and B, and thus, it may not satisfy the condition for an odd number.

Option d: B or C
This option suggests that the output Y is equal to the logical OR operation between inputs B and C. This option is incorrect because the condition states that the output should be 1 when the binary value of the input is an odd number. The logical OR operation would result in 1 if either B or C (or both) is 1, but this does not necessarily guarantee that the binary value is an odd number.

In summary, none of the options a, b, c, or d are correct because they do not fulfill the condition of the output being 1 when the binary value of the input is an odd number.

  1. For making a mod 6 counter mankar used 3 flip-flops without any gate, then how many states will be skipped
    a: 2
    b: 1
    c: 0
    d: 3
Option c: 0
This option suggests that no states will be skipped in the mod 6 counter. However, with 3 flip-flops, we can represent a total of 8 different states. Since we only need 6 states for the mod 6 counter, there will be some states that are not utilized or skipped. Therefore, this option is incorrect.

  1. Number of rows in state table for 2 D-Flip-Flop, 2 inputs and 2 output are/is
    a: 8
    b: 4
    c: 16
    d: None of these
To determine the number of rows in a state table for 2 D-Flip-Flops with 2 inputs and 2 outputs, we need to consider the number of possible combinations for the inputs and the current state.

Option a: 8
This option suggests that the number of rows in the state table is 8. However, this is incorrect because the number of rows in a state table is determined by the total number of possible combinations of inputs and current state. In this case, there are 2 D-Flip-Flops, each with 2 possible inputs and 2 possible outputs. Considering the current state, which can also be 2-bit, the total number of combinations will be greater than 8.

Option b: 4
This option suggests that the number of rows in the state table is 4. This is incorrect because with 2 D-Flip-Flops, each with 2 possible inputs and 2 possible outputs, the total number of combinations will be more than 4. The number of rows in the state table should be greater than 4.

Option c: 16
This option suggests that the number of rows in the state table is 16. This is incorrect because with 2 D-Flip-Flops, each with 2 possible inputs and 2 possible outputs, the total number of combinations will be less than 16. The number of rows in the state table should be less than 16.

Option d: None of these
This option suggests that none of the given options (a, b, c) is the correct answer. This is correct because, as discussed earlier, the correct number of rows in the state table for 2 D-Flip-Flops with 2 inputs and 2 outputs will be neither 8, 4, nor 16.

To summarize, the correct option is d: None of these, as the number of rows in the state table for 2 D-Flip-Flops with 2 inputs and 2 outputs is neither 8, 4, nor 16.

POSTTEST:

REFERENCES: [CHATGPT]

  1. What is the number of flip flops required to implement a cicruit that detects a sequence of 3 or more 1s(ones)?
    a: 3
    b: 2
    c: 1
    d: 4
Apologies for the previous response. Let's provide explanations again for each option:

Option a: 3
This option suggests that the number of flip-flops required to implement the circuit that detects a sequence of 3 or more 1s is 3. However, this is incorrect. To detect a sequence of 3 or more 1s, we need to remember the previous two bits and compare them with the current bit. Therefore, we require at least 2 flip-flops to store this information. However, 3 flip-flops would provide additional storage but are not necessary for detecting the sequence.

Option b: 2
This option suggests that the number of flip-flops required is 2. This is correct. With 2 flip-flops, we can remember the previous bit and the current bit. By comparing these two bits with the current input bit, we can detect if there is a sequence of 3 or more 1s.

Option c: 1
This option suggests that only 1 flip-flop is required to implement the circuit. However, this is incorrect. With only 1 flip-flop, we can only remember the current bit and have no way of comparing it with the previous bits to detect a sequence of 3 or more 1s.

Option d: 4
This option suggests that 4 flip-flops are required. This is incorrect. While having additional flip-flops would provide extra storage, they are not necessary to detect a sequence of 3 or more 1s. 2 flip-flops are sufficient for this purpose.

In summary, option b is the correct answer because 2 flip-flops are required to implement the circuit that detects a sequence of 3 or more 1s. Options a, c, and d are incorrect because they either provide unnecessary storage or insufficient storage for the required functionality.

  1. Lets say we are asked to design a circuit for a vending machine that dispenses candy for Rs. 3 The input consists of a coin slot that can accept Rs. 1 and Rs. 2 coins. The number of states in its state diagram is:
    a: 1
    b: 2
    c: 3
    d: 4
To determine the number of states in the state diagram for the vending machine, we need to consider the possible combinations of inputs and outputs.

Option a: 1
This option suggests that the number of states in the state diagram is 1. However, this is incorrect because a vending machine that dispenses candy for Rs. 3 and accepts Rs. 1 and Rs. 2 coins would require multiple states to handle different scenarios. In this case, a single state would not be sufficient to capture the different inputs and outputs of the vending machine.

Option b: 2
This option suggests that the number of states in the state diagram is 2. This is incorrect because a vending machine that dispenses candy for Rs. 3 and accepts Rs. 1 and Rs. 2 coins would require more than two states. There would need to be states to represent different combinations of inputs and outputs, such as accepting the first coin, accepting the second coin, and dispensing the candy.

Option c: 3
This option suggests that the number of states in the state diagram is 3. This is incorrect as well because a vending machine that dispenses candy for Rs. 3 and accepts Rs. 1 and Rs. 2 coins would require more than three states. It would need states to represent different combinations of inputs and outputs, as mentioned before, and to handle cases such as insufficient payment or excess payment.

Option d: 4
This option suggests that the number of states in the state diagram is 4. This is incorrect because a vending machine that dispenses candy for Rs. 3 and accepts Rs. 1 and Rs. 2 coins would require more than four states. It would need states to capture the different combinations of inputs and outputs, handle different payment scenarios, and track the amount of money inserted.

In summary, options a, b, c, and d are all incorrect because they suggest a limited number of states for a vending machine that would require more states to handle the various input and output combinations and payment scenarios.

ENHANCEMENT - MULTIPLE CONNECTIONS

  1. Browser Environment Info:
    Google Chrome 113 on Linux(Ubuntu), Version 113.0.5672.92 (Official Build) (64-bit), X11 Window System.
    Browser Details
    User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36

Type(s) of Issue

  • Technical Issue
  • Enhancement

Bug Screenshot
image

Description
If the connections are wrong/invalid, like connecting the outputs to two different connections, connecting any of the ends to more than one connection, instead of allowing such connection, user experience would be enhanced if it did not allow multiple input sources to connect to the same endpoint.

BUG - Display Error message when not connected

  1. Browser Environment Info:
    Google Chrome 113 on Linux(Ubuntu), Version 113.0.5672.92 (Official Build) (64-bit), X11 Window System.
    Browser Details
    User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36

Type(s) of Issue

  • Technical Issue

Bug Screenshot

  1. Browser Environment Info:
    Google Chrome 113 on Linux(Ubuntu), Version 113.0.5672.92 (Official Build) (64-bit), X11 Window System.
    Browser Details
    User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36
  2. Testing URL: http://virtual-labs.github.io/exp-comparator-iiith

Type(s) of Issue

  • Technical Issue

Bug Screenshot

image
image
image

Issue

  • We see that it says highlighted component not connected but no component is highlighted. This is happening only for flip flops and only when we have earlier deleted a flip flop.It shows an error message upon deletion of flip flop as shown:
    image
Uncaught TypeError: Cannot read properties of null (reading '0')
    at deleteFF (flipflop.js:706:33)
    at HTMLLIElement.<anonymous> (layout.js:39:7)
  • We see that when we do not connect Inputs to anything as seen in second screenshot, it will display error message. But if I have connected them earlier but later on deleted the connected components and then simulate, it will not display error message.

Issue
We see that when we do not connect Inputs to anything as seen in second screenshot, it will display error message. But if I have connected them earlier but later on deleted the connected components and then simulate, it will not display error message as shown in third image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.