Subversion-Projekte lars-tiefland.ci

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
776 lars 1
<!doctype html>
2
<title>CodeMirror: VHDL mode</title>
3
<meta charset="utf-8" />
4
<link rel=stylesheet href="../../doc/docs.css">
5
<link rel="stylesheet" href="../../lib/codemirror.css">
6
<script src="../../lib/codemirror.js"></script>
7
<script src="../../addon/edit/matchbrackets.js"></script>
8
<script src="vhdl.js"></script>
9
<style type="text/css">
10
    .CodeMirror {
11
        border-top: 1px solid black;
12
        border-bottom: 1px solid black;
13
    }
14
</style>
15
<div id=nav>
16
    <a href="http://codemirror.net">
17
        <h1>CodeMirror</h1>
18
        <img id=logo src="../../doc/logo.png">
19
    </a>
20
    <ul>
21
        <li>
22
            <a href="../../index.html">Home</a>
23
            <li>
24
                <a href="../../doc/manual.html">Manual</a>
25
                <li>
26
                    <a href="https://github.com/codemirror/codemirror">Code</a>
27
    </ul>
28
    <ul>
29
        <li>
30
            <a href="../index.html">Language modes</a>
31
            <li>
32
                <a class=active href="#">VHDL</a>
33
    </ul>
34
</div>
35
<article>
36
    <h2>VHDL mode</h2>
37
    <div>
38
        <textarea id="code" name="code"> LIBRARY ieee; USE ieee.std_logic_1164.ALL; USE ieee.numeric_std.ALL; ENTITY tb IS END tb; ARCHITECTURE behavior OF tb IS --Inputs signal a : unsigned(2 downto 0) := (others => '0'); signal b : unsigned(2 downto 0) := (others => '0'); --Outputs
39
            signal a_eq_b : std_logic; signal a_le_b : std_logic; signal a_gt_b : std_logic; signal i,j : integer; BEGIN -- Instantiate the Unit Under Test (UUT) uut: entity work.comparator PORT MAP ( a => a, b => b, a_eq_b => a_eq_b, a_le_b => a_le_b,
40
            a_gt_b => a_gt_b ); -- Stimulus process stim_proc: process begin for i in 0 to 8 loop for j in 0 to 8 loop a
41
            <=t o_unsigned(i,3); --integer to unsigned type conversion b <=t o_unsigned(j,3); wait for 10 ns; end loop; end loop; end process;
42
                END; </textarea>
43
    </div>
44
    <script>
45
        var editor = CodeMirror.fromTextArea(document.getElementById("code"),
46
        {
47
            lineNumbers: true,
48
            matchBrackets: true,
49
            mode:
50
            {
51
                name: "vhdl",
52
            }
53
        });
54
    </script>
55
    <p> Syntax highlighting and indentation for the VHDL language.
56
        <h2>Configuration options:</h2>
57
        <ul>
58
            <li>
59
                <strong>atoms</strong> - List of atom words. Default: "null"</li>
60
            <li>
61
                <strong>hooks</strong> - List of meta hooks. Default: ["`", "$"]</li>
62
            <li>
63
                <strong>multiLineStrings</strong> - Whether multi-line strings are accepted. Default: false</li>
64
        </ul>
65
    </p>
66
    <p>
67
        <strong>MIME types defined:</strong> <code>text/x-vhdl</code>.</p>
68
</article>