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 その160

Posted at

概要 

windowsでiverilogやってみた。
realやってみた。

サンプルコード

module real_sample1;
	real value;
	reg [63:0] bit_representation;
	initial
	begin
		value = 2.0;
		$display("Value : %f", value);
		bit_representation = $realtobits(value);
		$display("Hex : %h", bit_representation);
	end
endmodule

実行結果

>vvp a.out
Value : 2.000000
Hex : 4000000000000000

以上。

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?