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

Subversion Repositories xulalx25soc

[/] [xulalx25soc/] [trunk/] [rtl/] [ICAP_SPARTAN6.v] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 dgisselq
///////////////////////////////////////////////////////////////////////////
2
//
3
// Filename:    ICAP_SPARTAN6.v
4
//
5
// Project:     XuLA2 board
6
//
7
// Purpose:     Verilator cannot build the ICAP_SPARTAN6 primitive for the
8
//              XuLA2 board.  This file is provided for Verilator to build
9
//      instead.  It is *not* a fully functional ICAP_SPARTAN6 primitive by
10
//      any stretch of the imagination, but it makes the build process work.
11
//      Reads and writes should "succeed", the values read or written however
12
//      will be meaningless.
13
//
14
//
15
// Creator:     Dan Gisselquist, Ph.D.
16
//              Gisselquist Technology, LLC
17
//
18
///////////////////////////////////////////////////////////////////////////
19
//
20
// Copyright (C) 2015, Gisselquist Technology, LLC
21
//
22
// This program is free software (firmware): you can redistribute it and/or
23
// modify it under the terms of  the GNU General Public License as published
24
// by the Free Software Foundation, either version 3 of the License, or (at
25
// your option) any later version.
26
//
27
// This program is distributed in the hope that it will be useful, but WITHOUT
28
// ANY WARRANTY; without even the implied warranty of MERCHANTIBILITY or
29
// FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
30
// for more details.
31
//
32
// License:     GPL, v3, as defined and found on www.gnu.org,
33
//              http://www.gnu.org/licenses/gpl.html
34
//
35
//
36
///////////////////////////////////////////////////////////////////////////
37
//
38
//
39
module  ICAP_SPARTAN6(CLK, CE, WRITE, I, O, BUSY);
40
        input                   CLK, CE, WRITE;
41
        input           [15:0]   I;
42
        output  wire    [15:0]   O;
43
        output  wire    BUSY;
44
 
45
        reg     [15:0]   rv;
46
        initial rv = 16'h0000;
47
        always @(posedge CLK)
48
                if ((CE)&&(WRITE))
49
                        rv <= I;
50
        assign  O = rv;
51
        assign  BUSY = 1'b0;
52
endmodule

powered by: WebSVN 2.1.0

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