Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Help with simulation of Line Coding in Simulink

Status
Not open for further replies.

GhS

Newbie level 4
Joined
May 31, 2009
Messages
6
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,321
Line Coding in Simulink

Does anyone have tutorials or files for different line codes in Simulink?

I need to simulate Bipolar, Duobinary, HDB3, polar, unipolar and Bipolar line codes…anyone can help?
 

Re: Line Coding in Simulink

For line codes, the easiest way I found is to use the Repeating Sequence Stair block form "Sources".

The parameters you'd need to provide are :
1. a vector of the output values.
2. sampling time (== level time)

The problem with this is that you can't determine different pulse widths, so a square wave generated this way will always have a 50% duty cycle (maybe there's a workaround but I don't know of any ..)

So for a bipolar RZ signal your output vector would be something like this :

[-1 0 1 0]'

EDIT :
For variable pulse width, you could do the following :
Say you want a 75% duty cycle unipolar square wave, with unity period,
output vector : [0 1 1 1]'
sampling time : 0.25
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top