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

Subversion Repositories mips789

[/] [mips789/] [branches/] [avendor/] [verilog/] [simulate/] [mips_led.v] - Blame information for rev 2

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

Line No. Rev Author Line
1 2 mcupro
//-----------------------------------------------------------------------------
2
//
3
// Title       : No Title
4
// Design      : sgfADFLJdsjoQEW
5
// Author      : YlmF
6
// Company     : WwW.YlmF.CoM
7
//
8
//-----------------------------------------------------------------------------
9
//
10
// File        : d:\my_designs\asji_saf\sgfADFLJdsjoQEW\compile\mips_led.v
11
// Generated   : Sat Aug 30 21:05:29 2008
12
// From        : d:\my_designs\asji_saf\sgfADFLJdsjoQEW\src\mips_led.BDE
13
// By          : Bde2Verilog ver. 2.01
14
//
15
//-----------------------------------------------------------------------------
16
//
17
// Description : 
18
//
19
//-----------------------------------------------------------------------------
20
 
21
`ifdef _VCP
22
`else
23
`define library
24
`endif
25
 
26
// ---------- Design Unit Header ---------- //
27
`timescale 1ps / 1ps
28
 
29
module mips_led (clk,key2,rst,cop_data,irq_addr,seg7led1,seg7led2) ;
30
 
31
// ------------ Port declarations --------- //
32
input clk;
33
wire clk;
34
input key2;
35
wire key2;
36
input rst;
37
wire rst;
38
input [31:0] cop_data;
39
wire [31:0] cop_data;
40
input [31:0] irq_addr;
41
wire [31:0] irq_addr;
42
output [6:0] seg7led1;
43
wire [6:0] seg7led1;
44
output [6:0] seg7led2;
45
wire [6:0] seg7led2;
46
 
47
// ----------- Signal declarations -------- //
48
wire [31:0] cop_addr;
49
wire [3:0] cop_mem_ctl;
50
wire [31:0] data2cop;
51
wire [31:0] data2core;
52
wire [31:0] data2mem;
53
wire [31:0] ins2core;
54
wire [31:0] mem_Addr;
55
wire [31:0] pc;
56
wire [3:0] wr_en;
57
 
58
// -------- Component instantiations -------//
59
 
60
mips_core1 mips_core_
61
(
62
        .clk(clk),
63
        .cop_addr_o(cop_addr),
64
        .cop_data_o(data2cop),
65
        .cop_dout(cop_data),
66
        .cop_mem_ctl_o(cop_mem_ctl),
67
        .irq_addr(irq_addr),
68
        .irq_i(key2),
69
        .rst(rst),
70
        .zz_addr_o(mem_Addr),
71
        .zz_din(data2core),
72
        .zz_dout(data2mem),
73
        .zz_ins_i(ins2core),
74
        .zz_pc_o(pc),
75
        .zz_wr_en_o(wr_en)
76
);
77
 
78
 
79
 
80
mem_array ram_4k
81
(
82
        .clk(clk),
83
        .din(data2mem),
84
        .dout(data2core),
85
        .ins_o(ins2core),
86
        .pc_i(pc),
87
        .rd_addr_i(mem_Addr),
88
        .wr_addr_i(mem_Addr),
89
        .wren(wr_en)
90
);
91
 
92
 
93
 
94
mips_seg7led seg7led
95
(
96
        .addr_i(cop_addr),
97
        .clk(clk),
98
        .din(data2cop),
99
        .dmem_ctl_i(cop_mem_ctl),
100
        .rst(rst),
101
        .seg7led1(seg7led1),
102
        .seg7led2(seg7led2)
103
);
104
 
105
 
106
 
107
endmodule

powered by: WebSVN 2.1.0

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