-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathmethod_string_liter.sv
67 lines (58 loc) · 1.6 KB
/
method_string_liter.sv
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
//==============================================================================
//
// The code is generated by Intel Compiler for SystemC, version 1.5.12
// see more information at https://github.com/intel/systemc-compiler
//
//==============================================================================
//==============================================================================
//
// Module: A ()
//
module A // "a_mod"
(
input logic clk
);
// Variables generated for SystemC signals
//------------------------------------------------------------------------------
// Method process: literFromString (test_string_liter.cpp:36:5)
always_comb
begin : literFromString // test_string_liter.cpp:36:5
logic [5:0] ux;
logic signed [9:0] ix;
logic [64:0] bu;
logic signed [99:0] bi;
ux = 'b110011;
ux = 42;
ux = 5'd10;
ux = 0;
ux = 0;
ux = 0;
ix = -5'sd11;
ix = -7'sh26;
ix = 0;
ix = -2'so1;
ix = -2'sb1;
bu = 0;
bu = 65'h1FFFF1111FFFF1111;
bu = 65'h1FFFF1111FFFF1111;
bi = -6'sh1F;
bi = -70'shAFFFF1111FFFF1111;
end
//------------------------------------------------------------------------------
// Method process: stringVarToInt (test_string_liter.cpp:73:5)
always_comb
begin : stringVarToInt // test_string_liter.cpp:73:5
logic [11:0] ux;
logic signed [15:0] ix;
logic [64:0] bu;
logic signed [99:0] bi;
ux = 42;
ux = 42;
ix = 43;
ix = -7'sd42;
bu = 65'h1FFFF1111FFFF1111;
bu = 65'h1FFFF1111FFFF1111;
bi = -70'shAFFFF1111FFFF1111;
bi = -70'shAFFFF1111FFFF1111;
end
endmodule