From 3cffdaca0f0c3be340eee499c2ea7abe8234dae1 Mon Sep 17 00:00:00 2001 From: Ben James Date: Sat, 4 Sep 2010 15:39:17 +0100 Subject: [PATCH] BCJ: Added SystemVerilog example file (test.sv); changed Verilog and VHDL "document" to "source code" as these are both source code files; added SystemVerilog header and source file MIME types. --- freedesktop.org.xml.in | 14 ++++++++++++-- tests/test.sv | 19 +++++++++++++++++++ 2 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 tests/test.sv diff --git a/freedesktop.org.xml.in b/freedesktop.org.xml.in index 45f50e7..edc7863 100644 --- a/freedesktop.org.xml.in +++ b/freedesktop.org.xml.in @@ -4399,12 +4399,22 @@ command to generate the output files. - <_comment>Verilog document + <_comment>Verilog source code + + <_comment>SystemVerilog header + + + + + <_comment>SystemVerilog source code + + + - <_comment>VHDL document + <_comment>VHDL source code VHDL Very-High-Speed Integrated Circuit Hardware Description Language diff --git a/tests/test.sv b/tests/test.sv new file mode 100644 index 0000000..524b02b --- /dev/null +++ b/tests/test.sv @@ -0,0 +1,19 @@ +virtual class Memory; + virtual function bit [31:0] read(bit [31:0] addr); endfunction + virtual function void write(bit [31:0] addr, bit [31:0] data); endfunction +endclass + +class SRAM #(parameter AWIDTH=10) extends Memory; + bit [31:0] mem [1<