This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Imports GridApp.Data | |
Public Class MyGridView | |
Inherits GridView | |
Protected Overrides Sub PrepareContainerForItemOverride(element As DependencyObject, item As Object) | |
Dim viewModel = DirectCast(item, SampleDataCommon) | |
element.SetValue(VariableSizedWrapGrid.ColumnSpanProperty, viewModel.ColumnSpan) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
initial begin | |
$system("date +%s.%N"); | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
initial begin | |
#100; $display("a"); | |
#100; $display("b"); | |
$save("checkpoint"); | |
#100; $display("c"); | |
#100; $display("d"); | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
initial begin | |
integer fd; | |
fd = $fopen("checkpoint", "rb"); | |
if (fd !== 0) begin | |
$fclose(fd); | |
$restart("checkpoint"); | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
initial begin | |
$save("checkpoint"); | |
$display("CHECKPOINT"); // $save 呼び出しと sim 時間が同じ | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
reg [7:0] r; | |
$display($bits(r)); // $bits(r): 8 | |
$display($bits(1 << 8)); // $bits(1 << 8): 32 | |
$display($bits(logic)); // $bits(logic): 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
reg [$bits(r)-1:0] d; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
integer fd; | |
fd = $fopen("filename", "rb"); | |
if (fd !== 0) begin | |
$fclose(fd); | |
// ファイルあり! | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ($test$plusargs("FOO")) begin | |
$display("FOO"); | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
integer foo; | |
if ($value$plusargs("FOO=%d", foo)) begin | |
$display("FOO = %0d", foo); | |
end |
OlderNewer