Circuit Homework: Detect Pattern 11011

  • Context: Engineering 
  • Thread starter Thread starter Max0007
  • Start date Start date
  • Tags Tags
    Circuit Iterative
Click For Summary

Discussion Overview

The discussion revolves around a homework problem involving the detection of a specific bit pattern (11011) in a sequence of bits. Participants explore the input format for the detector, the logic behind the detection process, and the output generation based on the detected pattern.

Discussion Character

  • Homework-related
  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant describes the task of detecting the pattern (11011) and indicates that a 1 should be placed in the output Z corresponding to the 0 of the pattern.
  • Questions arise regarding how the input is presented to the detector, with some participants asking if it is a time-sequence of bits or a group of bits.
  • Clarifications are made about the input being a 16-bit word applied to the detector, which has 16 inputs and outputs.
  • Concerns are raised about the clarity of the approach, with one participant suggesting that the input might be a serial stream rather than parallel.
  • Discussion includes the need to find all bits of the pattern, with one participant suggesting that checking from both ends of the input stream may suffice.
  • Another participant emphasizes the importance of clearly establishing the input format to proceed effectively with the problem.
  • One participant proposes an experiment to send a serial stream of bits one at a time to test the detection process.
  • There is a suggestion to consider multiple alternatives to the approach being discussed.
  • Participants express a need for further clarification on the original post and its implications.

Areas of Agreement / Disagreement

Participants express uncertainty regarding the input format and the detection logic. There is no consensus on the best approach to take, and multiple competing views remain regarding how to effectively detect the pattern.

Contextual Notes

Limitations include unclear assumptions about the input format (serial vs. parallel) and the specific logic used for detecting the pattern. The discussion also reflects varying interpretations of the problem requirements.

Max0007
Messages
66
Reaction score
1

Homework Statement


I have to detect a pattern (11011) once this detected I put a 1 in my ouput Z to 1 to the 0 of the pattern.
Example :
11011001...
00100000...

Homework Equations

The Attempt at a Solution

 

Attachments

  • 20150216_210802.jpg
    20150216_210802.jpg
    28.4 KB · Views: 462
Physics news on Phys.org
How is your input being presented to your detector? As a time-sequence of bits? Or all at once, as a group of bits (like a byte)?
 
lewando said:
How is your input being presented to your detector? As a time-sequence of bits? Or all at once, as a group of bits (like a byte)?
Well I would have 16 cells like the one I draw. And my circuit would receive a sequence of 16 bits at a time.
 
Sorry, I am having trouble reading the image and so I don't understand your approach. Okay, so correct me if I am wrong: a 16-bit word is applied to the input of the detector (a functional block with 16 inputs and 16 outputs), then detector outputs a 16-bit word with 1's in the correct place. Is that right?
 
lewando said:
Sorry, I am having trouble reading the image and so I don't understand your approach. Okay, so correct me if I am wrong: a 16-bit word is applied to the input of the detector (a functional block with 16 inputs and 16 outputs), then detector outputs a 16-bit word with 1's in the correct place. Is that right?
Yes
 
Max0007 said:
Yes
20150216_210554.jpg
20150216_220810.jpg
20150216_220823.jpg
Better now ?
 
Thanks for the detailed images, much more readable.

First off, I see a table with xi and yi, then a box with xi as input and zi as output. Is zi the same as yi?
When I see something like that (xi), it makes me think of a stream of bits with an index i that is forever increasing as the stream continues. Are you sure the input is not a serial stream? You are indicating that xi into the box is 1 signal (not 16 signals).

I see the word "state" and think: you are not relying on simple combinational logic, but memory (flip-flops)?.

I see in the 3rd image, the last column, zi, is all zeros.

I honestly don't understand your approach.

If you could spend some time describing with words what you are thinking that would help.

If you have any specific questions please ask them.
 
Your middle page discusses 0 bits found, 1 bit found, 2 bits found... What about 3 bits, 4 bits, and 5 bits found? Don't you need to "find" all 5 bits of the pattern?
 
lewando said:
Your middle page discusses 0 bits found, 1 bit found, 2 bits found... What about 3 bits, 4 bits, and 5 bits found? Don't you need to "find" all 5 bits of the pattern?
Yes but I am checking from right to left and left to right. So I only have to check for 2 bits from right to left and 2 bits from left to right and Xi is what my current cell value is = fifth bit.
 
  • #10
I had a question buried in post #7. You need to be very specific about the input to your box-- is it a serial stream of bits (going in on 1 wire) or a 16-bit parallel word (going in on 16 wires)? If this cannot be clearly established, then it makes no sense to proceed.
 
  • #11
lewando said:
Your middle page discusses 0 bits found, 1 bit found, 2 bits found... What about 3 bits, 4 bits, and 5 bits found? Don't you need to "find" all 5 bits of the pattern?
so in my point of view if I have x=1 and other input to 0 then bout(1)/bout(0) would take the value of 01 = which means 1 bit detected.
aout(1)/aout(0) would also take the value of 01.
lewando said:
I had a question buried in post #7. You need to be very specific about the input to your box-- is it a serial stream of bits (going in on 1 wire) or a 16-bit parallel word (going in on 16 wires)? If this cannot be clearly established, then it makes no sense to proceed.
a serial stream of bits (going in on 1 wire)
 
  • #12
As an experiment, I will send you a serial stream xi, one bit at a time. Your job is to respond with zi. It will go quickly, I promise. Ready?

x0 = 1
 
  • #13
Alright, maybe not so quickly then...

It is approaching midnight in my time zone. Signing off. Willing to pick this up later. In the meantime, you might want to consider multiple alternatives to your approach. There is always more than 1 way to get something done.
 
  • #14
Having slept on this, I think it would be better if you get a chance to ask some questions. I extend an apology for not realizing sooner that your original post does not contain a question.
 
  • #15
lewando said:
Your middle page discusses 0 bits found, 1 bit found, 2 bits found... What about 3 bits, 4 bits, and 5 bits found? Don't you need to "find" all 5 bits of the pattern?
Perhaps Max0007 should clearly explain what is implied by the choice of thread title.
 

Similar threads

  • · Replies 6 ·
Replies
6
Views
5K
  • · Replies 17 ·
Replies
17
Views
6K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 9 ·
Replies
9
Views
12K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 3 ·
Replies
3
Views
5K
Replies
152
Views
8K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K