新聞中心

        EEPW首頁 > 電源與新能源 > 設計應用 > 基于網絡編碼的多信源組播通信系統,包括源代碼,原理圖等(四)

        基于網絡編碼的多信源組播通信系統,包括源代碼,原理圖等(四)

        作者: 時間:2016-12-06 來源:網絡 收藏

        output [SRC_GEN_SEQ_WIDTH-1:0] cmp_data_1,

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

        output reg [SRC_GEN_SEQ_WIDTH-1:0] cmp_data_mask_1,

        input [CAM_ADDR_WIDTH-1:0] match_addr_1,

        input match_1,

        output [SRC_GEN_SEQ_WIDTH-1:0] cmp_data_2,

        output reg [SRC_GEN_SEQ_WIDTH-1:0] cmp_data_mask_2,

        input [CAM_ADDR_WIDTH-1:0] match_addr_2,

        input match_2,

        // ---DRAM control interface

        output reg [DRAM_NUMS_WIDTH-1:0] port_num_rd,

        output reg [DRAM_BLOCK_WIDTH-1:0] block_num_rd,

        output reg addr_vld,

        input rd_idle,

        // ---input_arbiter interface

        input cam_vld,

        // ---decoder interface

        output reg pkt_vld,

        output reg [REG_GRP_WIDTH-1:0] pkt_dcoding,

        output reg pkt_not_find,

        output reg has_other_factor,

        input [REG_GRP_WIDTH-1:0] pkt_need_src_gen,

        input need_pkt_vld,

        input decod_com,

        // ---decoded reg grp interface

        output reg rd_dcod_reg_req_1,

        output [REG_GRP_WIDTH-1:0] rd_dcod_src_gen_1,

        input req_ack_vld_1,

        input alredy_decod_1,

        // --- Misc

        input rst_n,

        input clk

        ); function integer log2;

        input integer number;

        begin

        log2=0;

        while(2**log2

        log2=log2+1;

        end

        end

        endfunction // log2

        // ------------ Internal Params --------

        parameter NUM_STATES = 4;

        parameter IDLE = 4'b0;

        parameter GET_SRC_GEN_NUM = 4'b0001;

        parameter LOOK_UP_CAM = 4'b0010;

        parameter GET_CMP_RESLT_FIRST = 4'b0011;

        parameter GET_CMP_RESLT_SEC = 4'b0100;

        parameter RD_DRAM_MAIN_STEP = 4'b0101;

        parameter LUP_DCOD_FACTOR1_FIRST = 4'b0110;

        parameter LUP_DCOD_FACTOR1_SEC = 4'b0111;

        parameter GET_FACTOR1_RESLT = 4'b1000;

        parameter RD_DRAM_MINOR_STEP = 4'b1001;

        parameter LUP_DCOD_FACTOR2 = 4'b1011;

        // ------------- Regs/ wires -----------

        wire [SRC_WIDTH-1:0] src_num_plus1;

        reg [SRC_WIDTH-1:0] src_num,src_num_sel,src_num_sel_next; //source sequence number for packets that is being decoded

        reg [SRC_WIDTH-1:0] src_num_next;

        wire [GEN_WIDTH-1:0] gen_num_plus1;

        reg [GEN_WIDTH-1:0] gen_num,gen_num_sel,gen_num_sel_next; //generation sequence number for packets that is being decoded

        reg [GEN_WIDTH-1:0] gen_num_next;

        reg [CAM_NUMS-1:0] cam_lookup_reslt; // result of looking up packets in cam,stands for which cam finds the packet

        reg [CAM_NUMS-1:0] cam_lookup_reslt_next;

        reg[CAM_NUMS-1:0] cam_lookup_reslt_pre,cam_lookup_reslt_save;

        reg[CAM_NUMS-1:0] cam_lookup_reslt_pre_next,cam_lookup_reslt_save_next;

        reg [CAM_ADDR_WIDTH-1:0] other_dram_addr;

        reg [CAM_ADDR_WIDTH-1:0] other_dram_addr_next;

        reg [DRAM_NUMS_WIDTH-1:0] other_port_num_rd; //the other result from looking up cams

        reg has_factor2; //has the other looking up result

        reg has_factor2_next;



        關鍵詞: 源代碼原理

        評論


        技術專區

        關閉
        主站蜘蛛池模板: 陈巴尔虎旗| 收藏| 通辽市| SHOW| 五原县| 清苑县| 夹江县| 墨江| 商水县| 宁蒗| 辉南县| 齐齐哈尔市| 昌黎县| 库伦旗| 台东市| 镇坪县| 宽城| 米易县| 鹰潭市| 射阳县| 裕民县| 隆德县| 衡阳市| 朝阳市| 错那县| 长丰县| 嘉义县| 蓬安县| 霍林郭勒市| 调兵山市| 九寨沟县| 滨海县| 宾阳县| 新闻| 太和县| 郁南县| 石棉县| 马龙县| 云阳县| 湟源县| 隆德县|