0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

windowsでiverilog その179

Posted at

概要 

windowsでiverilogやってみた。
verilog見つけたので、テストベンチ、書いてみた。

参考にしたページ

サンプルコード

module test;
	reg clk;
	reg rst_n;
	wire led1,
		led2,
		led3;;
	blink u(.clk_in(clk), .n_rst(rst_n), .led1(led1), .led2(led2), .led3(led3));
	initial
	begin
		clk <= 0;
		rst_n <= 1;
	#2
		rst_n <= 0;
	#2
		rst_n <= 1;
	#10000
		$finish;
	end
	always
	#1
		clk <= ~clk;
	initial
	begin
		$dumpfile("test.vcd");
		$dumpvars(0, u);
	end
endmodule

実行結果

image.png

以上。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?