Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/wp-conte.../plugins/wp-file-.../lib/codemirr.../mode/verilog
File: index.html
<!doctype html>
[0] Fix | Delete
[1] Fix | Delete
<title>CodeMirror: Verilog/SystemVerilog mode</title>
[2] Fix | Delete
<meta charset="utf-8"/>
[3] Fix | Delete
<link rel=stylesheet href="../../doc/docs.css">
[4] Fix | Delete
[5] Fix | Delete
<link rel="stylesheet" href="../../lib/codemirror.css">
[6] Fix | Delete
<script src="../../lib/codemirror.js"></script>
[7] Fix | Delete
<script src="../../addon/edit/matchbrackets.js"></script>
[8] Fix | Delete
<script src="verilog.js"></script>
[9] Fix | Delete
<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>
[10] Fix | Delete
<div id=nav>
[11] Fix | Delete
<a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>
[12] Fix | Delete
[13] Fix | Delete
<ul>
[14] Fix | Delete
<li><a href="../../index.html">Home</a>
[15] Fix | Delete
<li><a href="../../doc/manual.html">Manual</a>
[16] Fix | Delete
<li><a href="https://github.com/codemirror/codemirror">Code</a>
[17] Fix | Delete
</ul>
[18] Fix | Delete
<ul>
[19] Fix | Delete
<li><a href="../index.html">Language modes</a>
[20] Fix | Delete
<li><a class=active href="#">Verilog/SystemVerilog</a>
[21] Fix | Delete
</ul>
[22] Fix | Delete
</div>
[23] Fix | Delete
[24] Fix | Delete
<article>
[25] Fix | Delete
<h2>SystemVerilog mode</h2>
[26] Fix | Delete
[27] Fix | Delete
<div><textarea id="code" name="code">
[28] Fix | Delete
// Literals
[29] Fix | Delete
1'b0
[30] Fix | Delete
1'bx
[31] Fix | Delete
1'bz
[32] Fix | Delete
16'hDC78
[33] Fix | Delete
'hdeadbeef
[34] Fix | Delete
'b0011xxzz
[35] Fix | Delete
1234
[36] Fix | Delete
32'd5678
[37] Fix | Delete
3.4e6
[38] Fix | Delete
-128.7
[39] Fix | Delete
[40] Fix | Delete
// Macro definition
[41] Fix | Delete
`define BUS_WIDTH = 8;
[42] Fix | Delete
[43] Fix | Delete
// Module definition
[44] Fix | Delete
module block(
[45] Fix | Delete
input clk,
[46] Fix | Delete
input rst_n,
[47] Fix | Delete
input [`BUS_WIDTH-1:0] data_in,
[48] Fix | Delete
output [`BUS_WIDTH-1:0] data_out
[49] Fix | Delete
);
[50] Fix | Delete
[51] Fix | Delete
always @(posedge clk or negedge rst_n) begin
[52] Fix | Delete
[53] Fix | Delete
if (~rst_n) begin
[54] Fix | Delete
data_out <= 8'b0;
[55] Fix | Delete
end else begin
[56] Fix | Delete
data_out <= data_in;
[57] Fix | Delete
end
[58] Fix | Delete
[59] Fix | Delete
if (~rst_n)
[60] Fix | Delete
data_out <= 8'b0;
[61] Fix | Delete
else
[62] Fix | Delete
data_out <= data_in;
[63] Fix | Delete
[64] Fix | Delete
if (~rst_n)
[65] Fix | Delete
begin
[66] Fix | Delete
data_out <= 8'b0;
[67] Fix | Delete
end
[68] Fix | Delete
else
[69] Fix | Delete
begin
[70] Fix | Delete
data_out <= data_in;
[71] Fix | Delete
end
[72] Fix | Delete
[73] Fix | Delete
end
[74] Fix | Delete
[75] Fix | Delete
endmodule
[76] Fix | Delete
[77] Fix | Delete
// Class definition
[78] Fix | Delete
class test;
[79] Fix | Delete
[80] Fix | Delete
/**
[81] Fix | Delete
* Sum two integers
[82] Fix | Delete
*/
[83] Fix | Delete
function int sum(int a, int b);
[84] Fix | Delete
int result = a + b;
[85] Fix | Delete
string msg = $sformatf("%d + %d = %d", a, b, result);
[86] Fix | Delete
$display(msg);
[87] Fix | Delete
return result;
[88] Fix | Delete
endfunction
[89] Fix | Delete
[90] Fix | Delete
task delay(int num_cycles);
[91] Fix | Delete
repeat(num_cycles) #1;
[92] Fix | Delete
endtask
[93] Fix | Delete
[94] Fix | Delete
endclass
[95] Fix | Delete
[96] Fix | Delete
</textarea></div>
[97] Fix | Delete
[98] Fix | Delete
<script>
[99] Fix | Delete
var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
[100] Fix | Delete
lineNumbers: true,
[101] Fix | Delete
matchBrackets: true,
[102] Fix | Delete
mode: {
[103] Fix | Delete
name: "verilog",
[104] Fix | Delete
noIndentKeywords: ["package"]
[105] Fix | Delete
}
[106] Fix | Delete
});
[107] Fix | Delete
</script>
[108] Fix | Delete
[109] Fix | Delete
<p>
[110] Fix | Delete
Syntax highlighting and indentation for the Verilog and SystemVerilog languages (IEEE 1800).
[111] Fix | Delete
<h2>Configuration options:</h2>
[112] Fix | Delete
<ul>
[113] Fix | Delete
<li><strong>noIndentKeywords</strong> - List of keywords which should not cause indentation to increase. E.g. ["package", "module"]. Default: None</li>
[114] Fix | Delete
</ul>
[115] Fix | Delete
</p>
[116] Fix | Delete
[117] Fix | Delete
<p><strong>MIME types defined:</strong> <code>text/x-verilog</code> and <code>text/x-systemverilog</code>.</p>
[118] Fix | Delete
</article>
[119] Fix | Delete
[120] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function