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

Subversion Repositories hive

[/] [hive/] [trunk/] [v04.05/] [ep4ce6e22c8_demo_board.v] - Blame information for rev 4

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 4 ericw
/*
2
--------------------------------------------------------------------------------
3
 
4
Module : ep4ce6e22c8_demo_board.v
5
 
6
--------------------------------------------------------------------------------
7
 
8
Function:
9
- Processor core with PLL & LED outputs.
10
 
11
Instantiates:
12
- hive_core.v
13
- pll.v
14
 
15
Notes:
16
 
17
 
18
--------------------------------------------------------------------------------
19
*/
20
 
21
module ep4ce6e22c8_demo_board
22
        #(
23
        parameter       integer                                                 LED_W                   = 4
24
        )
25
        (
26
        // clocks & resets
27
        input                   wire                                                            clk_50m_i,                                      // clock
28
        input                   wire                                                            rstn_i,                                         // async. reset, active low
29
        //
30
        output          wire    [LED_W-1:0]                              led_o                                                   // LEDs, active low
31
        );
32
 
33
 
34
        /*
35
        ----------------------
36
        -- internal signals --
37
        ----------------------
38
        */
39
        wire                                    [31:0]                                   io_o;
40
        wire                                                                                            clk_pll;
41
 
42
 
43
        /*
44
        ================
45
        == code start ==
46
        ================
47
        */
48
 
49
 
50
        pll     pll_inst (
51
        .inclk0                         ( clk_50m_i ),
52
        .c0                                     ( clk_pll )
53
        );
54
 
55
 
56
        hive_core hive_core_inst
57
        (
58
        .clk_i                          ( clk_pll ),
59
        .rst_i                          ( ~rstn_i ),
60
        .intr_req_i                     (  ),  // unused
61
        .io_i                                   (  ),  // unused
62
        .io_o                                   ( io_o )
63
        );
64
 
65
 
66
        // the LEDs are active low
67
        assign led_o = ~io_o[3:0];
68
 
69
 
70
endmodule

powered by: WebSVN 2.1.0

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