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

Subversion Repositories xucpu

[/] [xucpu/] [trunk/] [VHDL/] [issue_02/] [string_issue.vhdl] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 lcdsgmtr
-- Copyright 2015, Jürgen Defurne
2
--
3
-- This file is part of the Experimental Unstable CPU System.
4
--
5
-- The Experimental Unstable CPU System Is free software: you can redistribute
6
-- it and/or modify it under the terms of the GNU Lesser General Public License
7
-- as published by the Free Software Foundation, either version 3 of the
8
-- License, or (at your option) any later version.
9
--
10
-- The Experimental Unstable CPU System is distributed in the hope that it will
11
-- be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
12
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser
13
-- General Public License for more details.
14
--
15
-- You should have received a copy of the GNU Lesser General Public License
16
-- along with Experimental Unstable CPU System. If not, see
17
-- http://www.gnu.org/licenses/lgpl.txt.
18
 
19
 
20
LIBRARY ieee;
21
USE ieee.std_logic_1164.ALL;
22
 
23
ENTITY string_issue IS
24
 
25
  GENERIC (
26
    filename_1 : STRING := "";
27
    filename_2 : STRING := "");
28
 
29
END ENTITY string_issue;
30
 
31
ARCHITECTURE Behavioral OF string_issue IS
32
 
33
  TYPE fname_array IS ARRAY(0 TO 1) OF STRING(1 TO 100);
34
 
35
  SIGNAL fnames : fname_array := (filename_1, filename_2);
36
 
37
BEGIN  -- ARCHITECTURE Behavioral
38
 
39
END ARCHITECTURE Behavioral;
40
 
41
LIBRARY ieee;
42
USE ieee.std_logic_1164.ALL;
43
 
44
ENTITY tb_issue IS
45
END ENTITY tb_issue;
46
 
47
ARCHITECTURE Structural OF tb_issue IS
48
 
49
  COMPONENT string_issue IS
50
 
51
    GENERIC (
52
      filename_1 : STRING := "";
53
      filename_2 : STRING := "");
54
 
55
  END COMPONENT string_issue;
56
 
57
  BEGIN  -- ARCHITECTURE Structural
58
 
59
    SI1 : string_issue
60
      GENERIC MAP (
61
        filename_1 => "filename 1",
62
        filename_2 => "filename 2");
63
 
64
  END ARCHITECTURE Structural;

powered by: WebSVN 2.1.0

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