Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5953971
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T17:54:11+00:00 2026-05-22T17:54:11+00:00

I am trying to build a model to compare the input for a particular

  • 0

I am trying to build a model to compare the input for a particular bit pattern.

For example, if I have to check for input pattern 1110, I build a model with 3 delay elements get the input and Concatenate it and then use a comparator to compare with 14(Hex E).

Currently, I need to do a pattern matching for 128 bits. Going by previous instance, I can ideally build the similar model of using 127 Delay elements and compare Blocks.

But I would like to know if there is a optimal and “better” way to do it.

Looking forward to some suggestion in this regard.

If you are interested, here is the small model I built to extract 8 bits:
Extact 8 Bits

Concat 8 bits

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T17:54:12+00:00Added an answer on May 22, 2026 at 5:54 pm

    What you have described is a fine generic approach – it assumes nothing about the patterns you want to detect.

    You might be able to do something different if the pattern is (for example) a long string of 1s then 0s (create counters to count those lengths and flag a match if the counters reach the right values)

    I think you could make your diagram a little easier (maybe) if you created a block with the z^-1 and concat inside. Then when you pass in the input, you can delay it and concat it with the previous stage’s output (also passed in).

    As another aside, this is trivially described in VHDL as a shift register (one line of code) and a matcher (another line of code).

    You could build a similar thing in an m-code block (in a similar couple of lines), using persistent variables for registers, but if you want to instantiate more than one instance of the block you’re out-of-luck as the persistent storage is shared across them!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to build a database of urls(links). I have a Category model that
I am trying to build a nested model but I have a problem: In
I am trying to build a floorplan model in Canvas. Currently I have a
I am trying to build a program using model-view-controller. Specifically: I have a state
I am trying to build a mathematical model of the availability of a file
I've been trying to build my first rails app and have gotten stuck on
i am just trying to understand the deployment build model with asp.net i write
I'm trying to build an AJAX wrapper in CodeIgniter function admin_ajax () { $model
I am trying to (re)build a basic prediction model of the S&P 500 INDEX
I'm trying to build a mobile application on a client-server model where clients are

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.