blob: 6f00851b8df73d7cb799890c7ba1bea82496080f [file] [log] [blame]
/*
:name: real-constants
:description: Examples of real literal constants
:should_fail: 0
:tags: 5.7.2
*/
module top();
logic [31:0] a;
initial begin;
a = 1.2;
a = 0.1;
a = 2394.26331;
a = 1.2E12; // the exponent symbol can be e or E
a = 1.30e-2;
a = 0.1e-0;
a = 23E10;
a = 29E-2;
a = 236.123_763_e-12; // underscores are ignored
end
endmodule