OpenCores
URL https://opencores.org/ocsvn/an-fpga-implementation-of-low-latency-noc-based-mpsoc/an-fpga-implementation-of-low-latency-noc-based-mpsoc/trunk

Subversion Repositories an-fpga-implementation-of-low-latency-noc-based-mpsoc

[/] [an-fpga-implementation-of-low-latency-noc-based-mpsoc/] [trunk/] [mpsoc/] [Integration_test/] [Altera/] [src/] [quartus_pronoc.sv] - Blame information for rev 56

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 56 alirezamon
`include "pronoc_def.v"
2
 
3
module quartus_pronoc
4
#(
5
        parameter NOC_ID = 0
6
)(
7
        clk,
8
        reset,
9
        chan_in,
10
        chan_out,
11
        sel_in,
12
        sel_out
13
);
14
 
15
        `NOC_CONF
16
 
17
        input  [NE-1      :   0]  sel_in;
18
        input  [NEw-1     :   0]  sel_out;
19
        input  smartflit_chanel_t chan_in;
20
        output  smartflit_chanel_t chan_out;
21
        input reset,clk;
22
 
23
 
24
        smartflit_chanel_t chan_in_all  [NE-1 : 0];
25
        smartflit_chanel_t chan_out_all [NE-1 : 0];
26
        smartflit_chanel_t chan_out_all_reg [NE-1 : 0];
27
 
28
        wire noc_reset;
29
 
30
        noc_top #(
31
                .NOC_ID(NOC_ID)
32
        ) top (
33
                .reset(noc_reset),
34
                .clk(clk),
35
                .chan_in_all(chan_in_all),
36
                .chan_out_all(chan_out_all),
37
                .router_event( )
38
        );
39
 
40
 
41
        altera_reset_synchronizer sync(
42
                .reset_in       (reset),
43
                .clk            (clk),
44
                .reset_out      (noc_reset)
45
        );
46
 
47
        //NoC port assignment
48
 
49
        assign chan_out = chan_out_all_reg[sel_out];
50
 
51
        always @(posedge clk) begin
52
                chan_out_all_reg        <= chan_out_all;
53
        end
54
 
55
        genvar IP_NUM;
56
        generate
57
    for (IP_NUM=0;   IP_NUM
58
 
59
                        always @(posedge clk) begin
60
                                if(sel_in[IP_NUM] ) begin
61
                                         chan_in_all[IP_NUM]<= chan_in;
62
                                end
63
                        end
64
    end
65
        endgenerate
66
 
67
endmodule

powered by: WebSVN 2.1.0

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