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

Subversion Repositories fluid_core_2

[/] [fluid_core_2/] [trunk/] [rtl/] [Test_Bed.v] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 azmathmoos
//////////////////////////////////////////////////////////////////////
2
////                                                              ////
3
//// Copyright (C) 2014-2015 Azmath Moosa                         ////
4
////                                                              ////
5
//// This source file may be used and distributed without         ////
6
//// restriction provided that this copyright statement is not    ////
7
//// removed from the file and that any derivative work contains  ////
8
//// the original copyright notice and the associated disclaimer. ////
9
////                                                              ////
10
//// This source file is free software; you can redistribute it   ////
11
//// and/or modify it under the terms of the GNU Lesser General   ////
12
//// Public License as published by the Free Software Foundation; ////
13
//// either version 3 of the License, or (at your option) any     ////
14
//// later version.                                               ////
15
////                                                              ////
16
//// This source is distributed in the hope that it will be       ////
17
//// useful, but WITHOUT ANY WARRANTY; without even the implied   ////
18
//// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR      ////
19
//// PURPOSE.  See the GNU Lesser General Public License for more ////
20
//// details.                                                     ////
21
////                                                              ////
22
//// You should have received a copy of the GNU Lesser General    ////
23
//// Public License along with this source; if not, download it   ////
24
//// from http://www.opencores.org/lgpl.shtml                     ////
25
////                                                              ////
26
//////////////////////////////////////////////////////////////////////
27
`timescale 1ns / 1ps
28
`include "Configuration.v"
29
 
30
module Test_Bed(
31
        input Clk,
32
        input RST,
33
        input [0:`intr_msb] Interrupt,
34
        output [0:`dpw] data,
35
        output reg [0:`dpw] io_port
36
    );
37
 
38
        wire [0:`inst_w] exInstruction;
39
        wire [0:`pc_w] exInstAddr;
40
        wire MemoryClk, MemoryWrite;
41
        wire [0:`memory_bus_w] MemoryAddr;
42
        wire [0:`dpw] MemoryData;
43
 
44
assign data = MemoryData;
45
 
46
FluidCore FC_inst(
47
.Clk (Clk),
48
.RST (RST),
49
.Interrupt(Interrupt),
50
.exInstruction(exInstruction),
51
.exInstAddr(exInstAddr),
52
.exMemoryData(MemoryData),
53
.exMemoryClk(MemoryClk),
54
.exMemoryAddr(MemoryAddr),
55
.exMemoryWrite(MemoryWrite)
56
);
57
 
58
Inst_Mem Inst_Mem_inst (
59
.Clk (Clk),
60
.inst(exInstruction),
61
.inst_addr(exInstAddr)
62
);
63
 
64
data_mem data_mem_inst(
65
.Clk(MemoryClk),
66
.mem_addr(MemoryAddr),
67
.data(MemoryData),
68
.write_en(MemoryWrite),
69
.en(~MemoryAddr[0])
70
);
71
 
72
ioPort ioPort_inst(
73
.Clk(MemoryClk),
74
.en(MemoryAddr[0]),
75
.wr(MemoryAddr[3]),
76
.rd(~MemoryAddr[3]),
77
.fc_data(MemoryData)
78
);
79
endmodule

powered by: WebSVN 2.1.0

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