FPGA Central - World's 1st FPGA / CPLD Portal

FPGA Central

World's 1st FPGA Portal

 

Go Back   FPGA Groups > NewsGroup > Verilog

Verilog comp.lang.verilog newsgroup / usenet

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-09-2004, 12:06 PM
kumar
Guest
 
Posts: n/a
Default Bit-Stuffing on parallel 8 bit data

Hi all,

Can bit-stuffing be done on a parallel incoming data? Is there any
flow/algorithm to implement it.

A black box gets 8-bits of parallel data with a max 1024 bytes is
given to which bit-stuffing logic has to be implemented and the
bit-stuffed parallel data is given out of the black box.
_________
| |
|parallel |
----->|bit-stuff|----> 8bit paralle data with bit stuffed
| |
|_________|


Bit stuffing is done for every 6 consecutive bits being one(logic
'1').
Can anybody throw some light to this.

Regards
Kumar
Reply With Quote
  #2 (permalink)  
Old 02-09-2004, 12:20 PM
Ronald Hecht
Guest
 
Posts: n/a
Default Re: Bit-Stuffing on parallel 8 bit data

Sounds to me like HDLC. You should consider to do the stuffing on the
serial data, before deserializing it.

kumar wrote:
> Hi all,
>
> Can bit-stuffing be done on a parallel incoming data? Is there any
> flow/algorithm to implement it.
>
> A black box gets 8-bits of parallel data with a max 1024 bytes is
> given to which bit-stuffing logic has to be implemented and the
> bit-stuffed parallel data is given out of the black box.
> _________
> | |
> |parallel |
> ----->|bit-stuff|----> 8bit paralle data with bit stuffed
> | |
> |_________|
>
>
> Bit stuffing is done for every 6 consecutive bits being one(logic
> '1').
> Can anybody throw some light to this.
>
> Regards
> Kumar


Reply With Quote
  #3 (permalink)  
Old 02-09-2004, 12:23 PM
Ronald Hecht
Guest
 
Posts: n/a
Default Re: Bit-Stuffing on parallel 8 bit data

Ups, my comment was for destuffing. When doing stuffing serialize data
and then do the stuffing. If this is for HDLC the stuffing should be the
last thing to do together with flag-insertion.

Ronald Hecht wrote:

> Sounds to me like HDLC. You should consider to do the stuffing on the
> serial data, before deserializing it.
>
> kumar wrote:
>
>> Hi all,
>> Can bit-stuffing be done on a parallel incoming data? Is there any
>> flow/algorithm to implement it.
>>
>> A black box gets 8-bits of parallel data with a max 1024 bytes is
>> given to which bit-stuffing logic has to be implemented and the
>> bit-stuffed parallel data is given out of the black box.
>> _________
>> | | |parallel |
>> ----->|bit-stuff|----> 8bit paralle data with bit stuffed
>> | | |_________|
>>
>>
>> Bit stuffing is done for every 6 consecutive bits being one(logic
>> '1').
>> Can anybody throw some light to this.
>> Regards
>> Kumar

>
>


Reply With Quote
  #4 (permalink)  
Old 02-11-2004, 07:28 AM
Gangatharan
Guest
 
Posts: n/a
Default Re: Bit-Stuffing on parallel 8 bit data

I do believe this is HDLC.
I had done this few years back.
I see it as set of demuxs and adders controlling the muxing. May need
pipelining depending on the clock speed.
Also need to consider the requirement for required increase of bandwidth in
the output due to insertion.
So you may need to study your overall system and indentify solution
appropriate to yours.
Hope I gave you some idea.
with regards
Gang
"kumar" <[email protected]> wrote in message
news:[email protected] om...
> Hi all,
>
> Can bit-stuffing be done on a parallel incoming data? Is there any
> flow/algorithm to implement it.
>
> A black box gets 8-bits of parallel data with a max 1024 bytes is
> given to which bit-stuffing logic has to be implemented and the
> bit-stuffed parallel data is given out of the black box.
> _________
> | |
> |parallel |
> ----->|bit-stuff|----> 8bit paralle data with bit stuffed
> | |
> |_________|
>
>
> Bit stuffing is done for every 6 consecutive bits being one(logic
> '1').
> Can anybody throw some light to this.
>
> Regards
> Kumar



Reply With Quote
  #5 (permalink)  
Old 02-11-2004, 07:30 AM
Gangatharan
Guest
 
Posts: n/a
Default Re: Bit-Stuffing on parallel 8 bit data

Read demux as MUX . Sorry for typo.

"Gangatharan" <[email protected]> wrote in message
news:c0ci1p$umk$[email protected]..
> I do believe this is HDLC.
> I had done this few years back.
> I see it as set of demuxs and adders controlling the muxing. May need
> pipelining depending on the clock speed.
> Also need to consider the requirement for required increase of bandwidth

in
> the output due to insertion.
> So you may need to study your overall system and indentify solution
> appropriate to yours.
> Hope I gave you some idea.
> with regards
> Gang
> "kumar" <[email protected]> wrote in message
> news:[email protected] om...
> > Hi all,
> >
> > Can bit-stuffing be done on a parallel incoming data? Is there any
> > flow/algorithm to implement it.
> >
> > A black box gets 8-bits of parallel data with a max 1024 bytes is
> > given to which bit-stuffing logic has to be implemented and the
> > bit-stuffed parallel data is given out of the black box.
> > _________
> > | |
> > |parallel |
> > ----->|bit-stuff|----> 8bit paralle data with bit stuffed
> > | |
> > |_________|
> >
> >
> > Bit stuffing is done for every 6 consecutive bits being one(logic
> > '1').
> > Can anybody throw some light to this.
> >
> > Regards
> > Kumar

>
>



Reply With Quote
  #6 (permalink)  
Old 02-12-2004, 08:32 AM
ALuPin
Guest
 
Posts: n/a
Default Re: Bit-Stuffing on parallel 8 bit data

Hi Kumar,

on which data rate are the incoming data arriving?
Which frequency do the data have when leaving the "black box" ?

Andre

[email protected] (kumar) wrote in message news:<[email protected] com>...
> Hi all,
>
> Can bit-stuffing be done on a parallel incoming data? Is there any
> flow/algorithm to implement it.
>
> A black box gets 8-bits of parallel data with a max 1024 bytes is
> given to which bit-stuffing logic has to be implemented and the
> bit-stuffed parallel data is given out of the black box.
> _________
> | |
> |parallel |
> ----->|bit-stuff|----> 8bit paralle data with bit stuffed
> | |
> |_________|
>
>
> Bit stuffing is done for every 6 consecutive bits being one(logic
> '1').
> Can anybody throw some light to this.
>
> Regards
> Kumar

Reply With Quote
  #7 (permalink)  
Old 02-13-2004, 11:02 AM
kumar
Guest
 
Posts: n/a
Default Re: Bit-Stuffing on parallel 8 bit data

Hi Andre,

Well the black box should work around 100MHz. Hope this is helpful.
But i am still worrying as to how can i do pipelining, since i have to
disable to the clock while bit stuffing is happening. It looks pretty
clear that for serial Bit-Stuffing the logic is well known.

What bugs is the possiblitiy of doing a parallel bit-stuffing? Is
there a way in which it can be implemented?


Well i went through the link specified earlier for this question,
which speaks about byte stuffing.

I would like to hear more inputs regarding the implementation.


Regards
Kumar








[email protected] (ALuPin) wrote in message news:<[email protected] com>...
> Hi Kumar,
>
> on which data rate are the incoming data arriving?
> Which frequency do the data have when leaving the "black box" ?
>
> Andre
>
> [email protected] (kumar) wrote in message news:<[email protected] com>...
> > Hi all,
> >
> > Can bit-stuffing be done on a parallel incoming data? Is there any
> > flow/algorithm to implement it.
> >
> > A black box gets 8-bits of parallel data with a max 1024 bytes is
> > given to which bit-stuffing logic has to be implemented and the
> > bit-stuffed parallel data is given out of the black box.
> > _________
> > | |
> > |parallel |
> > ----->|bit-stuff|----> 8bit paralle data with bit stuffed
> > | |
> > |_________|
> >
> >
> > Bit stuffing is done for every 6 consecutive bits being one(logic
> > '1').
> > Can anybody throw some light to this.
> >
> > Regards
> > Kumar

Reply With Quote
  #8 (permalink)  
Old 02-17-2004, 08:54 AM
Vikram
Guest
 
Posts: n/a
Default Re: Bit-Stuffing on parallel 8 bit data

See comments below.

-Vikram.

[email protected] (kumar) wrote in message news:<[email protected] com>...
> Hi Andre,
>
> Well the black box should work around 100MHz. Hope this is helpful.
> But i am still worrying as to how can i do pipelining, since i have to
> disable to the clock while bit stuffing is happening. It looks pretty
> clear that for serial Bit-Stuffing the logic is well known.


Assuming HDLC, worst-case bit stuffing can result in doubling of the
data width. So, one easy way to do this is to read 1 word every 2
clocks, so that no overflows occur.

> What bugs is the possiblitiy of doing a parallel bit-stuffing? Is
> there a way in which it can be implemented?
>
> Well i went through the link specified earlier for this question,
> which speaks about byte stuffing.
>


I think you should be able to do this by using byte-wide barrel
shifters.

> I would like to hear more inputs regarding the implementation.
>


--- <snip> ---
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:01 AM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright 2008 @ FPGA Central. All rights reserved