mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 13:55:41 +01:00
Add missing samples
This commit is contained in:
parent
26ff8cb857
commit
db4c9f21b4
52 changed files with 5060 additions and 540 deletions
28
website/index/samples/sample.systemverilog.txt
Normal file
28
website/index/samples/sample.systemverilog.txt
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
// File : tb_top.sv
|
||||
module tb_top ();
|
||||
|
||||
reg clk;
|
||||
reg resetn;
|
||||
reg d;
|
||||
wire q;
|
||||
|
||||
// Instantiate the design
|
||||
d_ff d_ff0 ( .clk (clk),
|
||||
.resetn (resetn),
|
||||
.d (d),
|
||||
.q (q));
|
||||
|
||||
// Create a clock
|
||||
always #10 clk <= ~clk;
|
||||
|
||||
initial begin
|
||||
resetn <= 0;
|
||||
d <= 0;
|
||||
|
||||
#10 resetn <= 1;
|
||||
#5 d <= 1;
|
||||
#8 d <= 0;
|
||||
#2 d <= 1;
|
||||
#10 d <= 0;
|
||||
end
|
||||
endmodule
|
||||
Loading…
Add table
Add a link
Reference in a new issue