新聞中心

        EEPW首頁(yè) > 電源與新能源 > 設(shè)計(jì)應(yīng)用 > 基于網(wǎng)絡(luò)編碼的多信源組播通信系統(tǒng),包括源代碼,原理圖等(四)

        基于網(wǎng)絡(luò)編碼的多信源組播通信系統(tǒng),包括源代碼,原理圖等(四)

        作者: 時(shí)間:2016-12-06 來(lái)源:網(wǎng)絡(luò) 收藏

        end

        本文引用地址:http://www.104case.com/article/201612/326827.htm

        else if((cam_lookup_reslt^~cam_lookup_reslt_pre)==3'b101) begin

        cmp_data = {pkt_need_src_gen,12'hfff};

        cmp_data_mask_2 = {12'h0,CMP_DATA_MASK};

        cmp_data_mask_0 = {12'h0,CMP_DATA_MASK};

        end else if((cam_lookup_reslt^~cam_lookup_reslt_pre)==3'b011) begin

        cmp_data = {pkt_need_src_gen,12'hfff};

        cmp_data_mask_1 = {12'h0,CMP_DATA_MASK};

        cmp_data_mask_0 = {12'h0,CMP_DATA_MASK};

        end

        else if((cam_lookup_reslt^~cam_lookup_reslt_pre)==3'b001) begin

        cmp_data = {pkt_need_src_gen,12'hfff};

        cmp_data_mask_0 = {12'h0,CMP_DATA_MASK};

        end

        else if((cam_lookup_reslt^~cam_lookup_reslt_pre)==3'b010) begin

        cmp_data = {pkt_need_src_gen,12'hfff};

        cmp_data_mask_1 = {12'h0,CMP_DATA_MASK};

        end

        else if((cam_lookup_reslt^~cam_lookup_reslt_pre)==3'b100) begin

        cmp_data = {pkt_need_src_gen,12'hfff};

        cmp_data_mask_2 = {12'h0,CMP_DATA_MASK};

        end

        state_next = LUP_DCOD_FACTOR1_SEC;

        end

        end

        LUP_DCOD_FACTOR1_SEC: begin

        state_next = GET_FACTOR1_RESLT;

        cam_lookup_reslt_next = {match_2,match_1,match_0};

        match_addr_temp_2_next = match_addr_2;

        match_addr_temp_1_next = match_addr_1;

        match_addr_temp_0_next = match_addr_0;

        if((cam_lookup_reslt^~cam_lookup_reslt_pre)==3'b110) begin

        cmp_data = {12'hfff,pkt_need_src_gen};

        cmp_data_mask_2 = {CMP_DATA_MASK,12'h0};

        cmp_data_mask_1 = {CMP_DATA_MASK,12'h0};

        end

        else if((cam_lookup_reslt^~cam_lookup_reslt_pre)==3'b101) begin

        cmp_data = {12'hfff,pkt_need_src_gen};

        cmp_data_mask_2 = {CMP_DATA_MASK,12'h0};

        cmp_data_mask_0 = {CMP_DATA_MASK,12'h0};

        end

        else if((cam_lookup_reslt^~cam_lookup_reslt_pre)==3'b011) begin

        cmp_data = {12'hfff,pkt_need_src_gen};

        cmp_data_mask_0 = {CMP_DATA_MASK,12'h0};

        cmp_data_mask_1 = {CMP_DATA_MASK,12'h0};

        end

        else if((cam_lookup_reslt^~cam_lookup_reslt_pre)==3'b001) begin

        cmp_data = {12'hfff,pkt_need_src_gen};

        cmp_data_mask_0 = {CMP_DATA_MASK,12'h0};

        end

        else if((cam_lookup_reslt^~cam_lookup_reslt_pre)==3'b010) begin

        cmp_data = {12'hfff,pkt_need_src_gen};

        cmp_data_mask_1 = {CMP_DATA_MASK,12'h0};

        end

        else if((cam_lookup_reslt^~cam_lookup_reslt_pre)==3'b100) begin

        cmp_data = {12'hfff,pkt_need_src_gen};

        cmp_data_mask_2 = {CMP_DATA_MASK,12'h0};

        end

        end

        /* --- get the factor pkt address from the cam, then reads the DRAM

        if no address matches, then check the decode factor2 */

        GET_FACTOR1_RESLT: begin

        state_next = RD_DRAM_MINOR_STEP;

        cam_lookup_reslt_next = cam_lookup_reslt | {match_2,match_1,match_0};

        cam_lookup_reslt_pre_next = cam_lookup_reslt | {match_2,match_1,match_0};

        if(match_2) begin

        match_addr_temp_2_next = match_addr_2;

        end

        if(match_1) begin

        match_addr_temp_1_next = match_addr_1;

        end

        if(match_0) begin

        match_addr_temp_0_next = match_addr_0;

        end

        end

        RD_DRAM_MINOR_STEP:

        if(rd_idle)

        if(|cam_lookup_reslt) begin

        state_next = LUP_DCOD_FACTOR1_FIRST;

        if(cam_lookup_reslt==3'b001)

        begin

        addr_vld = 1;

        block_num_rd = match_addr_temp_0;

        port_num_rd = 2'b00;

        cam_lookup_reslt_next=0;

        end

        else if (cam_lookup_reslt==3'b010)



        關(guān)鍵詞: 源代碼原理

        評(píng)論


        技術(shù)專區(qū)

        關(guān)閉
        主站蜘蛛池模板: 如皋市| 额敏县| 玉门市| 阳朔县| 渑池县| 奎屯市| 青浦区| 会东县| 宜良县| 鄯善县| 乐都县| 清水县| 大洼县| 扎赉特旗| 桃江县| 永昌县| 错那县| 柳州市| 南川市| 怀远县| 井陉县| 平远县| 淮北市| 宕昌县| 合肥市| 兴文县| 云霄县| 华宁县| 额尔古纳市| 策勒县| 浙江省| 临颍县| 陇西县| 葫芦岛市| 益阳市| 荔波县| 金阳县| 钟山县| 府谷县| 波密县| 达孜县|