Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add blocks to access double-ended queues of bits #92

Open
stephanemagnenat opened this issue Jun 15, 2017 · 0 comments
Open

Add blocks to access double-ended queues of bits #92

stephanemagnenat opened this issue Jun 15, 2017 · 0 comments

Comments

@stephanemagnenat
Copy link
Member

stephanemagnenat commented Jun 15, 2017

Assuming we implement the FSM mode, the old state variables as in VPL1 are not useful for states any more. However, variables can be used for something else than states in the sense of program counter.

An idea to implement a variable model that is powerful and quite simple is the one of a binary double-ended queue. Assuming that VPL provides two binary queues and a block that can operate on them, many operations become possible, such as reading and comparing bar codes. The corresponding action block could provide the following operations:

  • write 1/0 in the start/end of the queue
  • pop from the start/end of the queue
  • clear a queue

The corresponding event block could provide:

  • compare the two queues lengths (same, smaller, larger)
  • compare the two queues content (lower, smaller, larger), with empty values treated as zeros.
@stephanemagnenat stephanemagnenat changed the title Add a queue of binary number block Add a pair of event/action blocks providing access to double-ended queues of bits Jun 15, 2017
@stephanemagnenat stephanemagnenat changed the title Add a pair of event/action blocks providing access to double-ended queues of bits Add blocks providing access to double-ended queues of bits Jun 15, 2017
@stephanemagnenat stephanemagnenat changed the title Add blocks providing access to double-ended queues of bits Add blocks to access double-ended queues of bits Jun 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant