- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hallo there,
I need some help or ideas, i have a data stream and one time in this stream i have a frame "80008000" the next frame is then a counter value, for example "00000008" and then again "normal" frames (for me not interesting how they look). Now when i found this "80008000" i have to read out the next frame (counter value) and then i have to fill in the stream on this location with "80008000" frames. I have to fill in this frame as often as the counter value shows. How can i do this? Should i take a fifo so that the frames which came after the counter value could be saved for the time i fill in the "80008000" frames? has anybody an idea how i can do this? thanksLink Copied
6 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yes, you either save the incoming frames while you are inserting... or use request signal to stop it...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
thanks,
one more question, how can i read out the frame after the "80008000" frame? I can search for "80008000" and then i want to read out the frame after that, how can i realize this in vhdl?- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
you can use shift register to detect any pattern:
e.g. assuming data_in = 8 bits, for x"80008000" use 32 bit shift register: on the clk edge: shift_reg <= shift_reg(23 downto 0) & data_in; if(shift_reg = x"80008000")then action... end if; take care with byte/shift orientaion(MSB isuses)- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- for what are you waiting? --- Quote End --- its a spam bot, you should give some negative reps and report the post as spam. :cool:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
thanks a lot:D
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
sorry for my irrelevant post
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page