亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? distances.py

?? Turbo Decoder Release 0.3 * Double binary, DVB-RCS code * Soft Output Viterbi Algorithm * MyHDL c
?? PY
字號:
##########################################################################                                                              ########  distances.py                                                ########                                                              ########  This file is part of the turbo decoder IP core project      ########  http://www.opencores.org/projects/turbocodes/               ########                                                              ########  Author(s):                                                  ########      - David Brochart(dbrochart@opencores.org)               ########                                                              ########  All additional information is available in the README.txt   ########  file.                                                       ########                                                              ##############################################################################                                                              ######## Copyright (C) 2005 Authors                                   ########                                                              ######## This source file may be used and distributed without         ######## restriction provided that this copyright statement is not    ######## removed from the file and that any derivative work contains  ######## the original copyright notice and the associated disclaimer. ########                                                              ######## This source file is free software; you can redistribute it   ######## and/or modify it under the terms of the GNU Lesser General   ######## Public License as published by the Free Software Foundation; ######## either version 2.1 of the License, or (at your option) any   ######## later version.                                               ########                                                              ######## This source 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 Lesser General Public License for more  ######## details.                                                     ########                                                              ######## You should have received a copy of the GNU Lesser General    ######## Public License along with this source; if not, download it   ######## from http://www.opencores.org/lgpl.shtml                     ########                                                              ##########################################################################from misc import opposite, adder, registerfrom myhdl import Signal, intbv, always_comb, instancesdef partDistance(a, b, y1, y2, res, ref = intbv(0, 0, 8)):    """ Partial distance from (a, b, y1, y2) = ref.    ref             -- reference to compute the distance from    a, b, y1, y2    -- in  : decoder input signals, coded with n bits    res             -- out : partial distance signal, coded with (n + 2) bits    """    while 1:#    def partDistanceLogic():        if ref[2] == 0:            bSigned = b.val        else:            bSigned = -b.val        if ref[1] == 0:            y1Signed = y1.val        else:            y1Signed = -y1.val        if ref[0] == 0:            y2Signed = y2.val        else:            y2Signed = -y2.val        res.next = a.val + bSigned + y1Signed + y2Signed        yield a, b, y1, y2#    return always_comb(partDistanceLogic)def distance(partDist, z, dist, n = 4):    """ Distance computation.    n           -- number of bits for the coding of the decoder input signals    partDist    -- in  : sum of the decoder input signals    z           -- in  : extrinsic information    dist        -- out : distance    """    def distanceLogic():        dist.next = (4 * (2 ** (n - 1) - 1) + partDist.val) / 2 + z.val    return always_comb(distanceLogic)def distances(a, b, y1, y2, z, distance16, n = 4):    """ Computes the 16 distances from the decoder input signals.    n               -- number of bits for the coding of the decoder input signals    a, b, y1, y2    -- in  : decoder input signals, coded with n bits    z               -- in  : extrinsic information signals (x4), coded with m bits    distance16      -- out : distance signals (x16)    """    partDist = [Signal(intbv(0, -(2**(n+1)), 2**(n+1))) for i in range(16)]    opposite_i = [None for i in range(8)]    distance_i = [None for i in range(16)]    partDistance_i = [None for i in range(8)]    for i in range(8):        partDistance_i[i] = partDistance(a, b, y1, y2, partDist[i], intbv(i, 0, 8))    for i in range(8):        opposite_i[i] = opposite(partDist[i], partDist[15 - i])    for i in range(16):        distance_i[i] = distance(partDist[i], z[i / 4], distance16[i], n)    return instances()def reduction(org, chd, q = 8):    """ (Reduction: if anyone's q(th) bit is set, divide everyone by 2.)        Temporary test: when everyone's q(th) bit is set, reset everyone's q(th) bit.    q   -- accumulated distance width    org -- in  : original array of 8 q-bit accumulated distances    chd -- out : reduced array of 8 q-bit accumulated distances    """#    tmp = intbv(0, 0, 2**q)    while 1:#        msb = bool(0)        msb = bool(1)        for i in range(8):#            msb = msb or org[i].val[q-1]            msb = msb and org[i].val[q - 1]        for i in range(8):            chd[i].next[q-1:0] = org[i].val[q-1:0]            chd[i].next[q - 1] = (not msb) and org[i].val[q - 1]#            if msb == 1:#                tmp[q-1:0] = org[i].val[q:1]#            else:#                tmp = org[i].val#            chd[i].next = tmp        yield org[0], org[1], org[2], org[3], org[4], org[5], org[6], org[7]def accDist(clk, rst, accDistReg, dist, accDistNew, q = 8):    """ Accumulated distances.    q           -- in  : accumulated distance width    clk, rst    -- in  : clock and negative reset    accDistReg  -- in  : original array of 8 q-bit accumulated distance registers    dist        -- in  : array of 16 distances    accDistNew  -- out : array of 32 (q+1)-bit accumulated distances    """    adder_i     = [None for i in range(32)]    register_i  = [None for i in range(8)]    accDistOld  = [Signal(intbv(0, 0, 2**q)) for i in range(8)]    accDistRed  = [Signal(intbv(0, 0, 2**q)) for i in range(8)]    accDistRegSorted    = [Signal(intbv(0, 0, 2**q)) for i in range(8)]    accDistRegDelta     = [Signal(intbv(0, 0, 2**q)) for i in range(8)]    distIndex   = [0, 7, 11, 12,   0, 7, 11, 12,   2, 5, 9, 14,   2, 5, 9, 14,    3, 4, 8, 15,   3, 4, 8, 15,   1, 6, 10, 13,   1, 6, 10, 13]    for i in range(32):        adder_i[i] = adder(accDistOld[i/4], dist[distIndex[i]], accDistNew[i])    reduction_i0 = reduction(accDistReg, accDistRed, q)    for i in range(8):        register_i[i] = register(clk, rst, accDistRed[i], accDistOld[i])    return instances()

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
2023国产精品| 精品免费视频.| 国产美女视频一区| 久久精品国产一区二区三| 免费成人深夜小野草| 免费看欧美女人艹b| 久久激五月天综合精品| 韩国欧美一区二区| 国产精品中文字幕日韩精品 | 欧美日韩一区三区四区| 成人禁用看黄a在线| www.66久久| 欧美视频自拍偷拍| 欧美一区二区三区四区视频| 精品日韩在线一区| 国产精品视频免费| 一区二区三区四区中文字幕| 日韩精品一级中文字幕精品视频免费观看| 亚洲超丰满肉感bbw| 九九精品视频在线看| 高清不卡一区二区| 欧美视频你懂的| 欧美成人三级在线| 一区在线观看视频| 日欧美一区二区| 国产一级精品在线| 欧美性猛交xxxx乱大交退制版 | 久久五月婷婷丁香社区| 国产精品九色蝌蚪自拍| 丝袜美腿一区二区三区| 国产毛片精品国产一区二区三区| a4yy欧美一区二区三区| 欧美妇女性影城| 欧美激情一二三区| 男人操女人的视频在线观看欧美| 国产v综合v亚洲欧| 欧美一区二区在线看| 国产精品区一区二区三区| 亚洲超丰满肉感bbw| 成人av先锋影音| 91精品国产色综合久久不卡蜜臀 | 国产伦精品一区二区三区在线观看| 成人丝袜视频网| 日韩午夜激情电影| 亚洲最大成人综合| 成人在线综合网| 欧美剧情电影在线观看完整版免费励志电影| 日韩一区二区三区电影在线观看 | 一区二区三区在线不卡| 国产精品一品二品| 4438x亚洲最大成人网| 中文字幕一区三区| 国产寡妇亲子伦一区二区| 欧美伊人久久久久久午夜久久久久| 久久久国产一区二区三区四区小说| 亚洲自拍偷拍九九九| 不卡av在线免费观看| 精品盗摄一区二区三区| 日韩av电影免费观看高清完整版在线观看 | 欧美国产国产综合| 日韩一区欧美二区| 欧美日韩精品福利| 亚洲精品乱码久久久久| 波多野结衣91| 成人免费一区二区三区视频| 国产a级毛片一区| 国产精品美女久久久久久| 国产一区二区三区美女| 欧美日韩久久不卡| 亚洲一区二区三区自拍| 91成人网在线| 一区二区三区四区激情| 色婷婷国产精品| 亚洲三级在线看| 日本韩国欧美三级| 亚洲乱码日产精品bd| 99re成人精品视频| 中文字幕一区二区三区精华液 | 91在线观看高清| 亚洲色图在线视频| 色天天综合色天天久久| 怡红院av一区二区三区| 欧美亚洲国产一区二区三区 | 国产女人aaa级久久久级| 国产精品综合二区| 成人免费一区二区三区在线观看| 99久久久无码国产精品| 亚洲一区在线看| 欧美一区二区三区免费视频| 另类小说色综合网站| 久久嫩草精品久久久精品| 风间由美一区二区三区在线观看 | 国产精品综合一区二区三区| 国产午夜精品一区二区三区视频 | 91国偷自产一区二区三区成为亚洲经典| 亚洲欧洲精品天堂一级| 欧美亚洲动漫精品| 麻豆精品久久久| 中文字幕免费不卡| 欧美午夜影院一区| 久久精品国产久精国产| 国产精品短视频| 欧美三级三级三级| 国产精品亚洲专一区二区三区 | 欧美日韩国产成人在线91| 美女视频网站久久| 国产精品乱码一区二三区小蝌蚪| 91久久国产综合久久| 精品在线观看视频| 亚洲欧美另类综合偷拍| 欧美一区二区三区思思人| 国产aⅴ精品一区二区三区色成熟| 亚洲乱码国产乱码精品精小说| 91精品国产麻豆| 97久久精品人人澡人人爽| 日韩精品电影一区亚洲| 18涩涩午夜精品.www| 欧美一二三在线| 菠萝蜜视频在线观看一区| 日本成人超碰在线观看| 国产精品福利av| 欧美一区二区三区在线看| 99亚偷拍自图区亚洲| 韩国成人福利片在线播放| 五月天婷婷综合| 中文欧美字幕免费| 欧美一区二区精品在线| 色婷婷激情久久| 成人在线视频首页| 免费看欧美美女黄的网站| 亚洲欧美一区二区不卡| 国产亚洲婷婷免费| 精品国精品自拍自在线| 欧美高清性hdvideosex| 欧洲人成人精品| 96av麻豆蜜桃一区二区| 懂色av一区二区三区蜜臀 | 欧美成人vps| 欧美日韩一区不卡| 在线观看日韩高清av| 不卡av免费在线观看| 粉嫩av一区二区三区粉嫩| 精品亚洲porn| 精品一区二区日韩| 久草热8精品视频在线观看| 午夜精品成人在线视频| 亚洲国产一区在线观看| 亚洲精品国久久99热| 亚洲免费在线电影| 亚洲伦理在线精品| 亚洲精品国产一区二区精华液 | 成人黄色a**站在线观看| 国产在线视频不卡二| 国内一区二区视频| 国产精品99久久久久久久女警 | 欧洲中文字幕精品| 91精品福利视频| 欧美在线看片a免费观看| 91久久一区二区| 欧美三级视频在线播放| 欧美日韩国产高清一区二区三区 | 精品少妇一区二区三区免费观看| 91精品国产综合久久福利| 日韩三级在线观看| 精品国产乱子伦一区| 国产欧美一区二区三区网站| 国产欧美一区二区精品忘忧草| 中文字幕第一页久久| 综合久久久久久久| 午夜精品福利一区二区三区av| 日韩高清电影一区| 成人午夜激情影院| 色哦色哦哦色天天综合| 欧美综合在线视频| 在线观看91av| 国产性做久久久久久| 亚洲欧美色图小说| 免费的成人av| 99精品视频在线免费观看| 欧美日韩国产精选| 久久亚洲一区二区三区四区| ...xxx性欧美| 日本视频免费一区| 成人听书哪个软件好| 欧美视频日韩视频在线观看| 久久久国产午夜精品| 一区二区三区不卡视频| 精彩视频一区二区三区| 色综合久久久久综合体| 欧美不卡在线视频| 亚洲人xxxx| 国产一区二区三区精品视频| 99精品在线观看视频| 日韩久久久久久| 一区二区三区免费| 国产一区二区0| 欧美肥妇free| 亚洲女人的天堂| 国产精品99久久久久久有的能看 | 日韩欧美国产高清|