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

Subversion Repositories zet86

[/] [zet86/] [trunk/] [soc/] [keyb/] [test/] [test_ps2_keyb.v] - Blame information for rev 54

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 43 zeus
module test_ps2_keyb (
2
    input        clk_,
3
    output [8:0] led_,
4
    inout        ps2_clk_,
5
    inout        ps2_data_
6
 
7
 
8
  );
9
 
10
  // Net declarations
11
  wire        sys_clk_0;
12
  wire        lock;
13
  wire        rst;
14
 
15
  // Module instances
16
  clock c0 (
17
    .CLKIN_IN   (clk_),
18
    .CLKDV_OUT  (sys_clk_0),
19
    .LOCKED_OUT (lock)
20
  );
21
 
22
  ps2_keyb #(2950, // number of clks for 60usec.
23
             12,   // number of bits needed for 60usec. timer
24
             63,   // number of clks for debounce
25
             6,    // number of bits needed for debounce timer
26
 
27
            ) keyboard0 (      // Instance name
28
    .wb_clk_i (sys_clk_0),
29
    .wb_rst_i (rst),
30
    .wb_dat_o (led_[7:0]),
31
    .test     (led_[8]),
32
 
33
    .ps2_clk_  (ps2_clk_),
34
    .ps2_data_ (ps2_data_)
35
  );
36
 
37
  // Continuous assignments
38
  assign rst = !lock;
39
endmodule

powered by: WebSVN 2.1.0

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