| 1 |
<!DOCTYPE html> |
| 2 |
<html><head> |
| 3 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> |
| 4 |
<title>highlight.ahdl</title> |
| 5 |
<meta name="generator" content="KF5::SyntaxHighlighting - Definition (AHDL) - Theme (Breeze Dark)"/> |
| 6 |
</head><body style="background-color:#232629;color:#cfcfc2"><pre> |
| 7 |
<span style="color:#7a7c7d;">-- Test file for kate's syntax highlighting</span> |
| 8 |
<span style="font-weight:bold;">Title</span> <span style="color:#f44f4f;">"Test file"</span>; |
| 9 |
|
| 10 |
<span style="color:#2980b9;background-color:#153042;">-- BEGIN region (a region marker region) :)</span> |
| 11 |
|
| 12 |
<span style="color:#7a7c7d;">% multiline comment</span> |
| 13 |
<span style="color:#7a7c7d;">goes on here %</span> |
| 14 |
|
| 15 |
<span style="color:#2980b9;background-color:#153042;">-- END</span> |
| 16 |
|
| 17 |
<span style="font-weight:bold;">FUNCTION</span> FCT (Clk, Key) <span style="font-weight:bold;">RETURNS</span> (pulse); |
| 18 |
|
| 19 |
<span style="font-weight:bold;">SUBDESIGN</span> CDCLOCK2 |
| 20 |
( |
| 21 |
<span style="font-weight:bold;">in</span> : <span style="font-weight:bold;">INPUT</span>; <span style="color:#7a7c7d;">-- go in</span> |
| 22 |
out[<span style="color:#f67400;">3</span>..<span style="color:#f67400;">0</span>] : <span style="font-weight:bold;">OUTPUT</span>; <span style="color:#7a7c7d;">-- come out</span> |
| 23 |
) |
| 24 |
|
| 25 |
<span style="font-weight:bold;">VARIABLE</span> |
| 26 |
start : <span style="color:#2980b9;">soft</span>; |
| 27 |
usec[<span style="color:#f67400;">3</span>..<span style="color:#f67400;">0</span>] : <span style="font-weight:bold;">node</span>; |
| 28 |
|
| 29 |
<span style="font-weight:bold;">BEGIN</span> |
| 30 |
|
| 31 |
<span style="font-weight:bold;">in</span> = FCT(clock, some_key); <span style="color:#7a7c7d;">-- senseless code</span> |
| 32 |
|
| 33 |
<span style="color:#7a7c7d;">-- comment</span> |
| 34 |
blubb = (blobb[] == <span style="color:#f67400;">H"3ff"</span>); |
| 35 |
|
| 36 |
<span style="font-weight:bold;">IF</span> <span style="font-weight:bold;">in</span> <span style="font-weight:bold;">THEN</span> asdf |
| 37 |
<span style="color:#7a7c7d;">-- folde me</span> |
| 38 |
<span style="font-weight:bold;">END IF</span>; |
| 39 |
|
| 40 |
<span style="font-weight:bold;">TABLE</span> |
| 41 |
<span style="color:#7a7c7d;">-- missing code</span> |
| 42 |
<span style="font-weight:bold;">END TABLE</span> |
| 43 |
|
| 44 |
|
| 45 |
<span style="font-weight:bold;">END</span>; |
| 46 |
|
| 47 |
<span style="color:#7a7c7d;">-- hex, octal, binary</span> |
| 48 |
<span style="color:#f67400;">H"0"</span> => <span style="color:#f67400;">B"1000000"</span>; |
| 49 |
O<span style="color:#f44f4f;">"01234567"</span>; |
| 50 |
</pre></body></html> |