OpenCores
URL https://opencores.org/ocsvn/line_codes/line_codes/trunk

Subversion Repositories line_codes

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 7 to Rev 8
    Reverse comparison

Rev 7 → Rev 8

/trunk/LICENSE.txt File deleted
/trunk/doc/src/circ-hdb1_enc-q1.png Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream
trunk/doc/src/circ-hdb1_enc-q1.png Property changes : Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Index: trunk/doc/src/circ-hdb1_enc-q2.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/doc/src/circ-hdb1_enc-q2.png =================================================================== --- trunk/doc/src/circ-hdb1_enc-q2.png (revision 7) +++ trunk/doc/src/circ-hdb1_enc-q2.png (nonexistent)
trunk/doc/src/circ-hdb1_enc-q2.png Property changes : Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Index: trunk/doc/src/estados-hdb1_dec.dia =================================================================== --- trunk/doc/src/estados-hdb1_dec.dia (revision 7) +++ trunk/doc/src/estados-hdb1_dec.dia (nonexistent) @@ -1,18 +0,0 @@ -]rF}WP/کM*%Uyv Bl_ ـ@P[ s4gZ=O?fq>Q\ ^IL/}B:JDǫuWaF)LQ/b}e{x?@E e{͏$an0jϜ.% gίK0E.`Y m]J8ҰHkR G,/!Uj<-5Z.R\+.} -àJ~< ud{vgpA} h
trunk/doc/src/estados-hdb1_enc.png Property changes : Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Index: trunk/doc/src/estados-ami_enc.dia =================================================================== --- trunk/doc/src/estados-ami_enc.dia (revision 7) +++ trunk/doc/src/estados-ami_enc.dia (nonexistent) @@ -1,14 +0,0 @@ -[Ms8W&B4 ڭVM2\o8vcWOjw~j"ަY {6'0~O7'yDO.z-3')l_Ezͅ=701qʻ&pȭ#36ME34q7)J)8Ch4M9҆/F)+ 31-ߊgI,{1,B*ho -$}Dg _HVu5޳"'ASvRH:}XĐ0ץdFP]{B,L*VX5H7EL@+I9J -12N4$Z -4s9mJ -Ej)iUv.޿=iDU v2djT*rhܭW:GhiJZTVeI! < )vmksl*h6<&ݘO@OmS8’n-٣ dH(ia]}O#6ʲlŹB(p -TH5? ]wۛUqI󞤎d_Q$EMAD!^n]??A2U -"FCp -D&mjcsdGVYH1C( ׎Zfc#5> U -ZGu8~~ۯUa'ޔV4XU8uvF \ No newline at end of file Index: trunk/doc/src/circ-hdb1_dec.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/doc/src/circ-hdb1_dec.png =================================================================== --- trunk/doc/src/circ-hdb1_dec.png (revision 7) +++ trunk/doc/src/circ-hdb1_dec.png (nonexistent)
trunk/doc/src/circ-hdb1_dec.png Property changes : Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Index: trunk/doc/src/circ-ami_dec.dia =================================================================== --- trunk/doc/src/circ-ami_dec.dia (revision 7) +++ trunk/doc/src/circ-ami_dec.dia (nonexistent) @@ -1,10 +0,0 @@ -ZMoHW rʹif2hHRfVtpvaV7րHrͧϯ3i<4I<41LǓ$q445??| -Qf|#М*58 ̘JR$e|/ -h`>ƺ)WR/7b6Cs&?4YġYXvD&м}sPl{">N9ڂ#ڸv6O2&j92iٔVomWBAԌq 7Hmې 7;>~p¥h*eBmCDr*]8لIخNI(Y!>m>Q*EL*/Ydb,yE:s}l(5rǗh!B٦Mii6ؗݡ).Uu!ْGAN$(q):kH*#Dbb|0逖CC󫵙j<o+=d!(-Mq 8|1|? yԷۡrgI۽A(lǷRu)T5lF}Y[>Lb^U{Hj$<b>"&/6{qt2 -Ŭ1[*V[ώʟ4I?I\8$L2X\,I:AB_ 5OOcrF09RH{8\ۻ=i pdz-YxĘGtJ$/Ӎ8=Zc".hwD?O\mfbH -iӵVl:7*; -;&IC׍'6r bqf4+'\Kt -z@6wm6 m`Z -%wרU7-<ϻ ù_"S߿Yu.FM -9UnAr^1H8#;#!DbԵ5+#(SMsQD1oxu5,F -^{FV;D;+fSK@Ͽ{YgVww޻lAQt)! y}{zs-\-Cߥaoe"ݎH8g2+%gWzi m)o,ɫAF"{pqDž˖wŢ\$Y yYy+rqY^%9L}jyh)+Je~ݐhKv]\| -t9[fyZwټlav{?}s6T5.:T|?9vd_ ۹Ew' Ȉ)b?<*]`0c]5_x`ݤfƋ[_.j| aў=Mkl%L__BZSH_4'fiޒiV[!޳j4 żC>%Y̗Ѳ|,U}i9-9 w[[֑ٜp']sOmZ --J>KڶKaG! M@8* -d ?# -N@.Ы#Yv#8\;%Ȅ#w (F "U; +;GPX<=Fd3VRbwh&.b$eUc:KZs3 !|F0lB8"<"1$i Y0~o]/ðSdj~[/- Bw-Va"9'$r5 J EҾ2F6!(Ap2`J81}c[p[iG>%Y=0xoVkR` -H@LYcvp_gfK/~DC ԝ<1MGfLݏ"޵0CMq7uOn%+,<f3.~בvNq?xxn:6Hb2E), -H ͌!SR+7Rb2@v &/ "*FHcI32'Eq E/rk"c0h - -Z -HtdUM.UЩsJ6vVȸ>K'gq&'hòj!C a\%̤tdV'@G4Z_S#]fuiY -[ @؞Up¦ i[t^S"6j:hDK`"-"S"ݢTT;"f*jB`|Cv8B;@D$'DkjD*xQ@r:$t o(R=fzm%cTܲ[|.H l0lB>lF#eO)i׈0e) -4=djԁ G \x8ƕa~Md;zinE6zWgfDT -qb(u#opRU[.B/0Pσ^ SULr10ZƘ"1HQ9 B]㵰},:!ܷZo:F:tiP½k!mLpH28 1H§Ҩwyc.FM\a"~~ϓt] wJ_  \ No newline at end of file Index: trunk/doc/src/circ-ami_enc.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/doc/src/circ-ami_enc.png =================================================================== --- trunk/doc/src/circ-ami_enc.png (revision 7) +++ trunk/doc/src/circ-ami_enc.png (nonexistent)
trunk/doc/src/circ-ami_enc.png Property changes : Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Index: trunk/doc/src/circ-hdb1_enc-q1.dia =================================================================== --- trunk/doc/src/circ-hdb1_enc-q1.dia (revision 7) +++ trunk/doc/src/circ-hdb1_enc-q1.dia (nonexistent) @@ -1,26 +0,0 @@ -][s6~ϯ( -;N{Lg;C[-Mz):ar !ŊDZ|pn]6/$oE//o|H{YwxG2]NoO>qWEY_dsE\qUCL.^7,!_LkMc]N~_Ӌ0[>^&e×}OaU -"cZjB/uQdIרUYLCj -CZUőg6 -/,aݒp)]TW=ݮzGOLWu4]}W -8𻟎e -ha%"ݗCHVGٶc۵ű+/,"r=b,΋dIgFNnVqOnGЮN0-/DR̈U{4\___q̒gH93?В,)|+M#ac_'`ͯHMmuL/lu[|j/F{l"%Na#Rbh -~=1+s7Sn܎|`p E^5!'4{ t -Ko{}L&dWg+M:@'\Ik{<aa< \e~4IpWcEi\G{IV|)$DP`B䕀j H#I-3 '] G@?Gpw6|"Ō#x(A3 NW~Vx&8f]j<:Mb -z*yrL1v0:f.,k1ϡ{e7Cc"ۢL _Tn'3,)'lL>_Æ]̸Oo -@ U C<&B"Ef>ֆ:)~x}(F -3Pgxt{oC+(A@Kj`>N]#й !XVWV^HLvT[irg[Φۛ62rCUUA{S9L7>er 6%TuA&m -%buq\h~ĘQ[/H5TPsIh &}lI|>Ђ/|Kx*Df8"/8T &sbCx*/PHph(!q/H @o Ϡ;s2nzܴsz@&X(^0%JL4EIX.{&Ll'ͲR (,߽.(r@ȣ͞M.x+ lL3lfyM:t JuDQt A ?zN9PlGFXJUqݻB2M36%٢[p4?;\ }dVϝ - -F7* s1cQҷ3@TМT!%lSwWflf3s-S-*U EW!!nԞ#e'Up$m~IWnsF')wa' pY .-z֞][=@c&#]gg@GNGhp%Р`@tA9asʞJ4JS\W^s"1z:D7Y ".a^,2ui΁Hp+*d/Bv0VkDHKhEME3!adco>}NF3 k2XK/pg}o/,=~H5"W3}tz],T!ۢXN/`4կ/4P"9JE|sF6XUn0?/oCn?|o+]c88?FFeM{`vI*|g^fCO} -DEzA&"R -ñmqN͟^yfF*BЗ"PU C -GR -?n@vjr[^/RnFn$w^}Y7z/P -|wR_32oaH&YnYѦ*7]ۉNu -ዝr %:EZ~sy2Py"Zj}/<@vx˙.P9&pWM# YlBrUh?G\_!&!ή(&}YQPUEbQ9 D=VsWDž< -,^75Zx!_}ޏA=I_/ }9l967 64^81U2GXdtWSY[+)$A@!%[ HjpTvoҿ[,}RWRLIw -Vxaae -vaE-]:*x NHs2 #d|י'ڤ;Ћ#-}ށઊw7dN@OI< 01 !&W7 -梚#Jx0Ni0N@ #R.`,amT74 4 j[Q670@J0@^I_ƾ˜b48ʑiY3 +e@&e/_roC;K也ȾX_Jr l 6,)QDa 19%Fju9&3Y2ja]LOI|PaY_J3R¡_{]1 -Aͨ"o*0 O JUy|G[BHH2^Eۿ;iajwQ,'߁*'#G 9tE -XmY>9 ?toJs{vo"2eKD,#; 6WbCDc"ct&jȽ3&A҄QM'lPØ0pGn(S2q1O"'*Ms Fl.Sy>\>7~M<J`1O;m@USX^6'r d:nۧekGh %-!iv1H;v"4  Q7r$۸D-dD<ϙOxOgtOB<R=Ov'q:42)J[@5lyLDy}7\ߣp)E%{~Ym٪ q< \ No newline at end of file Index: trunk/doc/src/estados-hdb1_enc.dia =================================================================== --- trunk/doc/src/estados-hdb1_enc.dia (revision 7) +++ trunk/doc/src/estados-hdb1_enc.dia (nonexistent) @@ -1,22 +0,0 @@ -]Ms6W4ǵa|D&av=h#s#S.s߾ 2)K"!2qYn|!-"3Bǣ4^L|v1ϯ?>|?͒߬HnG|]o/_2)gd/ϓs|d4z4)|~7)"/QܦYϧ|Qg͜jgMw,*)ۥ黴Xmn%-_\S_7jV#mR̲x6Apb90i3~kدlyy("ʷ&yղOwNuЋYY.޹|Im=wVdꊖVdkUl]Ӧi~hZkMU}6M5--ԗWTo71OӢnt{ky WM˺I>Ml|݁{?zdӋ맴/hc[%E"|oy CS&Rt^^/mdW O o{Dh%:غIMn zެ~M/pj\rDSKW^\-VӖt -l2>''ɗѲ|Dި>s:H:yɍ6@K_d7)vZdAv3,M4Vk;xϷ!]/eƻ2:Y.z1ouy~HBz& 0~L@IDާň ~x:np{AmQ nJQJL8Y#h4Frj >Է,ڱW& X܄'O-!@fX , -`hlDeTaQBWS@#֫ >@gĘ*صcQ+8 *,4~ՠ!(VAy*רVFTF -2)ӄJx14+gӵ將FIf{DQ`v Tu#+] ;[b#44S]A,FP!0/r -K{aƺFs -WRx3#6, 6q0i 46SY. 0Vr*ؑ5@`VDQku -ʄE#0̃MkL -+51e .m8PY\Zs/2hvy#^D|EQֹ G -ˀd.,88d 4|I/?\qߢ؂˨Ǭ&=\d/#Rjs -ɚM$Bu(2ͧ3v v!fKu.ggXv?BC|zK;yצ/@BJTW|ϲ"\%T: ./fw tyJ|Clrk(rRp.:x:~5l=/hH)&ŝ{tLdcoK\`grɝ0jx]Aty6orq+dX%Fw82\3G -,kII!MwJ:`}^YuR1AJK\a~s/$qN]ڝ먶I[m4\`޿bg5_S M=@8 ɭ"C~~gdmQfwk#4rBppj -b#Y- im~Yt9mPXuӄ:FK;%8ngy,_nŸ1RJ;A s ') :PQA=8#9F$v/mFb!aCh7 qp{!!Ef±)R0Fn"7uƔc0IܰX28 ~R6F>"u 0, -|MU&1R# -o -7=ʰSڊiHx@d$TU*4 =MgVg+l'=GսCA)ąsy2|MD@VjPb *Tt FfFQa&`XPiaLJٖnn,% +fo1]\s4U옖D%*ST$Q@TvmJbT1*^T"X?kvC}LJ}~abWhoou@4b5v Hu1?G O߬C5dJfDj¥[S__n\w -VyATZ3,%b-4-2aMEvUt?Mց'1utȩ'Ca3$8@iLsB9-XiKPрsɐ3ڍi=#5 -pFxAT -Ѹr -h1.*lL/eGIc޲Υ8#SN?$AR1H+c$2Hsk -O vvO_qrTBx[ᄦV1 9=Q$-no:R-~XӾ+[LvnvmG6ۖztAG8?2Q]ܗ)L=7 RXtr]{rǬ.S;#5 -:W)b.1Rۑxl՘ҟ(x"oa$!RZ`$2tqڧʰ;-S#3cZ|<~"xOU{ \ No newline at end of file Index: trunk/doc/src/circ-hdb1_dec.dia =================================================================== --- trunk/doc/src/circ-hdb1_dec.dia (revision 7) +++ trunk/doc/src/circ-hdb1_dec.dia (nonexistent) @@ -1,31 +0,0 @@ -]KSHpxc<+v"&bvg/s!vڢ,ɀmɖU*@P֧L~M>.Wb~6&Grqgg={gLnF|u6.OO~UR,(*=_ɩ:0=UR$IQ,"͓l|\1[.WR\K^2sd^,Kc2˥oeon̊;" -ׁTR++4}']yK7Uw Me]lAP)a -V\39y[>/\:],eE&XޥqVInMlZZ|Ίbq?'V۱+w̮/ -|ͮoWy@Wk -V<`RY0N۰ MFk'rd>Ynm9ilMb^!G,7WѪdUi%-);nwGd^=tOPgLw7%V[5*x,$DIiB؍0I&n?ԑ 3P$Tkx^ e~׮ϼ H!i7#յnG? -wa)dS"7Xoڍ|VAySCC6"`@w͢y T@u#jSG=<=^,=0*)<!7y -dW$qEC2hd%)iN`ǒ'ppM›$RB`2䣈t)-9%C #Ȉ'&d4@2dD5ZxC"M zg\ƍRa#7 -,ݥ|y#Ą#ɴYPLD!$!^=)Ş3c+b<TK4}iT؀oTfB%(@Y&U pP)Ap I#F&m'bl -_"ϘИ'K -mDL -+n<_9:Y'*kvvJ]~ޫRXdtm-YG?5%{{nE -c{爪T ->9P""Kj$@kH`+nҳN KC-;}deeuHϞv~NA~X.#6W#hδ$kTFh5:8tVQzQ]Q/Όc\8?JN5,9~8J@# -LLjv!Ų\M+vRXXE$;s5RftXE-gw:ƃN$RN6}HA >sQzQIOe@U_r*C S)Teʯ#8 R]X-)r#$ -^.zhÔRt'Hzxx졭9୏bee0Ek,pGY :pql7fz̿TLg &5A ̲68lcYI9#' -v0+=FcH(Y٬N)GAO*6UC% -Xz#ۙ'k׺'=,Z5(XJm-%ROAS2.2]G,Cv>>W~' gLn>~?Ux.v \ No newline at end of file Index: trunk/doc/src/estados-ami_dec.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/doc/src/estados-ami_dec.png =================================================================== --- trunk/doc/src/estados-ami_dec.png (revision 7) +++ trunk/doc/src/estados-ami_dec.png (nonexistent)
trunk/doc/src/estados-ami_dec.png Property changes : Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Index: trunk/doc/src/circ-ami_enc.dia =================================================================== --- trunk/doc/src/circ-ami_enc.dia (revision 7) +++ trunk/doc/src/circ-ami_enc.dia (nonexistent) @@ -1,21 +0,0 @@ -][oH~?y2d4{ӎ4HyMlv0D$'}_4c`)|×e8xUGCpGxDY}扷3~H@8aV0`;K=s8iL^RyK~8Γ% -sBnq2xǧ3++sdgoO~h?JO]>ǫ@"5;2J E?ҏ%cU]h-Hyhۄ!0cm -p…K. $M =q{Q&/~{ SB M䅫& -7vnΓ`vN$:L -,8PE2QhEZFT|x;0=CY2x9U$ 0lQσX-NJ$tqV{˲1V9e0x~\I8JБr4csϚf^2Ku"[D0%w1F"L[&xtv4UU0%`Tx00CP!X;U-nj,r"ݓYW$@[MH]Ga w}A^y #osw8 -jt -Vh^ҕVUUkvI ks|DaHNBl>8#!v $kOBP$tu$n<@%h ec,!e2oWc8> }mdo}; kq̬6q (I[F C@TKA,ukFJڹ{vEO=u٠#(~u90œ־̀ 0dQѺ񗤋L;㝊 Q,am le dmCGkx9뽤&riEtpxt`tqx=~[Q* e -Е*HrejZ`6FdDSѭ^PS -eMŌ~deTAP;V;rd~U# n<kGWEHdHT1@GFrZ&Q,7wX`;Y m֤ٔ+%<0 -d=6KT-5gFUt3 -4xoQ穏FR52tuJe֐jX%*A/~k-uQݮO|: eK%ۦDtTٶstԷWI_!ܴ~c䰱Z;Wo:* gӶr,iP(IA>#ۍ=S7@-TҝWV``4J]SkGSkOM -;0yiXa3q"iC#[?ڼy\feltZ~jR\$珶{,P$&2[-;a r6$g#u٨s6󾞍n^)7XHPd(~F{H]399|nbW -@$eh=ѪgG/iyeDqLTT0Sd?ZؿRO:4FuJ˜2k[]2 rdKUIug$_5#7Ç?{jw \ No newline at end of file Index: trunk/doc/src/circ-hdb1_enc-saidas.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/doc/src/circ-hdb1_enc-saidas.png =================================================================== --- trunk/doc/src/circ-hdb1_enc-saidas.png (revision 7) +++ trunk/doc/src/circ-hdb1_enc-saidas.png (nonexistent)
trunk/doc/src/circ-hdb1_enc-saidas.png Property changes : Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Index: trunk/doc/src/documentation.tex =================================================================== --- trunk/doc/src/documentation.tex (revision 7) +++ trunk/doc/src/documentation.tex (nonexistent) @@ -1,349 +0,0 @@ -\documentclass[11pt]{article} -\usepackage[utf8]{inputenc} -%\usepackage[brazil]{babel} -\usepackage{palatino} -\usepackage{fullpage} -\usepackage{hyperref} - -\usepackage{multicol} -\usepackage{graphicx} -\usepackage{float} -\usepackage{moreverb} -\usepackage{verbatim} - -\usepackage{multirow} - -\title{\textbf{AMI and HDB1 Line Codes - VHDL Implementation.}} -\author{Ribamar Santarosa, ribamar@gmail.com} -\date{Outubro/Novembro 2006.} - -\begin{document} -\maketitle - - -\begin{abstract} -Line codings are methods for coding digital data for making them -less susceptible to signal losses during transmission. This project -implements the AMI --- Alternate Mark Inverse --- and HDB1 --- High -Density Bipolar of order 1 codings. This file documents their -implementation. -\end{abstract} - -\section{Specification.} - - -\paragraph{AMI.} This coding takes a binary sequency into a -ternary sequency having the signals 0, +1, -1 by the following way: - -\begin{itemize} -\item Inputs of 1 are coded as +1 or -1 alternately. -\item Inputs of 0 are coded always as 0. -\end{itemize} - -Example: -\begin{verbatim} -Input - 1 0 1 0 1 1 0 0 0 1 0 1 1 0 0 1 0 1 0 0 0 1 1 1 -Output -+1 0 -1 0 +1 -1 0 0 0 +1 0 -1 +1 0 0 -1 0 +1 0 0 0 -1 +1 -1 -\end{verbatim} - -\paragraph{HDB1.} This coding takes a binary sequency into a -ternary sequency having the signals 0, +1, -1 by the following way: - -\begin{itemize} -\item Inputs of 1 are coded as either +1 or -1. -\item Paired inputs of 0 are coded as either +1+1 or -1-1. -\item Isolated inputs of 0, ie, inputs of 0 not followed by 1 which -weren't paired to another 0 (thus forming +1+1 or -1-1) are coded -as 0. -\item Outputs have always alternate signals. If the last output was --1 and the input is 00, the next output is coded as +1+1, if the -last output was -1-1 and the input is 1, the next output is +1. -\end{itemize} - -Example: -\begin{verbatim} -Input - 1 0 1 0 1 1 0 0 0 1 0 1 1 0 0 1 0 1 0 0 0 0 1 1 -Output -+1 0 -1 0 +1 -1 +1 +1 0 -1 0 +1 -1 +1 +1 -1 0 +1 -1 -1 +1 +1 -1 +1 -\end{verbatim} - - - -%\begin{multicols}{2} - -\section{AMI Encoder. } - -\begin{figure}[H] -\centering -\includegraphics[scale=0.35]{estados-ami_enc} -\caption[ ]{\label{estados-ami_enc} State Map. } -\end{figure} - -\begin{multicols}{2} -Truth Table: \\ - -\begin{tabular}{|c|c|cc|c|} -\hline -$q$ & $e$ & $S_0$ & $ S_1$ & $q^+$ \\ -\hline -0 & 0 & 0 & 0 & 0 \\ -0 & 1 & 1 & 0 & 1 \\ -\hline -1 & 0 & 0 & 0 & 1 \\ -1 & 1 & 0 & 1 & 0 \\ -\hline -\end{tabular} - -Karnaugh Map isn't necessary: \\ -$ S_0 = e \cdot q'$ \\ -$ S_1 = e \cdot q $ \\ -$ q^+ = e \oplus q$ \\ - -\end{multicols} - -%\hrule - -\section{AMI Decoder. } -\begin{multicols}{2} - - -\begin{figure}[H] -\centering -\includegraphics[scale=0.35]{estados-ami_dec} -\caption[ ]{\label{estados-ami_dec} State Map. } -\end{figure} - - -Truth Table: - -\begin{tabular}{|cc|c|} -\hline -$e_0$ & $e_1$ & $S$ \\ -\hline -0 & 0 & 0 \\ -0 & 1 & 1 \\ -1 & 0 & 1 \\ -1 & 1 & $X$ \\ -\hline -\end{tabular} - -\vspace{50pt} -Karnaugh Map isn't necessary: \\ -$ S = e_0 + e_1 $ \\ - -\end{multicols} -%\hrule - - -\section{HDB1 Encoder. } -\begin{figure}[H] -\centering -\includegraphics[scale=0.35]{estados-hdb1_enc} -\caption[ ]{\label{estados-hdb1_enc} State Map. } -\end{figure} - - -\begin{multicols}{2} - - -Truth Table: \\ - ~\\ -\begin{tabular}{|cccc|ccc|cc|} -\hline -$E$ & $q_0$ & $q_1$ & $q_2$ & $q_0^+$ & $q_1^+$ & $q_2^+$ & $S_0$ & $S_1$ \\ -\hline -$0$ & $0$ & $0$ & $0$ & $0$ & $0$ & $1$ & $1$ & $0$ \\ -$1$ & $0$ & $0$ & $0$ & $1$ & $1$ & $0$ & $1$ & $0$ \\ -\hline -$0$ & $0$ & $0$ & $1$ & $0$ & $1$ & $0$ & $0$ & $1$ \\ -$1$ & $0$ & $0$ & $1$ & $1$ & $1$ & $0$ & $0$ & $0$ \\ -\hline -$0$ & $0$ & $1$ & $0$ & $0$ & $1$ & $1$ & $0$ & $1$ \\ -$1$ & $0$ & $1$ & $0$ & $0$ & $0$ & $0$ & $0$ & $1$ \\ -\hline -$0$ & $0$ & $1$ & $1$ & $1$ & $0$ & $0$ & $1$ & $0$ \\ -$1$ & $0$ & $1$ & $1$ & $0$ & $0$ & $0$ & $0$ & $0$ \\ -\hline -$0$ & $1$ & $0$ & $0$ & $0$ & $0$ & $1$ & $1$ & $0$ \\ -$1$ & $1$ & $0$ & $0$ & $1$ & $1$ & $0$ & $1$ & $0$ \\ -\hline -$$X$$ & $1$ & $0$ & $1$ & $$X$$ & $$X$$ & $$X$$ & $$X$$ & $$X$$ \\ -\hline -$0$ & $1$ & $1$ & $0$ & $1$ & $1$ & $1$ & $0$ & $1$ \\ -$1$ & $1$ & $1$ & $0$ & $0$ & $0$ & $0$ & $0$ & $1$ \\ -\hline -$0$ & $1$ & $1$ & $1$ & $0$ & $0$ & $0$ & $1$ & $0$ \\ -$1$ & $1$ & $1$ & $1$ & $0$ & $0$ & $0$ & $0$ & $1$ \\ -\hline -\end{tabular} - -$q_0^+$: -\begin{tabular}{|cc|c|c|c|c|} -\hline -\multicolumn{6}{|c|}{$E q_0$ } \\ - & & \tiny{$00$} & \tiny{$01$} & \tiny{$11$} & \tiny{$10$} \\ - & \tiny{$00$} & & & 1 & 1 \\ -$q_1 q_2$ & \tiny{$01$} & & $X$ & $X$ & 1 \\ - & \tiny{$11$} & 1 & & & \\ - & \tiny{$10$} & & 1 & & \\ -\hline -\end{tabular} - -$q_0^+ = E . q_1' + E'.q_0'.q_1.q_2 + E'.q_0.q_1 . q_2' $ - -$q_1^+$: -\begin{tabular}{|cc|c|c|c|c|} -\hline -\multicolumn{6}{|c|}{$E q_0$ } \\ - & & \tiny{$00$} & \tiny{$01$} & \tiny{$11$} & \tiny{$10$} \\ - & \tiny{$00$} & & & 1 & 1 \\ -$q_1 q_2$ & \tiny{$01$} & 1 & $X$ & $X$ & 1 \\ - & \tiny{$11$} & & & & \\ - & \tiny{$10$} & 1 & 1 & & \\ -\hline -\end{tabular} - -$q_1^+ = E . q_1' + q_1'.q_2 + E'.q_1.q_2' $ - -$q_2^+$: -\begin{tabular}{|cc|c|c|c|c|} -\hline -\multicolumn{6}{|c|}{$E q_0$ } \\ - & & \tiny{$00$} & \tiny{$01$} & \tiny{$11$} & \tiny{$10$} \\ - & \tiny{$00$} & 1 & 1 & & \\ -$q_1 q_2$ & \tiny{$01$} & & $X$ & $X$ & \\ - & \tiny{$11$} & & & & \\ - & \tiny{$10$} & 1 & 1 & & \\ -\hline -\end{tabular} - -$q_2^+ = E'. q_2'$ - -$S_0$: -\begin{tabular}{|cc|c|c|c|c|} -\hline -\multicolumn{6}{|c|}{$E q_0$ } \\ - & & \tiny{$00$} & \tiny{$01$} & \tiny{$11$} & \tiny{$10$} \\ - & \tiny{$00$} & 1 & 1 & 1 & 1 \\ -$q_1 q_2$ & \tiny{$01$} & & $X$ & $X$ & \\ - & \tiny{$11$} & 1 & 1 & & \\ - & \tiny{$10$} & & & & \\ -\hline -\end{tabular} - -$S_0 = q_1'. q_2' + E'.q_1. q_2 $ - -$S_1$: -\begin{tabular}{|cc|c|c|c|c|} -\hline -\multicolumn{6}{|c|}{$E q_0$ } \\ - & & \tiny{$00$} & \tiny{$01$} & \tiny{$11$} & \tiny{$10$} \\ - & \tiny{$00$} & & & & \\ -$q_1 q_2$ & \tiny{$01$} & 1 & $X$ & $X$ & \\ - & \tiny{$11$} & & & & \\ - & \tiny{$10$} & 1 & 1 & 1 & 1 \\ -\hline -\end{tabular} - -$S_1 = q_1. q_2' + E'.q_1'. q_2 $ - - -\end{multicols} - -\vspace{10pt} -%\hrule - -\section{HDB1 Decoder. } - -\begin{figure}[H] -\centering -\includegraphics[scale=0.2665]{estados-hdb1_dec} -\caption[ ]{\label{estados-hdb1_dec} State Map. } -\end{figure} - - -\begin{multicols}{2} - -Truth Table: -\begin{tabular}{|cc|cc|cc|c|} -\hline -$e_1$ & $e_0$ & $q_1$ & $q_0$ & $q^+_0$ & $q^+_1$ & $S$ \\ -\hline -0 & 0 & 0 & 0 & 0 & 0 & 0 \\ -0 & 0 & 0 & 1 & 0 & 0 & 1 \\ -0 & 0 & 1 & 0 & 0 & 0 & 1 \\ -0 & 0 & 1 & 1 & $X$ & $X$ & $X$ \\ -\hline -0 & 1 & 0 & 0 & 0 & 1 & 0 \\ -0 & 1 & 0 & 1 & 0 & 0 & 0 \\ -0 & 1 & 1 & 0 & 0 & 1 & 1 \\ -0 & 1 & 1 & 1 & $X$ & $X$ & $X$ \\ -\hline -1 & 0 & 0 & 0 & 0 & 1 & 0 \\ -1 & 0 & 0 & 1 & 1 & 0 & 1 \\ -1 & 0 & 1 & 0 & 0 & 0 & 0 \\ -1 & 0 & 1 & 1 & $X$ & $X$ & $X$ \\ -\hline -1 & 1 & 0 & 0 & $X$ & $X$ & $X$ \\ -1 & 1 & 0 & 1 & $X$ & $X$ & $X$ \\ -1 & 1 & 1 & 0 & $X$ & $X$ & $X$ \\ -1 & 1 & 1 & 1 & $X$ & $X$ & $X$ \\ -\hline -\end{tabular} - -$q0$: -\begin{tabular}{|cc|c|c|c|c|} -\hline -\multicolumn{6}{|c|}{$q_1 q_0$ } \\ - & & \tiny{$00$} & \tiny{$01$} & \tiny{$11$} & \tiny{$10$} \\ - & \tiny{$00$} & & & $X$ & \\ -$e_0 e_1$ & \tiny{$01$} & & & $X$ & \\ - & \tiny{$11$} & $X$ & $X$ & $X$ & $X$ \\ - & \tiny{$10$} & & 1 & $X$ & \\ -\hline -\end{tabular} - -$q_0^+ = q_0'. e_0$ - -$q1$: -\begin{tabular}{|cc|c|c|c|c|} -\hline -\multicolumn{6}{|c|}{$q_1 q_0$ } \\ - & & \tiny{$00$} & \tiny{$01$} & \tiny{$11$} & \tiny{$10$} \\ - & \tiny{$00$} & & & $X$ & \\ -$e_0 e_1$ & \tiny{$01$} & 1 & & $X$ & 1 \\ - & \tiny{$11$} & $X$ & $X$ & $X$ & $X$ \\ - & \tiny{$10$} & 1 & & $X$ & \\ -\hline -\end{tabular} - - -$q_1^+ = q_1'. e_1$ - -$S$: -\begin{tabular}{|cc|c|c|c|c|} -\hline -\multicolumn{6}{|c|}{$q_1 q_0 $ } \\ - & & \tiny{$00$} & \tiny{$01$} & \tiny{$11$} & \tiny{$10$} \\ - & \tiny{$00$} & & 1 & $X$ & 1 \\ -$e_1 e_2$ & \tiny{$01$} & & & $X$ & 1 \\ - & \tiny{$11$} & $X$ & $X$ & $X$ & $X$ \\ - & \tiny{$10$} & & 1 & $X$ & \\ -\hline -\end{tabular} - -$ S = q_0. e_0' + q_1. e_1' $ - - -\vspace{10pt} - -\end{multicols} - -%\hrule - - -\end{document} - Index: trunk/doc/src/estados-hdb1_dec.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/doc/src/estados-hdb1_dec.png =================================================================== --- trunk/doc/src/estados-hdb1_dec.png (revision 7) +++ trunk/doc/src/estados-hdb1_dec.png (nonexistent)
trunk/doc/src/estados-hdb1_dec.png Property changes : Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Index: trunk/doc/src/estados-ami_dec.dia =================================================================== --- trunk/doc/src/estados-ami_dec.dia (revision 7) +++ trunk/doc/src/estados-ami_dec.dia (nonexistent) @@ -1,9 +0,0 @@ -ZM6ϯc<$l!ܒݜ]`\ {֗H0x.OrOj4,4"I8@$}퉙_>{~gz"JМJ9�pr'  x2붢KFgbh仟ċ3snqb,y84_n;~s_׻rK\Ev6@ռdRGݲ)ReϏ/cޥa㫪 r?8*6a X̅ԦhƷ o .HG8 drǡQ*'Pءa5k e|
trunk/doc/src/estados-ami_enc.png Property changes : Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Index: trunk/doc/src/circ-hdb1_enc-saidas.dia =================================================================== --- trunk/doc/src/circ-hdb1_enc-saidas.dia (revision 7) +++ trunk/doc/src/circ-hdb1_enc-saidas.dia (nonexistent) @@ -1,25 +0,0 @@ -][o~ϯWx:EѢپA[.-}o\ؒHgh `3͙3|wsZbu9EN'Xd_9ûY,jm~V_|:XK?M̮tJur,Vn('r^ԗغ΁k'L?/ -R\>-w/{w_3mR=\̦Zk_{wKOjV.)jG?= $X? -y&DžDž+DžWEYIVC^E&+Z8$C[UUq?%o]ݲhʗlQ^} -]sήU~.cGZ)KYa-amrSߵ`G;ȓǴ/1]%3OVtRפANoÏUZ$bk5}yL'r~DNi{F@@AHgp!%u<`wQJHZ7$ɹA(ih D<##~ǦmeM%80XUMHɧ. -%t8сsZe7nlyx(a C;n+ru6;iMv'ӭ#}t6BHJA0P`2bq 맢D* -@Ec/22D:8``&r@0L Q93 -: &L2":&Xf7~Y-Y e!'lbBfzE44OnrE}B4 #0C2ls 0C N} >eybrp rveWsHI6A\0.!JX&21T=tb28|W@bU*~J^>6⡭Q]uWVb[IƱնmPM&&d:a -6&O\7Ի.KS< w2/_ 7*emٔX SӷGe8,0iȧͧgʌBw?*%dFURr:n6M)@X//uxF5ϛ"DSHGBD*Gڃ{vwusv q"bԧ7-1c e͐+5. >}\l7E.tpu7>ևJa 2D#![ -\) ʕХ0^|0qkoC;kHB`=d:u4WvŮ7M޵8x;"d= ]a}}Dx_&G5׼QȋDtfxp-aZ -%IHq'4МH+BDLp0zƄPLYed2b(N&0fD%[oB1fj@*͘^|]1ssH %Sc`2Tj_b@C/I#})-=D -Mx1l` -60ŶSq`;):F<,A|4Ji=ԑP^0j6uJ~)!;[FSȺr"&s3t$תhP~3=ס !:v?n*:r2q?KN5?DU<#K%@[O`#FUm>v 3Q>8JPGaw:!%ls5'JMGn>|Gn1o}:J}WF 7+N4{f!kahʎE)2/eFY+7YЋBg(fFs$D5^y&k13#_ʙHEV@zBQ6Tw@rz *fLf}<&!(M1p! -qLPL -)#>(oĮVcFNL獜>|͔e$l2 y9CA"ž:f;K91P -q& y޹_e}xM \ No newline at end of file Index: trunk/doc/src/circ-ami_dec.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/doc/src/circ-ami_dec.png =================================================================== --- trunk/doc/src/circ-ami_dec.png (revision 7) +++ trunk/doc/src/circ-ami_dec.png (nonexistent)
trunk/doc/src/circ-ami_dec.png Property changes : Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Index: trunk/doc/src/circ-hdb1_enc-q0.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/doc/src/circ-hdb1_enc-q0.png =================================================================== --- trunk/doc/src/circ-hdb1_enc-q0.png (revision 7) +++ trunk/doc/src/circ-hdb1_enc-q0.png (nonexistent)
trunk/doc/src/circ-hdb1_enc-q0.png Property changes : Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Index: trunk/doc/RUNNING.txt =================================================================== --- trunk/doc/RUNNING.txt (revision 7) +++ trunk/doc/RUNNING.txt (nonexistent) @@ -1,95 +0,0 @@ - -Present in bench/vhdl are files showing simple usage examples of -the line codes examples. This files shows how to test them. - -these running simulation examples requires ghdl and gtkwave for -viewing vcd files. If you're going to use another VHDL simulator, -this can be useful: -ghdl -a file.vhd - means analyse: - http://ghdl.free.fr/ghdl/Analysis-command.html -ghdl -e file - mean elaborate: - http://ghdl.free.fr/ghdl/Elaboration-command.html -ghdl -r file or ./file - means run: - http://ghdl.free.fr/ghdl/Run-command.html - -cd bench/vhdl - -1. Simulating the AMI decoder. - -ghdl -a ../../rtl/vhdl/ami_dec.vhd -ghdl -a smlt_ami_dec.vhd -ghdl -e smlt_ami_dec -./smlt_ami_dec --vcd=ad.vcd -gtkwave ad.vcd -append the signals clk, e0, e1, s, clrb -clk -> clock signal. -e0 -> input signal #0. -e1 -> input signal #1. -s -> unique output signal -clrb -> bar clear signal. -choose the best fit zoom. - -cleaning: -rm *.o smlt_ami_dec work-obj93.cf ad.vcd - - -2. Simulating the AMI encoder. - -ghdl -a ../../rtl/vhdl/ami_enc.vhd -ghdl -a smlt_ami_enc.vhd -ghdl -e smlt_ami_enc -./smlt_ami_enc --vcd=ae.vcd -gtkwave ae.vcd -append the signals clk, e, s0, s1, clrb -clk -> clock signal. -e -> unique input signal -s0 -> output signal #0. -s1 -> output signal #1. -clrb -> bar clear signal. -choose the best fit zoom. - -cleaning: -rm *.o smlt_ami_enc work-obj93.cf ae.vcd - - -3. Simulating the HDB1 decoder. - -ghdl -a ../../rtl/vhdl/hdb1_dec.vhd -ghdl -a smlt_hdb1_dec.vhd -ghdl -e smlt_hdb1_dec -./smlt_hdb1_dec --vcd=h1d.vcd -gtkwave h1d.vcd -append the signals clk, e0, e1, s, clrb -clk -> clock signal. -e0 -> input signal #0. -e1 -> input signal #1. -s -> unique output signal -clrb -> bar clear signal. -choose the best fit zoom. - -cleaning: -rm *.o smlt_hdb1_dec work-obj93.cf h1d.vcd - -4. Simulating the HDB1 encoder. - -ghdl -a ../../rtl/vhdl/hdb1_enc.vhd -ghdl -a smlt_hdb1_enc.vhd -ghdl -e smlt_hdb1_enc -./smlt_hdb1_enc --vcd=h1e.vcd -gtkwave h1e.vcd -append the signals clk, e, s0, s1, clrb -clk -> clock signal. -e -> unique input signal -s0 -> output signal #0. -s1 -> output signal #1. -clrb -> bar clear signal. -choose the best fit zoom. - -cleaning: -rm *.o smlt_hdb1_enc work-obj93.cf h1e.vcd - - - Index: trunk/doc/documentation.pdf =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/doc/documentation.pdf =================================================================== --- trunk/doc/documentation.pdf (revision 7) +++ trunk/doc/documentation.pdf (nonexistent)
trunk/doc/documentation.pdf Property changes : Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Index: line_codes/trunk/LICENSE.txt =================================================================== --- line_codes/trunk/LICENSE.txt (nonexistent) +++ line_codes/trunk/LICENSE.txt (revision 8) @@ -0,0 +1,342 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc. + 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Library General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + , 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Library General +Public License instead of this License. + + Index: line_codes/trunk/doc/documentation.pdf =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: line_codes/trunk/doc/documentation.pdf =================================================================== --- line_codes/trunk/doc/documentation.pdf (nonexistent) +++ line_codes/trunk/doc/documentation.pdf (revision 8)
line_codes/trunk/doc/documentation.pdf Property changes : Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Index: line_codes/trunk/doc/src/documentation.tex =================================================================== --- line_codes/trunk/doc/src/documentation.tex (nonexistent) +++ line_codes/trunk/doc/src/documentation.tex (revision 8) @@ -0,0 +1,349 @@ +\documentclass[11pt]{article} +\usepackage[utf8]{inputenc} +%\usepackage[brazil]{babel} +\usepackage{palatino} +\usepackage{fullpage} +\usepackage{hyperref} + +\usepackage{multicol} +\usepackage{graphicx} +\usepackage{float} +\usepackage{moreverb} +\usepackage{verbatim} + +\usepackage{multirow} + +\title{\textbf{AMI and HDB1 Line Codes - VHDL Implementation.}} +\author{Ribamar Santarosa, ribamar@gmail.com} +\date{Outubro/Novembro 2006.} + +\begin{document} +\maketitle + + +\begin{abstract} +Line codings are methods for coding digital data for making them +less susceptible to signal losses during transmission. This project +implements the AMI --- Alternate Mark Inverse --- and HDB1 --- High +Density Bipolar of order 1 codings. This file documents their +implementation. +\end{abstract} + +\section{Specification.} + + +\paragraph{AMI.} This coding takes a binary sequency into a +ternary sequency having the signals 0, +1, -1 by the following way: + +\begin{itemize} +\item Inputs of 1 are coded as +1 or -1 alternately. +\item Inputs of 0 are coded always as 0. +\end{itemize} + +Example: +\begin{verbatim} +Input + 1 0 1 0 1 1 0 0 0 1 0 1 1 0 0 1 0 1 0 0 0 1 1 1 +Output ++1 0 -1 0 +1 -1 0 0 0 +1 0 -1 +1 0 0 -1 0 +1 0 0 0 -1 +1 -1 +\end{verbatim} + +\paragraph{HDB1.} This coding takes a binary sequency into a +ternary sequency having the signals 0, +1, -1 by the following way: + +\begin{itemize} +\item Inputs of 1 are coded as either +1 or -1. +\item Paired inputs of 0 are coded as either +1+1 or -1-1. +\item Isolated inputs of 0, ie, inputs of 0 not followed by 1 which +weren't paired to another 0 (thus forming +1+1 or -1-1) are coded +as 0. +\item Outputs have always alternate signals. If the last output was +-1 and the input is 00, the next output is coded as +1+1, if the +last output was -1-1 and the input is 1, the next output is +1. +\end{itemize} + +Example: +\begin{verbatim} +Input + 1 0 1 0 1 1 0 0 0 1 0 1 1 0 0 1 0 1 0 0 0 0 1 1 +Output ++1 0 -1 0 +1 -1 +1 +1 0 -1 0 +1 -1 +1 +1 -1 0 +1 -1 -1 +1 +1 -1 +1 +\end{verbatim} + + + +%\begin{multicols}{2} + +\section{AMI Encoder. } + +\begin{figure}[H] +\centering +\includegraphics[scale=0.35]{estados-ami_enc} +\caption[ ]{\label{estados-ami_enc} State Map. } +\end{figure} + +\begin{multicols}{2} +Truth Table: \\ + +\begin{tabular}{|c|c|cc|c|} +\hline +$q$ & $e$ & $S_0$ & $ S_1$ & $q^+$ \\ +\hline +0 & 0 & 0 & 0 & 0 \\ +0 & 1 & 1 & 0 & 1 \\ +\hline +1 & 0 & 0 & 0 & 1 \\ +1 & 1 & 0 & 1 & 0 \\ +\hline +\end{tabular} + +Karnaugh Map isn't necessary: \\ +$ S_0 = e \cdot q'$ \\ +$ S_1 = e \cdot q $ \\ +$ q^+ = e \oplus q$ \\ + +\end{multicols} + +%\hrule + +\section{AMI Decoder. } +\begin{multicols}{2} + + +\begin{figure}[H] +\centering +\includegraphics[scale=0.35]{estados-ami_dec} +\caption[ ]{\label{estados-ami_dec} State Map. } +\end{figure} + + +Truth Table: + +\begin{tabular}{|cc|c|} +\hline +$e_0$ & $e_1$ & $S$ \\ +\hline +0 & 0 & 0 \\ +0 & 1 & 1 \\ +1 & 0 & 1 \\ +1 & 1 & $X$ \\ +\hline +\end{tabular} + +\vspace{50pt} +Karnaugh Map isn't necessary: \\ +$ S = e_0 + e_1 $ \\ + +\end{multicols} +%\hrule + + +\section{HDB1 Encoder. } +\begin{figure}[H] +\centering +\includegraphics[scale=0.35]{estados-hdb1_enc} +\caption[ ]{\label{estados-hdb1_enc} State Map. } +\end{figure} + + +\begin{multicols}{2} + + +Truth Table: \\ + ~\\ +\begin{tabular}{|cccc|ccc|cc|} +\hline +$E$ & $q_0$ & $q_1$ & $q_2$ & $q_0^+$ & $q_1^+$ & $q_2^+$ & $S_0$ & $S_1$ \\ +\hline +$0$ & $0$ & $0$ & $0$ & $0$ & $0$ & $1$ & $1$ & $0$ \\ +$1$ & $0$ & $0$ & $0$ & $1$ & $1$ & $0$ & $1$ & $0$ \\ +\hline +$0$ & $0$ & $0$ & $1$ & $0$ & $1$ & $0$ & $0$ & $1$ \\ +$1$ & $0$ & $0$ & $1$ & $1$ & $1$ & $0$ & $0$ & $0$ \\ +\hline +$0$ & $0$ & $1$ & $0$ & $0$ & $1$ & $1$ & $0$ & $1$ \\ +$1$ & $0$ & $1$ & $0$ & $0$ & $0$ & $0$ & $0$ & $1$ \\ +\hline +$0$ & $0$ & $1$ & $1$ & $1$ & $0$ & $0$ & $1$ & $0$ \\ +$1$ & $0$ & $1$ & $1$ & $0$ & $0$ & $0$ & $0$ & $0$ \\ +\hline +$0$ & $1$ & $0$ & $0$ & $0$ & $0$ & $1$ & $1$ & $0$ \\ +$1$ & $1$ & $0$ & $0$ & $1$ & $1$ & $0$ & $1$ & $0$ \\ +\hline +$$X$$ & $1$ & $0$ & $1$ & $$X$$ & $$X$$ & $$X$$ & $$X$$ & $$X$$ \\ +\hline +$0$ & $1$ & $1$ & $0$ & $1$ & $1$ & $1$ & $0$ & $1$ \\ +$1$ & $1$ & $1$ & $0$ & $0$ & $0$ & $0$ & $0$ & $1$ \\ +\hline +$0$ & $1$ & $1$ & $1$ & $0$ & $0$ & $0$ & $1$ & $0$ \\ +$1$ & $1$ & $1$ & $1$ & $0$ & $0$ & $0$ & $0$ & $1$ \\ +\hline +\end{tabular} + +$q_0^+$: +\begin{tabular}{|cc|c|c|c|c|} +\hline +\multicolumn{6}{|c|}{$E q_0$ } \\ + & & \tiny{$00$} & \tiny{$01$} & \tiny{$11$} & \tiny{$10$} \\ + & \tiny{$00$} & & & 1 & 1 \\ +$q_1 q_2$ & \tiny{$01$} & & $X$ & $X$ & 1 \\ + & \tiny{$11$} & 1 & & & \\ + & \tiny{$10$} & & 1 & & \\ +\hline +\end{tabular} + +$q_0^+ = E . q_1' + E'.q_0'.q_1.q_2 + E'.q_0.q_1 . q_2' $ + +$q_1^+$: +\begin{tabular}{|cc|c|c|c|c|} +\hline +\multicolumn{6}{|c|}{$E q_0$ } \\ + & & \tiny{$00$} & \tiny{$01$} & \tiny{$11$} & \tiny{$10$} \\ + & \tiny{$00$} & & & 1 & 1 \\ +$q_1 q_2$ & \tiny{$01$} & 1 & $X$ & $X$ & 1 \\ + & \tiny{$11$} & & & & \\ + & \tiny{$10$} & 1 & 1 & & \\ +\hline +\end{tabular} + +$q_1^+ = E . q_1' + q_1'.q_2 + E'.q_1.q_2' $ + +$q_2^+$: +\begin{tabular}{|cc|c|c|c|c|} +\hline +\multicolumn{6}{|c|}{$E q_0$ } \\ + & & \tiny{$00$} & \tiny{$01$} & \tiny{$11$} & \tiny{$10$} \\ + & \tiny{$00$} & 1 & 1 & & \\ +$q_1 q_2$ & \tiny{$01$} & & $X$ & $X$ & \\ + & \tiny{$11$} & & & & \\ + & \tiny{$10$} & 1 & 1 & & \\ +\hline +\end{tabular} + +$q_2^+ = E'. q_2'$ + +$S_0$: +\begin{tabular}{|cc|c|c|c|c|} +\hline +\multicolumn{6}{|c|}{$E q_0$ } \\ + & & \tiny{$00$} & \tiny{$01$} & \tiny{$11$} & \tiny{$10$} \\ + & \tiny{$00$} & 1 & 1 & 1 & 1 \\ +$q_1 q_2$ & \tiny{$01$} & & $X$ & $X$ & \\ + & \tiny{$11$} & 1 & 1 & & \\ + & \tiny{$10$} & & & & \\ +\hline +\end{tabular} + +$S_0 = q_1'. q_2' + E'.q_1. q_2 $ + +$S_1$: +\begin{tabular}{|cc|c|c|c|c|} +\hline +\multicolumn{6}{|c|}{$E q_0$ } \\ + & & \tiny{$00$} & \tiny{$01$} & \tiny{$11$} & \tiny{$10$} \\ + & \tiny{$00$} & & & & \\ +$q_1 q_2$ & \tiny{$01$} & 1 & $X$ & $X$ & \\ + & \tiny{$11$} & & & & \\ + & \tiny{$10$} & 1 & 1 & 1 & 1 \\ +\hline +\end{tabular} + +$S_1 = q_1. q_2' + E'.q_1'. q_2 $ + + +\end{multicols} + +\vspace{10pt} +%\hrule + +\section{HDB1 Decoder. } + +\begin{figure}[H] +\centering +\includegraphics[scale=0.2665]{estados-hdb1_dec} +\caption[ ]{\label{estados-hdb1_dec} State Map. } +\end{figure} + + +\begin{multicols}{2} + +Truth Table: +\begin{tabular}{|cc|cc|cc|c|} +\hline +$e_1$ & $e_0$ & $q_1$ & $q_0$ & $q^+_0$ & $q^+_1$ & $S$ \\ +\hline +0 & 0 & 0 & 0 & 0 & 0 & 0 \\ +0 & 0 & 0 & 1 & 0 & 0 & 1 \\ +0 & 0 & 1 & 0 & 0 & 0 & 1 \\ +0 & 0 & 1 & 1 & $X$ & $X$ & $X$ \\ +\hline +0 & 1 & 0 & 0 & 0 & 1 & 0 \\ +0 & 1 & 0 & 1 & 0 & 0 & 0 \\ +0 & 1 & 1 & 0 & 0 & 1 & 1 \\ +0 & 1 & 1 & 1 & $X$ & $X$ & $X$ \\ +\hline +1 & 0 & 0 & 0 & 0 & 1 & 0 \\ +1 & 0 & 0 & 1 & 1 & 0 & 1 \\ +1 & 0 & 1 & 0 & 0 & 0 & 0 \\ +1 & 0 & 1 & 1 & $X$ & $X$ & $X$ \\ +\hline +1 & 1 & 0 & 0 & $X$ & $X$ & $X$ \\ +1 & 1 & 0 & 1 & $X$ & $X$ & $X$ \\ +1 & 1 & 1 & 0 & $X$ & $X$ & $X$ \\ +1 & 1 & 1 & 1 & $X$ & $X$ & $X$ \\ +\hline +\end{tabular} + +$q0$: +\begin{tabular}{|cc|c|c|c|c|} +\hline +\multicolumn{6}{|c|}{$q_1 q_0$ } \\ + & & \tiny{$00$} & \tiny{$01$} & \tiny{$11$} & \tiny{$10$} \\ + & \tiny{$00$} & & & $X$ & \\ +$e_0 e_1$ & \tiny{$01$} & & & $X$ & \\ + & \tiny{$11$} & $X$ & $X$ & $X$ & $X$ \\ + & \tiny{$10$} & & 1 & $X$ & \\ +\hline +\end{tabular} + +$q_0^+ = q_0'. e_0$ + +$q1$: +\begin{tabular}{|cc|c|c|c|c|} +\hline +\multicolumn{6}{|c|}{$q_1 q_0$ } \\ + & & \tiny{$00$} & \tiny{$01$} & \tiny{$11$} & \tiny{$10$} \\ + & \tiny{$00$} & & & $X$ & \\ +$e_0 e_1$ & \tiny{$01$} & 1 & & $X$ & 1 \\ + & \tiny{$11$} & $X$ & $X$ & $X$ & $X$ \\ + & \tiny{$10$} & 1 & & $X$ & \\ +\hline +\end{tabular} + + +$q_1^+ = q_1'. e_1$ + +$S$: +\begin{tabular}{|cc|c|c|c|c|} +\hline +\multicolumn{6}{|c|}{$q_1 q_0 $ } \\ + & & \tiny{$00$} & \tiny{$01$} & \tiny{$11$} & \tiny{$10$} \\ + & \tiny{$00$} & & 1 & $X$ & 1 \\ +$e_1 e_2$ & \tiny{$01$} & & & $X$ & 1 \\ + & \tiny{$11$} & $X$ & $X$ & $X$ & $X$ \\ + & \tiny{$10$} & & 1 & $X$ & \\ +\hline +\end{tabular} + +$ S = q_0. e_0' + q_1. e_1' $ + + +\vspace{10pt} + +\end{multicols} + +%\hrule + + +\end{document} + Index: line_codes/trunk/doc/src/circ-hdb1_enc-saidas.dia =================================================================== --- line_codes/trunk/doc/src/circ-hdb1_enc-saidas.dia (nonexistent) +++ line_codes/trunk/doc/src/circ-hdb1_enc-saidas.dia (revision 8) @@ -0,0 +1,25 @@ +][o~ϯWx:EѢپA[.-}o\ؒHgh `3͙3|wsZbu9EN'Xd_9ûY,jm~V_|:XK?M̮tJur,Vn('r^ԗغ΁k'L?/ +R\>-w/{w_3mR=\̦Zk_{wKOjV.)jG?= $X? +y&DžDž+DžWEYIVC^E&+Z8$C[UUq?%o]ݲhʗlQ^} +]sήU~.cGZ)KYa-amrSߵ`G;ȓǴ/1]%3OVtRפANoÏUZ$bk5}yL'r~DNi{F@@AHgp!%u<`wQJHZ7$ɹA(ih D<##~ǦmeM%80XUMHɧ. +%t8сsZe7nlyx(a C;n+ru6;iMv'ӭ#}t6BHJA0P`2bq 맢D* +@Ec/22D:8``&r@0L Q93 +: &L2":&Xf7~Y-Y e!'lbBfzE44OnrE}B4 #0C2ls 0C N} >eybrp rveWsHI6A\0.!JX&21T=tb28|W@bU*~J^>6⡭Q]uWVb[IƱնmPM&&d:a +6&O\7Ի.KS< w2/_ 7*emٔX SӷGe8,0iȧͧgʌBw?*%dFURr:n6M)@X//uxF5ϛ"DSHGBD*Gڃ{vwusv q"bԧ7-1c e͐+5. >}\l7E.tpu7>ևJa 2D#![ +\) ʕХ0^|0qkoC;kHB`=d:u4WvŮ7M޵8x;"d= ]a}}Dx_&G5׼QȋDtfxp-aZ +%IHq'4МH+BDLp0zƄPLYed2b(N&0fD%[oB1fj@*͘^|]1ssH %Sc`2Tj_b@C/I#})-=D +Mx1l` +60ŶSq`;):F<,A|4Ji=ԑP^0j6uJ~)!;[FSȺr"&s3t$תhP~3=ס !:v?n*:r2q?KN5?DU<#K%@[O`#FUm>v 3Q>8JPGaw:!%ls5'JMGn>|Gn1o}:J}WF 7+N4{f!kahʎE)2/eFY+7YЋBg(fFs$D5^y&k13#_ʙHEV@zBQ6Tw@rz *fLf}<&!(M1p! +qLPL +)#>(oĮVcFNL獜>|͔e$l2 y9CA"ž:f;K91P +q& y޹_e}xM \ No newline at end of file Index: line_codes/trunk/doc/src/circ-ami_dec.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: line_codes/trunk/doc/src/circ-ami_dec.png =================================================================== --- line_codes/trunk/doc/src/circ-ami_dec.png (nonexistent) +++ line_codes/trunk/doc/src/circ-ami_dec.png (revision 8)
line_codes/trunk/doc/src/circ-ami_dec.png Property changes : Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Index: line_codes/trunk/doc/src/circ-hdb1_enc-q0.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: line_codes/trunk/doc/src/circ-hdb1_enc-q0.png =================================================================== --- line_codes/trunk/doc/src/circ-hdb1_enc-q0.png (nonexistent) +++ line_codes/trunk/doc/src/circ-hdb1_enc-q0.png (revision 8)
line_codes/trunk/doc/src/circ-hdb1_enc-q0.png Property changes : Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Index: line_codes/trunk/doc/src/circ-hdb1_enc-q1.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: line_codes/trunk/doc/src/circ-hdb1_enc-q1.png =================================================================== --- line_codes/trunk/doc/src/circ-hdb1_enc-q1.png (nonexistent) +++ line_codes/trunk/doc/src/circ-hdb1_enc-q1.png (revision 8)
line_codes/trunk/doc/src/circ-hdb1_enc-q1.png Property changes : Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Index: line_codes/trunk/doc/src/circ-hdb1_enc-q2.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: line_codes/trunk/doc/src/circ-hdb1_enc-q2.png =================================================================== --- line_codes/trunk/doc/src/circ-hdb1_enc-q2.png (nonexistent) +++ line_codes/trunk/doc/src/circ-hdb1_enc-q2.png (revision 8)
line_codes/trunk/doc/src/circ-hdb1_enc-q2.png Property changes : Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Index: line_codes/trunk/doc/src/estados-hdb1_dec.dia =================================================================== --- line_codes/trunk/doc/src/estados-hdb1_dec.dia (nonexistent) +++ line_codes/trunk/doc/src/estados-hdb1_dec.dia (revision 8) @@ -0,0 +1,18 @@ +]rF}WP/کM*%Uyv Bl_ ـ@P[ s4gZ=O?fq>Q\ ^IL/}B:JDǫuWaF)LQ/b}e{x?@E e{͏$an0jϜ.% gίK0E.`Y m]J8ҰHkR G,/!Uj<-5Z.R\+.} +àJ~< ud{vgpA} h
line_codes/trunk/doc/src/estados-hdb1_enc.png Property changes : Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Index: line_codes/trunk/doc/src/estados-ami_enc.dia =================================================================== --- line_codes/trunk/doc/src/estados-ami_enc.dia (nonexistent) +++ line_codes/trunk/doc/src/estados-ami_enc.dia (revision 8) @@ -0,0 +1,14 @@ +[Ms8W&B4 ڭVM2\o8vcWOjw~j"ަY {6'0~O7'yDO.z-3')l_Ezͅ=701qʻ&pȭ#36ME34q7)J)8Ch4M9҆/F)+ 31-ߊgI,{1,B*ho +$}Dg _HVu5޳"'ASvRH:}XĐ0ץdFP]{B,L*VX5H7EL@+I9J +12N4$Z +4s9mJ +Ej)iUv.޿=iDU v2djT*rhܭW:GhiJZTVeI! < )vmksl*h6<&ݘO@OmS8’n-٣ dH(ia]}O#6ʲlŹB(p +TH5? ]wۛUqI󞤎d_Q$EMAD!^n]??A2U +"FCp +D&mjcsdGVYH1C( ׎Zfc#5> U +ZGu8~~ۯUa'ޔV4XU8uvF \ No newline at end of file Index: line_codes/trunk/doc/src/circ-hdb1_dec.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: line_codes/trunk/doc/src/circ-hdb1_dec.png =================================================================== --- line_codes/trunk/doc/src/circ-hdb1_dec.png (nonexistent) +++ line_codes/trunk/doc/src/circ-hdb1_dec.png (revision 8)
line_codes/trunk/doc/src/circ-hdb1_dec.png Property changes : Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Index: line_codes/trunk/doc/src/circ-ami_dec.dia =================================================================== --- line_codes/trunk/doc/src/circ-ami_dec.dia (nonexistent) +++ line_codes/trunk/doc/src/circ-ami_dec.dia (revision 8) @@ -0,0 +1,10 @@ +ZMoHW rʹif2hHRfVtpvaV7րHrͧϯ3i<4I<41LǓ$q445??| +Qf|#М*58 ̘JR$e|/ +h`>ƺ)WR/7b6Cs&?4YġYXvD&м}sPl{">N9ڂ#ڸv6O2&j92iٔVomWBAԌq 7Hmې 7;>~p¥h*eBmCDr*]8لIخNI(Y!>m>Q*EL*/Ydb,yE:s}l(5rǗh!B٦Mii6ؗݡ).Uu!ْGAN$(q):kH*#Dbb|0逖CC󫵙j<o+=d!(-Mq 8|1|? yԷۡrgI۽A(lǷRu)T5lF}Y[>Lb^U{Hj$<b>"&/6{qt2 +Ŭ1[*V[ώʟ4I?I\8$L2X\,I:AB_ 5OOcrF09RH{8\ۻ=i pdz-YxĘGtJ$/Ӎ8=Zc".hwD?O\mfbH -iӵVl:7*; +;&IC׍'6r bqf4+'\Kt +z@6wm6 m`Z +%wרU7-<ϻ ù_"S߿Yu.FM +9UnAr^1H8#;#!DbԵ5+#(SMsQD1oxu5,F +^{FV;D;+fSK@Ͽ{YgVww޻lAQt)! y}{zs-\-Cߥaoe"ݎH8g2+%gWzi m)o,ɫAF"{pqDž˖wŢ\$Y yYy+rqY^%9L}jyh)+Je~ݐhKv]\| +t9[fyZwټlav{?}s6T5.:T|?9vd_ ۹Ew' Ȉ)b?<*]`0c]5_x`ݤfƋ[_.j| aў=Mkl%L__BZSH_4'fiޒiV[!޳j4 żC>%Y̗Ѳ|,U}i9-9 w[[֑ٜp']sOmZ +-J>KڶKaG! M@8* +d ?# +N@.Ы#Yv#8\;%Ȅ#w (F "U; +;GPX<=Fd3VRbwh&.b$eUc:KZs3 !|F0lB8"<"1$i Y0~o]/ðSdj~[/- Bw-Va"9'$r5 J EҾ2F6!(Ap2`J81}c[p[iG>%Y=0xoVkR` +H@LYcvp_gfK/~DC ԝ<1MGfLݏ"޵0CMq7uOn%+,<f3.~בvNq?xxn:6Hb2E), +H ͌!SR+7Rb2@v &/ "*FHcI32'Eq E/rk"c0h + +Z +HtdUM.UЩsJ6vVȸ>K'gq&'hòj!C a\%̤tdV'@G4Z_S#]fuiY +[ @؞Up¦ i[t^S"6j:hDK`"-"S"ݢTT;"f*jB`|Cv8B;@D$'DkjD*xQ@r:$t o(R=fzm%cTܲ[|.H l0lB>lF#eO)i׈0e) +4=djԁ G \x8ƕa~Md;zinE6zWgfDT +qb(u#opRU[.B/0Pσ^ SULr10ZƘ"1HQ9 B]㵰},:!ܷZo:F:tiP½k!mLpH28 1H§Ҩwyc.FM\a"~~ϓt] wJ_  \ No newline at end of file Index: line_codes/trunk/doc/src/circ-ami_enc.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: line_codes/trunk/doc/src/circ-ami_enc.png =================================================================== --- line_codes/trunk/doc/src/circ-ami_enc.png (nonexistent) +++ line_codes/trunk/doc/src/circ-ami_enc.png (revision 8)
line_codes/trunk/doc/src/circ-ami_enc.png Property changes : Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Index: line_codes/trunk/doc/src/circ-hdb1_enc-q1.dia =================================================================== --- line_codes/trunk/doc/src/circ-hdb1_enc-q1.dia (nonexistent) +++ line_codes/trunk/doc/src/circ-hdb1_enc-q1.dia (revision 8) @@ -0,0 +1,26 @@ +][s6~ϯ( +;N{Lg;C[-Mz):ar !ŊDZ|pn]6/$oE//o|H{YwxG2]NoO>qWEY_dsE\qUCL.^7,!_LkMc]N~_Ӌ0[>^&e×}OaU +"cZjB/uQdIרUYLCj +CZUőg6 +/,aݒp)]TW=ݮzGOLWu4]}W +8𻟎e +ha%"ݗCHVGٶc۵ű+/,"r=b,΋dIgFNnVqOnGЮN0-/DR̈U{4\___q̒gH93?В,)|+M#ac_'`ͯHMmuL/lu[|j/F{l"%Na#Rbh +~=1+s7Sn܎|`p E^5!'4{ t +Ko{}L&dWg+M:@'\Ik{<aa< \e~4IpWcEi\G{IV|)$DP`B䕀j H#I-3 '] G@?Gpw6|"Ō#x(A3 NW~Vx&8f]j<:Mb +z*yrL1v0:f.,k1ϡ{e7Cc"ۢL _Tn'3,)'lL>_Æ]̸Oo +@ U C<&B"Ef>ֆ:)~x}(F +3Pgxt{oC+(A@Kj`>N]#й !XVWV^HLvT[irg[Φۛ62rCUUA{S9L7>er 6%TuA&m +%buq\h~ĘQ[/H5TPsIh &}lI|>Ђ/|Kx*Df8"/8T &sbCx*/PHph(!q/H @o Ϡ;s2nzܴsz@&X(^0%JL4EIX.{&Ll'ͲR (,߽.(r@ȣ͞M.x+ lL3lfyM:t JuDQt A ?zN9PlGFXJUqݻB2M36%٢[p4?;\ }dVϝ + +F7* s1cQҷ3@TМT!%lSwWflf3s-S-*U EW!!nԞ#e'Up$m~IWnsF')wa' pY .-z֞][=@c&#]gg@GNGhp%Р`@tA9asʞJ4JS\W^s"1z:D7Y ".a^,2ui΁Hp+*d/Bv0VkDHKhEME3!adco>}NF3 k2XK/pg}o/,=~H5"W3}tz],T!ۢXN/`4կ/4P"9JE|sF6XUn0?/oCn?|o+]c88?FFeM{`vI*|g^fCO} +DEzA&"R +ñmqN͟^yfF*BЗ"PU C +GR +?n@vjr[^/RnFn$w^}Y7z/P +|wR_32oaH&YnYѦ*7]ۉNu +ዝr %:EZ~sy2Py"Zj}/<@vx˙.P9&pWM# YlBrUh?G\_!&!ή(&}YQPUEbQ9 D=VsWDž< +,^75Zx!_}ޏA=I_/ }9l967 64^81U2GXdtWSY[+)$A@!%[ HjpTvoҿ[,}RWRLIw +Vxaae +vaE-]:*x NHs2 #d|י'ڤ;Ћ#-}ށઊw7dN@OI< 01 !&W7 +梚#Jx0Ni0N@ #R.`,amT74 4 j[Q670@J0@^I_ƾ˜b48ʑiY3 +e@&e/_roC;K也ȾX_Jr l 6,)QDa 19%Fju9&3Y2ja]LOI|PaY_J3R¡_{]1 +Aͨ"o*0 O JUy|G[BHH2^Eۿ;iajwQ,'߁*'#G 9tE +XmY>9 ?toJs{vo"2eKD,#; 6WbCDc"ct&jȽ3&A҄QM'lPØ0pGn(S2q1O"'*Ms Fl.Sy>\>7~M<J`1O;m@USX^6'r d:nۧekGh %-!iv1H;v"4  Q7r$۸D-dD<ϙOxOgtOB<R=Ov'q:42)J[@5lyLDy}7\ߣp)E%{~Ym٪ q< \ No newline at end of file Index: line_codes/trunk/doc/src/estados-hdb1_enc.dia =================================================================== --- line_codes/trunk/doc/src/estados-hdb1_enc.dia (nonexistent) +++ line_codes/trunk/doc/src/estados-hdb1_enc.dia (revision 8) @@ -0,0 +1,22 @@ +]Ms6W4ǵa|D&av=h#s#S.s߾ 2)K"!2qYn|!-"3Bǣ4^L|v1ϯ?>|?͒߬HnG|]o/_2)gd/ϓs|d4z4)|~7)"/QܦYϧ|Qg͜jgMw,*)ۥ黴Xmn%-_\S_7jV#mR̲x6Apb90i3~kدlyy("ʷ&yղOwNuЋYY.޹|Im=wVdꊖVdkUl]Ӧi~hZkMU}6M5--ԗWTo71OӢnt{ky WM˺I>Ml|݁{?zdӋ맴/hc[%E"|oy CS&Rt^^/mdW O o{Dh%:غIMn zެ~M/pj\rDSKW^\-VӖt +l2>''ɗѲ|Dި>s:H:yɍ6@K_d7)vZdAv3,M4Vk;xϷ!]/eƻ2:Y.z1ouy~HBz& 0~L@IDާň ~x:np{AmQ nJQJL8Y#h4Frj >Է,ڱW& X܄'O-!@fX , +`hlDeTaQBWS@#֫ >@gĘ*صcQ+8 *,4~ՠ!(VAy*רVFTF +2)ӄJx14+gӵ將FIf{DQ`v Tu#+] ;[b#44S]A,FP!0/r +K{aƺFs +WRx3#6, 6q0i 46SY. 0Vr*ؑ5@`VDQku +ʄE#0̃MkL ++51e .m8PY\Zs/2hvy#^D|EQֹ G +ˀd.,88d 4|I/?\qߢ؂˨Ǭ&=\d/#Rjs +ɚM$Bu(2ͧ3v v!fKu.ggXv?BC|zK;yצ/@BJTW|ϲ"\%T: ./fw tyJ|Clrk(rRp.:x:~5l=/hH)&ŝ{tLdcoK\`grɝ0jx]Aty6orq+dX%Fw82\3G +,kII!MwJ:`}^YuR1AJK\a~s/$qN]ڝ먶I[m4\`޿bg5_S M=@8 ɭ"C~~gdmQfwk#4rBppj +b#Y- im~Yt9mPXuӄ:FK;%8ngy,_nŸ1RJ;A s ') :PQA=8#9F$v/mFb!aCh7 qp{!!Ef±)R0Fn"7uƔc0IܰX28 ~R6F>"u 0, +|MU&1R# +o +7=ʰSڊiHx@d$TU*4 =MgVg+l'=GսCA)ąsy2|MD@VjPb *Tt FfFQa&`XPiaLJٖnn,% +fo1]\s4U옖D%*ST$Q@TvmJbT1*^T"X?kvC}LJ}~abWhoou@4b5v Hu1?G O߬C5dJfDj¥[S__n\w +VyATZ3,%b-4-2aMEvUt?Mց'1utȩ'Ca3$8@iLsB9-XiKPрsɐ3ڍi=#5 +pFxAT +Ѹr +h1.*lL/eGIc޲Υ8#SN?$AR1H+c$2Hsk +O vvO_qrTBx[ᄦV1 9=Q$-no:R-~XӾ+[LvnvmG6ۖztAG8?2Q]ܗ)L=7 RXtr]{rǬ.S;#5 +:W)b.1Rۑxl՘ҟ(x"oa$!RZ`$2tqڧʰ;-S#3cZ|<~"xOU{ \ No newline at end of file Index: line_codes/trunk/doc/src/circ-hdb1_dec.dia =================================================================== --- line_codes/trunk/doc/src/circ-hdb1_dec.dia (nonexistent) +++ line_codes/trunk/doc/src/circ-hdb1_dec.dia (revision 8) @@ -0,0 +1,31 @@ +]KSHpxc<+v"&bvg/s!vڢ,ɀmɖU*@P֧L~M>.Wb~6&Grqgg={gLnF|u6.OO~UR,(*=_ɩ:0=UR$IQ,"͓l|\1[.WR\K^2sd^,Kc2˥oeon̊;" +ׁTR++4}']yK7Uw Me]lAP)a +V\39y[>/\:],eE&XޥqVInMlZZ|Ίbq?'V۱+w̮/ +|ͮoWy@Wk -V<`RY0N۰ MFk'rd>Ynm9ilMb^!G,7WѪdUi%-);nwGd^=tOPgLw7%V[5*x,$DIiB؍0I&n?ԑ 3P$Tkx^ e~׮ϼ H!i7#յnG? +wa)dS"7Xoڍ|VAySCC6"`@w͢y T@u#jSG=<=^,=0*)<!7y +dW$qEC2hd%)iN`ǒ'ppM›$RB`2䣈t)-9%C #Ȉ'&d4@2dD5ZxC"M zg\ƍRa#7 +,ݥ|y#Ą#ɴYPLD!$!^=)Ş3c+b<TK4}iT؀oTfB%(@Y&U pP)Ap I#F&m'bl +_"ϘИ'K +mDL ++n<_9:Y'*kvvJ]~ޫRXdtm-YG?5%{{nE +c{爪T +>9P""Kj$@kH`+nҳN KC-;}deeuHϞv~NA~X.#6W#hδ$kTFh5:8tVQzQ]Q/Όc\8?JN5,9~8J@# +LLjv!Ų\M+vRXXE$;s5RftXE-gw:ƃN$RN6}HA >sQzQIOe@U_r*C S)Teʯ#8 R]X-)r#$ +^.zhÔRt'Hzxx졭9୏bee0Ek,pGY :pql7fz̿TLg &5A ̲68lcYI9#' +v0+=FcH(Y٬N)GAO*6UC% +Xz#ۙ'k׺'=,Z5(XJm-%ROAS2.2]G,Cv>>W~' gLn>~?Ux.v \ No newline at end of file Index: line_codes/trunk/doc/src/estados-ami_dec.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: line_codes/trunk/doc/src/estados-ami_dec.png =================================================================== --- line_codes/trunk/doc/src/estados-ami_dec.png (nonexistent) +++ line_codes/trunk/doc/src/estados-ami_dec.png (revision 8)
line_codes/trunk/doc/src/estados-ami_dec.png Property changes : Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Index: line_codes/trunk/doc/src/circ-ami_enc.dia =================================================================== --- line_codes/trunk/doc/src/circ-ami_enc.dia (nonexistent) +++ line_codes/trunk/doc/src/circ-ami_enc.dia (revision 8) @@ -0,0 +1,21 @@ +][oH~?y2d4{ӎ4HyMlv0D$'}_4c`)|×e8xUGCpGxDY}扷3~H@8aV0`;K=s8iL^RyK~8Γ% +sBnq2xǧ3++sdgoO~h?JO]>ǫ@"5;2J E?ҏ%cU]h-Hyhۄ!0cm +p…K. $M =q{Q&/~{ SB M䅫& +7vnΓ`vN$:L +,8PE2QhEZFT|x;0=CY2x9U$ 0lQσX-NJ$tqV{˲1V9e0x~\I8JБr4csϚf^2Ku"[D0%w1F"L[&xtv4UU0%`Tx00CP!X;U-nj,r"ݓYW$@[MH]Ga w}A^y #osw8 +jt +Vh^ҕVUUkvI ks|DaHNBl>8#!v $kOBP$tu$n<@%h ec,!e2oWc8> }mdo}; kq̬6q (I[F C@TKA,ukFJڹ{vEO=u٠#(~u90œ־̀ 0dQѺ񗤋L;㝊 Q,am le dmCGkx9뽤&riEtpxt`tqx=~[Q* e +Е*HrejZ`6FdDSѭ^PS +eMŌ~deTAP;V;rd~U# n<kGWEHdHT1@GFrZ&Q,7wX`;Y m֤ٔ+%<0 +d=6KT-5gFUt3 +4xoQ穏FR52tuJe֐jX%*A/~k-uQݮO|: eK%ۦDtTٶstԷWI_!ܴ~c䰱Z;Wo:* gӶr,iP(IA>#ۍ=S7@-TҝWV``4J]SkGSkOM +;0yiXa3q"iC#[?ڼy\feltZ~jR\$珶{,P$&2[-;a r6$g#u٨s6󾞍n^)7XHPd(~F{H]399|nbW +@$eh=ѪgG/iyeDqLTT0Sd?ZؿRO:4FuJ˜2k[]2 rdKUIug$_5#7Ç?{jw \ No newline at end of file Index: line_codes/trunk/doc/src/circ-hdb1_enc-saidas.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: line_codes/trunk/doc/src/circ-hdb1_enc-saidas.png =================================================================== --- line_codes/trunk/doc/src/circ-hdb1_enc-saidas.png (nonexistent) +++ line_codes/trunk/doc/src/circ-hdb1_enc-saidas.png (revision 8)
line_codes/trunk/doc/src/circ-hdb1_enc-saidas.png Property changes : Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Index: line_codes/trunk/doc/src/estados-hdb1_dec.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: line_codes/trunk/doc/src/estados-hdb1_dec.png =================================================================== --- line_codes/trunk/doc/src/estados-hdb1_dec.png (nonexistent) +++ line_codes/trunk/doc/src/estados-hdb1_dec.png (revision 8)
line_codes/trunk/doc/src/estados-hdb1_dec.png Property changes : Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Index: line_codes/trunk/doc/src/estados-ami_dec.dia =================================================================== --- line_codes/trunk/doc/src/estados-ami_dec.dia (nonexistent) +++ line_codes/trunk/doc/src/estados-ami_dec.dia (revision 8) @@ -0,0 +1,9 @@ +ZM6ϯc<$l!ܒݜ]`\ {֗H0x.OrOj4,4"I8@$}퉙_>{~gz"JМJ9�pr'  x2붢KFgbh仟ċ3snqb,y84_n;~s_׻rK\Ev6@ռdRGݲ)ReϏ/cޥa㫪 r?8*6a X̅ԦhƷ o .HG8 drǡQ*'Pءa5k e|
line_codes/trunk/doc/src/estados-ami_enc.png Property changes : Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Index: line_codes/trunk/doc/RUNNING.txt =================================================================== --- line_codes/trunk/doc/RUNNING.txt (nonexistent) +++ line_codes/trunk/doc/RUNNING.txt (revision 8) @@ -0,0 +1,95 @@ + +Present in bench/vhdl are files showing simple usage examples of +the line codes examples. This files shows how to test them. + +these running simulation examples requires ghdl and gtkwave for +viewing vcd files. If you're going to use another VHDL simulator, +this can be useful: +ghdl -a file.vhd + means analyse: + http://ghdl.free.fr/ghdl/Analysis-command.html +ghdl -e file + mean elaborate: + http://ghdl.free.fr/ghdl/Elaboration-command.html +ghdl -r file or ./file + means run: + http://ghdl.free.fr/ghdl/Run-command.html + +cd bench/vhdl + +1. Simulating the AMI decoder. + +ghdl -a ../../rtl/vhdl/ami_dec.vhd +ghdl -a smlt_ami_dec.vhd +ghdl -e smlt_ami_dec +./smlt_ami_dec --vcd=ad.vcd +gtkwave ad.vcd +append the signals clk, e0, e1, s, clrb +clk -> clock signal. +e0 -> input signal #0. +e1 -> input signal #1. +s -> unique output signal +clrb -> bar clear signal. +choose the best fit zoom. + +cleaning: +rm *.o smlt_ami_dec work-obj93.cf ad.vcd + + +2. Simulating the AMI encoder. + +ghdl -a ../../rtl/vhdl/ami_enc.vhd +ghdl -a smlt_ami_enc.vhd +ghdl -e smlt_ami_enc +./smlt_ami_enc --vcd=ae.vcd +gtkwave ae.vcd +append the signals clk, e, s0, s1, clrb +clk -> clock signal. +e -> unique input signal +s0 -> output signal #0. +s1 -> output signal #1. +clrb -> bar clear signal. +choose the best fit zoom. + +cleaning: +rm *.o smlt_ami_enc work-obj93.cf ae.vcd + + +3. Simulating the HDB1 decoder. + +ghdl -a ../../rtl/vhdl/hdb1_dec.vhd +ghdl -a smlt_hdb1_dec.vhd +ghdl -e smlt_hdb1_dec +./smlt_hdb1_dec --vcd=h1d.vcd +gtkwave h1d.vcd +append the signals clk, e0, e1, s, clrb +clk -> clock signal. +e0 -> input signal #0. +e1 -> input signal #1. +s -> unique output signal +clrb -> bar clear signal. +choose the best fit zoom. + +cleaning: +rm *.o smlt_hdb1_dec work-obj93.cf h1d.vcd + +4. Simulating the HDB1 encoder. + +ghdl -a ../../rtl/vhdl/hdb1_enc.vhd +ghdl -a smlt_hdb1_enc.vhd +ghdl -e smlt_hdb1_enc +./smlt_hdb1_enc --vcd=h1e.vcd +gtkwave h1e.vcd +append the signals clk, e, s0, s1, clrb +clk -> clock signal. +e -> unique input signal +s0 -> output signal #0. +s1 -> output signal #1. +clrb -> bar clear signal. +choose the best fit zoom. + +cleaning: +rm *.o smlt_hdb1_enc work-obj93.cf h1e.vcd + + + Index: line_codes/trunk/rtl/vhdl/ami_dec.vhd =================================================================== --- line_codes/trunk/rtl/vhdl/ami_dec.vhd (nonexistent) +++ line_codes/trunk/rtl/vhdl/ami_dec.vhd (revision 8) @@ -0,0 +1,20 @@ + +-- implementation of the AMI decoder. + +entity ami_dec is + port ( + clr_bar, + e0, e1 : in bit; -- inputs. + s : out bit -- output. + ); +end ami_dec; + +architecture behaviour of ami_dec is +begin + process (e0, e1, clr_bar) begin + if (clr_bar = '0')then + s <= '0'; + end if; + s <= e0 or e1; + end process; +end behaviour; Index: line_codes/trunk/rtl/vhdl/hdb1_enc.vhd =================================================================== --- line_codes/trunk/rtl/vhdl/hdb1_enc.vhd (nonexistent) +++ line_codes/trunk/rtl/vhdl/hdb1_enc.vhd (revision 8) @@ -0,0 +1,43 @@ + +-- implementation of the HDB1 encoder. + +entity hdb1_enc is + port ( + clr_bar, + clk : in bit; -- clock input. + e : in bit; -- input. + s0, s1 : out bit -- output. + ); +end hdb1_enc; + +architecture behaviour of hdb1_enc is + signal q0, q1, q2 : bit; -- 3 flipflops for 6 states. +begin + process (clk, clr_bar) begin + if clr_bar = '0' then + q0 <= '0'; + q1 <= '0'; + q2 <= '0'; + s0 <= '0'; + s1 <= '0'; + elsif clk'event and clk = '1' then + + q0 <= (e and (not q1)) + or ((not e) and (not q0) and q1 and q2 ) + or ((not e) and q0 and q1 and (not q2) ); + + q1 <= (e and (not q1)) + or ((not q1) and q2) + or ((not e) and q1 and (not q2)); + + q2 <= (not e) and (not q2); + + s0 <= ((not q1) and (not q2)) + or ((not e)and q1 and q2); + + s1 <= (q1 and (not q2)) + or ((not e) and (not q1) and q2); + + end if; + end process; +end behaviour; Index: line_codes/trunk/rtl/vhdl/hdb1_dec.vhd =================================================================== --- line_codes/trunk/rtl/vhdl/hdb1_dec.vhd (nonexistent) +++ line_codes/trunk/rtl/vhdl/hdb1_dec.vhd (revision 8) @@ -0,0 +1,26 @@ + +-- implementation of the HDB1 decoder. + +entity hdb1_dec is + port ( + clr_bar, + clk, e0, e1 : in bit; -- inputs. + s : out bit -- output. + ); +end hdb1_dec; + +architecture behaviour of hdb1_dec is + signal q0, q1: bit; -- two flipflops. +begin + process (clk, clr_bar) begin + if clr_bar = '0' then + q0 <= '0'; + q1 <= '0'; + s <= '0'; + elsif clk'event and clk = '1' then + s <= ( q0 and (not e0) ) or ( q1 and (not e1) ); + q0 <= (not q0) and e0; + q1 <= (not q1) and e1; + end if; + end process; +end behaviour; Index: line_codes/trunk/rtl/vhdl/ami_enc.vhd =================================================================== --- line_codes/trunk/rtl/vhdl/ami_enc.vhd (nonexistent) +++ line_codes/trunk/rtl/vhdl/ami_enc.vhd (revision 8) @@ -0,0 +1,27 @@ + +-- implementation of the AMI encoder. + +entity ami_enc is + port ( + clr_bar, + clk : in bit; -- clock input. + e : in bit; -- input. + s0, s1 : out bit -- output. + ); +end ami_enc; + +architecture behaviour of ami_enc is + signal q : bit; -- 1 flipflops for 2 states. +begin + process (clk, clr_bar) begin + if clr_bar = '0' then + q <= '0'; + s1 <= '0'; + s0 <= '0'; + elsif clk'event and clk = '1' then + q <= q xor e; + s1 <= q and e; + s0 <= e and (not q); + end if; + end process; +end behaviour; Index: line_codes/trunk/bench/vhdl/smlt_ami_dec.vhd =================================================================== --- line_codes/trunk/bench/vhdl/smlt_ami_dec.vhd (nonexistent) +++ line_codes/trunk/bench/vhdl/smlt_ami_dec.vhd (revision 8) @@ -0,0 +1,42 @@ +-- smlttion for AMI decoder. + +entity smlt_ami_dec is +end smlt_ami_dec; + +architecture behaviour of smlt_ami_dec is + --data type: + component ami_dec + port ( + clr_bar, + e0, e1: in bit; + s : out bit); + end component; + --binding: + for a: ami_dec use entity work.ami_dec; + + --declaring the signals present in this architecture: + signal CLK, S, E0, E1, clrb: bit; + signal input0, input1: bit_vector(0 to 26); + + begin --architecture. + a: ami_dec port map + ( clr_bar => clrb, e0 => E0, e1 => E1, s => S ); + + input0 <= "000100010000100100001000010"; + input1 <= "000001001000001000100000101"; + + process begin + clrb <= '1'; + for i in 0 to 26 loop + E0 <= input0(i); + E1 <= input1(i); + CLK <= '0'; + wait for 9 ns; + CLK <= '1'; + wait for 1 ns; + end loop; + wait; + end process; + + +end behaviour; Index: line_codes/trunk/bench/vhdl/smlt_hdb1_enc.vhd =================================================================== --- line_codes/trunk/bench/vhdl/smlt_hdb1_enc.vhd (nonexistent) +++ line_codes/trunk/bench/vhdl/smlt_hdb1_enc.vhd (revision 8) @@ -0,0 +1,43 @@ + +-- smlttion for HDB1 encoder. + +entity smlt_hdb1_enc is +end smlt_hdb1_enc; + +architecture behaviour of smlt_hdb1_enc is + --data type: + component hdb1_enc + port ( + clr_bar, + clk : in bit; + e : in bit; + s0, s1: out bit); + end component; + --binding: + for a: hdb1_enc use entity work.hdb1_enc; + + --declaring the signals present in this architecture: + signal CLK, E, S0, S1, clrb: bit; + signal inpute: bit_vector(0 to 24); + + begin --architecture. + a: hdb1_enc port map + ( clr_bar => clrb, clk => CLK, e => E, s0 => S0, + s1 => S1 ); + + inpute <= "0101011000101100101000011"; + + process begin + clrb <= '1'; + for i in 0 to 24 loop + E <= inpute(i); + CLK <= '0'; + wait for 9 ns; + CLK <= '1'; + wait for 1 ns; + end loop; + wait; + end process; + + +end behaviour; Index: line_codes/trunk/bench/vhdl/smlt_hdb1_dec.vhd =================================================================== --- line_codes/trunk/bench/vhdl/smlt_hdb1_dec.vhd (nonexistent) +++ line_codes/trunk/bench/vhdl/smlt_hdb1_dec.vhd (revision 8) @@ -0,0 +1,43 @@ +-- smlttion for HDB1 decoder. + +entity smlt_hdb1_dec is +end smlt_hdb1_dec; + +architecture behaviour of smlt_hdb1_dec is + --data type: + component hdb1_dec + port ( + clr_bar, + clk, e0, e1 : in bit; + s : out bit); + end component; + --binding: + for a: hdb1_dec use entity work.hdb1_dec; + + --declaring the signals present in this architecture: + signal CLK, S, E0, E1, clrb: bit; + signal input0, input1: bit_vector(0 to 24); + + begin --architecture. + a: hdb1_dec port map + ( clr_bar => clrb, clk=> CLK, e0 => E0, e1 => E1, + s => S ); + + input0 <= "0100010110001011001001101"; + input1 <= "0001001000100100100110010"; + + process begin + clrb <= '1'; + for i in 0 to 24 loop + E0 <= input0(i); + E1 <= input1(i); + CLK <= '0'; + wait for 9 ns; + CLK <= '1'; + wait for 1 ns; + end loop; + wait; + end process; + + +end behaviour; Index: line_codes/trunk/bench/vhdl/smlt_ami_enc.vhd =================================================================== --- line_codes/trunk/bench/vhdl/smlt_ami_enc.vhd (nonexistent) +++ line_codes/trunk/bench/vhdl/smlt_ami_enc.vhd (revision 8) @@ -0,0 +1,43 @@ + +-- smlttion for AMI encoder. + +entity smlt_ami_enc is +end smlt_ami_enc; + +architecture behaviour of smlt_ami_enc is + --data type: + component ami_enc + port ( + clr_bar, + clk : in bit; + e : in bit; + s0, s1: out bit); + end component; + --binding: + for a: ami_enc use entity work.ami_enc; + + --declaring the signals present in this architecture: + signal CLK, E, S0, S1, clrb: bit; + signal inpute: bit_vector(0 to 26); + + begin --architecture. + a: ami_enc port map + ( clr_bar => clrb, clk => CLK, e => E, s0 => S0, + s1 => S1 ); + + inpute <= "000101011000101100101000111"; + + process begin + clrb <= '1'; + for i in 0 to 26 loop + E <= inpute(i); + CLK <= '0'; + wait for 9 ns; + CLK <= '1'; + wait for 1 ns; + end loop; + wait; + end process; + + +end behaviour; Index: line_codes/trunk =================================================================== --- line_codes/trunk (nonexistent) +++ line_codes/trunk (revision 8)
line_codes/trunk Property changes : Added: svn:mergeinfo ## -0,0 +0,0 ## Index: line_codes/web_uploads =================================================================== --- line_codes/web_uploads (nonexistent) +++ line_codes/web_uploads (revision 8)
line_codes/web_uploads Property changes : Added: svn:mergeinfo ## -0,0 +0,0 ## Index: line_codes/branches =================================================================== --- line_codes/branches (nonexistent) +++ line_codes/branches (revision 8)
line_codes/branches Property changes : Added: svn:mergeinfo ## -0,0 +0,0 ## Index: line_codes/tags =================================================================== --- line_codes/tags (nonexistent) +++ line_codes/tags (revision 8)
line_codes/tags Property changes : Added: svn:mergeinfo ## -0,0 +0,0 ##

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.