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

Subversion Repositories sv_dir_tb

[/] [sv_dir_tb/] [trunk/] [examples/] [internal/] [sv/] [dut_top.v] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 sckoarn
 
2
module  top (
3
  rst_n, // reset not
4
  clk,   //  input clock
5
  out1,  // output buss one
6
  in1,   // output buss two
7
  state  //  acknowlage out.
8
);
9
 
10
input rst_n;
11
input clk;
12
output [31:0] out1;
13
input  [31:0] in1;
14
output [7:0]  state;
15
 
16
 
17
wire  rstw;
18
wire  clkw;
19
wire  [31:0] addrw;
20
wire  [15:0] selw;
21
wire  [31:0] dataow;
22
wire  [31:0] dataiw;
23
wire  w_nw;
24
 
25
wire [31:0] tout1;
26
 
27
assign out1 = tout1;
28
assign clkw = clk;
29
assign rstw = rst_n;
30
 
31
bus_arb  arb (
32
  .rst_n  (rstw),
33
  .clk    (clkw),
34
  .addr   (addrw[31:28]),
35
  .sel    (selw)
36
);
37
 
38
mem_mod mem (
39
  .clk    (clkw),
40
  .addr   (addrw),
41
  .datai  (dataow),
42
  .datao  (dataiw),
43
  .sel    (selw[1]),
44
  .w_n    (w_nw)
45
);
46
 
47
gpio_mod gpio (
48
  .clk    (clkw),
49
  .rst_n  (rstw),
50
  .addr   (addrw),
51
  .datai  (dataow),
52
  .datao  (dataiw),
53
  .w_n    (w_nw),
54
  .sel    (selw[2]),
55
  .io_o   (tout1),
56
  .io_i   (in1)
57
);
58
 
59
cpu_mod cpu (
60
  .rst_n  (rstw),
61
  .clk    (clkw),
62
  .addr   (addrw),
63
  .datai  (dataiw),
64
  .datao  (dataow),
65
  .w_n    (w_nw),
66
  .ack    ()
67
);
68
 
69
endmodule

powered by: WebSVN 2.1.0

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