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

Subversion Repositories fluid_core_2

[/] [fluid_core_2/] [trunk/] [xilinx14.5 project/] [Test_Bed.v] - Blame information for rev 4

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 4 azmathmoos
`timescale 1ns / 1ps
2
`include "Configuration.v"
3
 
4
module Test_Bed(
5
        input Clk,
6
        input RST,
7
        input [0:`intr_msb] Interrupt,
8
        output [0:`dpw] data,
9
        output reg [0:`dpw] io_port
10
    );
11
 
12
        wire [0:`inst_w] exInstruction;
13
        wire [0:`pc_w] exInstAddr;
14
        wire MemoryClk, MemoryWrite;
15
        wire [0:`memory_bus_w] MemoryAddr;
16
        wire [0:`dpw] MemoryData;
17
 
18
assign data = MemoryData;
19
 
20
FluidCore FC_inst(
21
.Clk (Clk),
22
.RST (RST),
23
.Interrupt(Interrupt),
24
.exInstruction(exInstruction),
25
.exInstAddr(exInstAddr),
26
.exMemoryData(MemoryData),
27
.exMemoryClk(MemoryClk),
28
.exMemoryAddr(MemoryAddr),
29
.exMemoryWrite(MemoryWrite)
30
);
31
 
32
Inst_Mem Inst_Mem_inst (
33
.Clk (Clk),
34
.inst(exInstruction),
35
.inst_addr(exInstAddr)
36
);
37
 
38
data_mem data_mem_inst(
39
.Clk(MemoryClk),
40
.mem_addr(MemoryAddr),
41
.data(MemoryData),
42
.write_en(MemoryWrite),
43
.en(~MemoryAddr[0])
44
);
45
 
46
ioPort ioPort_inst(
47
.Clk(MemoryClk),
48
.en(MemoryAddr[0]),
49
.wr(MemoryAddr[3]),
50
.rd(~MemoryAddr[3]),
51
.fc_data(MemoryData)
52
);
53
endmodule

powered by: WebSVN 2.1.0

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