Testbench for 8b/10b encoder verilog code ?

OP (Company: AJCE) #3924571
hey,

I've a verilog code for an 8b/10b encoder and decoder circuit used in 
usb 3.0 verilog implementation. Will someone tell me the logic of this 
code segment?

And if I could get the Testbench of this code it would have been more 
helpful.

I am currently running it on ALTERA Modelsim 6.6 stater edition. 
According to the compiler I could run the program without any errors But 
I couldn't get the waveform done.

Thanx in advance.
Attached files:
Moderator (Company: Titel) #4525304
Priyanga M. wrote:
> i want Testbench for 8b/10b encoder verilog code ?
Is this homework?
In real life it ist that way: you eat in a restaurant and then you pay 
for it. How much would you pay here to those doing your work?

Lets try it the other way: YOU start with something. And when a specific 
problem occurs, THEN you ask a question how to solve that problem. And 
then maybe one spends his leisure time to HELP you. Got it?
Guest #4900383
for input 8'b00011011,KI=1'b0 iam getting o/p==10'b1101110011 and for 
i/p=8'b10101110, KI=1'b0 o/p=10'b1011011101.

the o/p is having running disparity=+4 but the running disparity should 
be +2 or -2 or 0.
Attached files:

Reply

A question of your own? This thread is over 11 years old. Ask it in a thread of its own – more people read along there, and it gets answered more often and sooner.

Start a new thread

A fix, an addition or feedback on this thread? Then reply here.

Formatting
  • [c]C-Code[/c]
  • [vhdl]VHDL-Code[/vhdl]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.