axi_tdl 0.0.10 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/gem-push.yml +44 -0
- data/.github/workflows/ruby.yml +35 -0
- data/.gitignore +3 -1
- data/.travis.yml +9 -0
- data/Gemfile +4 -0
- data/README.EN.md +7 -2
- data/README.md +6 -2
- data/Rakefile +2 -6
- data/axi_tdl.gemspec +3 -4
- data/lib/axi/AXI4/axi4_direct_B1.sv +23 -23
- data/lib/axi/AXI4/axi4_dpram_cache.sv +33 -33
- data/lib/axi/AXI4/axis_to_axi4_wr.rb +1 -0
- data/lib/axi/AXI4/axis_to_axi4_wr.sv +20 -20
- data/lib/axi/AXI4/packet_partition/axi4_partition_rd_verb.sv +32 -32
- data/lib/axi/AXI4/packet_partition/data_inf_partition.rb +2 -0
- data/lib/axi/AXI4/packet_partition/data_inf_partition.sv +71 -71
- data/lib/axi/AXI4/wide_axis_to_axi4_wr.rb +2 -1
- data/lib/axi/AXI4/wide_axis_to_axi4_wr.sv +23 -23
- data/lib/axi/AXI_stream/axi_stream_split_channel.rb +7 -1
- data/lib/axi/AXI_stream/axis_head_cut_verb.sv +6 -2
- data/lib/axi/AXI_stream/axis_insert_copy.rb +18 -4
- data/lib/axi/AXI_stream/axis_sim_master_model.rb +28 -0
- data/lib/axi/AXI_stream/axis_sim_slaver_model.rb +26 -0
- data/lib/axi/AXI_stream/axis_sim_verify_by_coe.sv +101 -0
- data/lib/axi/AXI_stream/axis_split_channel_verb.rb +2 -0
- data/lib/axi/common/common_ram_sim_wrapper.sv +9 -9
- data/lib/axi/common/common_ram_wrapper.sv +12 -12
- data/lib/axi/data_interface/data_inf_c/data_c_pipe_sync_seam.sv +26 -26
- data/lib/axi/data_interface/data_inf_c/data_c_sim_master_model.sv +69 -0
- data/lib/axi/data_interface/data_inf_c/data_c_sim_slaver_model.sv +58 -0
- data/lib/axi/data_interface/data_inf_c/logic_sim_model.sv +64 -0
- data/lib/axi/techbench/tb_axi_stream_split_channel.rb +69 -0
- data/lib/axi/techbench/tb_axi_stream_split_channel.sv +149 -0
- data/lib/axi/techbench/tb_axis_split_channel_verb.rb +69 -0
- data/lib/axi/techbench/tb_axis_split_channel_verb.sv +125 -0
- data/lib/axi_tdl.rb +1 -0
- data/lib/axi_tdl/version.rb +1 -1
- data/lib/tdl/auto_script/autogensdl.rb +16 -5
- data/lib/tdl/axi4/axi4_interconnect_verb.rb +4 -2
- data/lib/tdl/basefunc.rb +1 -0
- data/lib/tdl/class_hdl/hdl_always_comb.rb +4 -3
- data/lib/tdl/class_hdl/hdl_always_ff.rb +49 -8
- data/lib/tdl/class_hdl/hdl_assign.rb +5 -3
- data/lib/tdl/class_hdl/hdl_block_ifelse.rb +11 -9
- data/lib/tdl/class_hdl/hdl_foreach.rb +2 -2
- data/lib/tdl/class_hdl/hdl_function.rb +4 -2
- data/lib/tdl/class_hdl/hdl_generate.rb +5 -4
- data/lib/tdl/class_hdl/hdl_initial.rb +11 -10
- data/lib/tdl/class_hdl/hdl_module_def.rb +18 -1
- data/lib/tdl/class_hdl/hdl_redefine_opertor.rb +35 -14
- data/lib/tdl/class_hdl/hdl_struct.rb +1 -1
- data/lib/tdl/class_hdl/hdl_verify.rb +1 -1
- data/lib/tdl/elements/originclass.rb +6 -1
- data/lib/tdl/elements/parameter.rb +1 -1
- data/lib/tdl/examples/10_random/exp_random.sv +3 -3
- data/lib/tdl/examples/11_test_unit/dve.tcl +155 -2
- data/lib/tdl/examples/11_test_unit/exp_test_unit.rb +9 -8
- data/lib/tdl/examples/11_test_unit/exp_test_unit.sv +1 -1
- data/lib/tdl/examples/11_test_unit/modules/sub_md0.rb +6 -3
- data/lib/tdl/examples/11_test_unit/modules/sub_md0.sv +5 -5
- data/lib/tdl/examples/11_test_unit/modules/sub_md1.rb +9 -4
- data/lib/tdl/examples/11_test_unit/modules/sub_md1.sv +5 -5
- data/lib/tdl/examples/11_test_unit/tb_exp_test_unit.sv +1 -3
- data/lib/tdl/examples/11_test_unit/tu0.sv +9 -9
- data/lib/tdl/examples/11_test_unit/tu1.sv +1 -1
- data/lib/tdl/examples/1_define_module/exmple_md.sv +12 -12
- data/lib/tdl/examples/2_hdl_class/tmp/always_comb_test.sv +60 -60
- data/lib/tdl/examples/2_hdl_class/tmp/always_ff_test.sv +2 -2
- data/lib/tdl/examples/2_hdl_class/tmp/case_test.sv +17 -17
- data/lib/tdl/examples/2_hdl_class/tmp/head_pkg_module.sv +9 -9
- data/lib/tdl/examples/2_hdl_class/tmp/simple_assign_test.sv +1 -1
- data/lib/tdl/examples/2_hdl_class/tmp/state_case_test.sv +10 -10
- data/lib/tdl/examples/2_hdl_class/tmp/test_foreach.sv +3 -3
- data/lib/tdl/examples/2_hdl_class/tmp/test_function.sv +7 -7
- data/lib/tdl/examples/2_hdl_class/tmp/test_initial_assert.sv +3 -3
- data/lib/tdl/examples/2_hdl_class/tmp/test_module.sv +2 -2
- data/lib/tdl/examples/2_hdl_class/tmp/test_module_var.sv +1 -1
- data/lib/tdl/examples/2_hdl_class/tmp/test_package.sv +4 -5
- data/lib/tdl/examples/2_hdl_class/tmp/test_package2.sv +4 -4
- data/lib/tdl/examples/2_hdl_class/tmp/test_struct_function.sv +2 -2
- data/lib/tdl/examples/2_hdl_class/tmp/test_vcs_string.sv +1 -1
- data/lib/tdl/examples/2_hdl_class/tmp/text_generate.sv +7 -7
- data/lib/tdl/examples/4_generate/test_generate.sv +11 -11
- data/lib/tdl/examples/5_logic_combin/test_logic_combin.sv +3 -3
- data/lib/tdl/examples/7_module_with_package/body_package.sv +3 -4
- data/lib/tdl/examples/7_module_with_package/example_pkg.sv +4 -4
- data/lib/tdl/examples/7_module_with_package/head_package.sv +3 -4
- data/lib/tdl/examples/8_top_module/tb_test_top.sv +1 -2
- data/lib/tdl/examples/9_itegration/clock_manage/itgt_module_clock_manage.rb +13 -0
- data/lib/tdl/examples/9_itegration/clock_manage/test_clock_bb.sv +34 -0
- data/lib/tdl/examples/9_itegration/tb_test_top.sv +2 -2
- data/lib/tdl/examples/9_itegration/tb_test_tttop.sv +1 -1
- data/lib/tdl/examples/9_itegration/tb_test_tttop_sim.sv +38 -0
- data/lib/tdl/examples/9_itegration/test_top.sv +4 -4
- data/lib/tdl/examples/9_itegration/test_tttop.sv +4 -4
- data/lib/tdl/examples/9_itegration/test_tttop_sim.sv +9 -0
- data/lib/tdl/examples/9_itegration/top.rb +1 -0
- data/lib/tdl/exlib/axis_eth_ex.rb +95 -0
- data/lib/tdl/exlib/axis_verify.rb +264 -0
- data/lib/tdl/exlib/clock_reset_verify.rb +29 -0
- data/lib/tdl/exlib/dve_tcl.rb +30 -11
- data/lib/tdl/exlib/itegration.rb +15 -3
- data/lib/tdl/exlib/itegration_verb.rb +166 -129
- data/lib/tdl/exlib/logic_verify.rb +88 -0
- data/lib/tdl/exlib/test_point.rb +96 -94
- data/lib/tdl/exlib/test_point.rb.bak +293 -0
- data/lib/tdl/rebuild_ele/ele_base.rb +1 -1
- data/lib/tdl/sdlmodule/sdlmodlule_path_db.rb +34 -0
- data/lib/tdl/sdlmodule/sdlmodule.rb +18 -14
- data/lib/tdl/sdlmodule/sdlmodule_draw.rb +81 -16
- data/lib/tdl/sdlmodule/test_unit_module.rb +278 -33
- data/lib/tdl/sdlmodule/test_unit_module.rb.bak +143 -0
- data/lib/tdl/sdlmodule/top_module.rb +62 -58
- data/lib/tdl/sdlmodule/top_module.rb.bak +547 -0
- data/lib/tdl/tdl.rb +18 -3
- metadata +35 -134
- data/Gemfile.lock +0 -28
- data/lib/axi/AXI_stream/axi_stream_split_channel.sv +0 -149
- data/lib/axi/AXI_stream/axis_head_cut_verc.sv +0 -242
- data/lib/axi/AXI_stream/axis_insert_copy.sv +0 -66
- data/lib/axi/AXI_stream/axis_pipe_sync_seam.sv +0 -48
- data/lib/axi/AXI_stream/axis_rom_contect_sim.sv +0 -113
- data/lib/axi/AXI_stream/axis_split_channel_verb.sv +0 -62
@@ -17,9 +17,14 @@ TdlBuild.sub_md1(__dir__) do
|
|
17
17
|
end
|
18
18
|
|
19
19
|
## CREATE TEST POINT
|
20
|
-
cnt.create_tp('count test point',__FILE__,__LINE__) - 'tp_cnt'
|
21
|
-
axis_out.create_tp('test point of axis_out',__FILE__,__LINE__) - 'tp_axis_out'
|
22
|
-
inter_tf.create_tp('inner test point',__FILE__,__LINE__) - 'tp_inter_tf'
|
23
|
-
enable.create_tp('enable driver',__FILE__,__LINE__) - 'enable_tp'
|
20
|
+
# cnt.create_tp('count test point',__FILE__,__LINE__) - 'tp_cnt'
|
21
|
+
# axis_out.create_tp('test point of axis_out',__FILE__,__LINE__) - 'tp_axis_out'
|
22
|
+
# inter_tf.create_tp('inner test point',__FILE__,__LINE__) - 'tp_inter_tf'
|
23
|
+
# enable.create_tp('enable driver',__FILE__,__LINE__) - 'enable_tp'
|
24
|
+
|
25
|
+
cnt.tracked_by_dve
|
26
|
+
axis_out.tracked_by_dve
|
27
|
+
inter_tf.tracked_by_dve(:inner)
|
28
|
+
enable.tracked_by_dve
|
24
29
|
|
25
30
|
end
|
@@ -5,7 +5,7 @@ _______________________________________
|
|
5
5
|
descript:
|
6
6
|
author : Cook.Darwin
|
7
7
|
Version: VERA.0.0
|
8
|
-
created:
|
8
|
+
created: 2021-03-20 12:08:00 +0800
|
9
9
|
madified:
|
10
10
|
***********************************************/
|
11
11
|
`timescale 1ns/1ps
|
@@ -26,15 +26,15 @@ data_inf_c #(.DSIZE(8)) inter_tf (.clock(clock),.rst_n(rst_n)) ;
|
|
26
26
|
|
27
27
|
//==========================================================================
|
28
28
|
//-------- expression ------------------------------------------------------
|
29
|
-
assign
|
30
|
-
assign
|
29
|
+
assign clock = axis_out.aclk;
|
30
|
+
assign rst_n = axis_out.aresetn;
|
31
31
|
|
32
32
|
always_ff@(posedge clock,negedge rst_n) begin
|
33
33
|
if(~rst_n)begin
|
34
|
-
|
34
|
+
cnt <= '0;
|
35
35
|
end
|
36
36
|
else begin
|
37
|
-
|
37
|
+
cnt <= (cnt+1'b1);
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
@@ -5,12 +5,10 @@ _______________________________________
|
|
5
5
|
descript:
|
6
6
|
author : Cook.Darwin
|
7
7
|
Version: VERA.0.0
|
8
|
-
created:
|
8
|
+
created: 2021-03-20 12:08:01 +0800
|
9
9
|
madified:
|
10
10
|
***********************************************/
|
11
11
|
`timescale 1ns/1ps
|
12
|
-
`timescale 1ns/1ps
|
13
|
-
`timescale 1ns/1ps
|
14
12
|
|
15
13
|
module tb_exp_test_unit();
|
16
14
|
//==========================================================================
|
@@ -5,7 +5,7 @@ _______________________________________
|
|
5
5
|
descript:
|
6
6
|
author : Cook.Darwin
|
7
7
|
Version: VERA.0.0
|
8
|
-
created:
|
8
|
+
created: 2021-03-20 12:08:00 +0800
|
9
9
|
madified:
|
10
10
|
***********************************************/
|
11
11
|
`timescale 1ns/1ps
|
@@ -25,14 +25,14 @@ module tu0 (
|
|
25
25
|
//==========================================================================
|
26
26
|
//-------- expression ------------------------------------------------------
|
27
27
|
initial begin
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
28
|
+
to_down_pass = 1'b0;
|
29
|
+
wait(from_up_pass);
|
30
|
+
$root.tb_exp_test_unit.test_unit_region = "tu0";
|
31
|
+
$root.tb_exp_test_unit.rtl_top.sub_md1_inst.enable = 1'b1;
|
32
|
+
#(1us);
|
33
|
+
$root.tb_exp_test_unit.rtl_top.sub_md1_inst.enable = 1'b0;
|
34
|
+
#(500us);
|
35
|
+
to_down_pass = 1'b1;
|
36
36
|
end
|
37
37
|
|
38
38
|
endmodule
|
@@ -14,13 +14,13 @@ module exmple_md #(
|
|
14
14
|
parameter DSIZE = 8,
|
15
15
|
parameter real MK = 1.1
|
16
16
|
)(
|
17
|
-
input
|
18
|
-
output
|
19
|
-
input [7:0]
|
20
|
-
output [15:0]
|
21
|
-
output logic[
|
22
|
-
input
|
23
|
-
input
|
17
|
+
input insdata,
|
18
|
+
output outsdata,
|
19
|
+
input [7:0] inpdata,
|
20
|
+
output [15:0] outpdata,
|
21
|
+
output logic[DSIZE-1:0] ldata,
|
22
|
+
input clock,
|
23
|
+
input rst_n
|
24
24
|
);
|
25
25
|
|
26
26
|
//==========================================================================
|
@@ -32,18 +32,18 @@ logic [6-1:0] tmp_data[9-1:0][7-1:0] ;
|
|
32
32
|
|
33
33
|
//==========================================================================
|
34
34
|
//-------- expression ------------------------------------------------------
|
35
|
-
assign
|
35
|
+
assign outsdata = insdata;
|
36
36
|
|
37
37
|
always_comb begin
|
38
|
-
|
38
|
+
outpdata[8:0] = inpdata;
|
39
39
|
end
|
40
40
|
|
41
|
-
|
41
|
+
always@(posedge clock,negedge rst_n) begin
|
42
42
|
if(~rst_n)begin
|
43
|
-
|
43
|
+
ldata <= '0;
|
44
44
|
end
|
45
45
|
else begin
|
46
|
-
|
46
|
+
ldata[DSIZE-1:0] <= (outpdata[7:0]+insdata);
|
47
47
|
end
|
48
48
|
end
|
49
49
|
|
@@ -23,85 +23,85 @@ data_inf_c #(.DSIZE(18)) c_inf [2:0][6:0][7:0] (.clock(dclk),.rst_n(drstn)) ;
|
|
23
23
|
//==========================================================================
|
24
24
|
//-------- expression ------------------------------------------------------
|
25
25
|
always_comb begin
|
26
|
-
|
27
|
-
|
26
|
+
tmp1 = a_inf.data[6-1];
|
27
|
+
a_inf.valid = 1;
|
28
28
|
if(0)begin
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
29
|
+
tmp1 = 90;
|
30
|
+
tmp1 = a_inf.data[6-1];
|
31
|
+
a_inf.valid = 1;
|
32
|
+
a_inf.data[6:3] = 12+(a_inf.data[6:0]+tmp1);
|
33
|
+
a_inf.data[6:3] = 12+(tmp1+a_inf.data[6:0]);
|
34
|
+
a_inf.data = 12+12;
|
35
|
+
"90"+"0";
|
36
36
|
end
|
37
37
|
else if(1)begin
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
38
|
+
c_inf[0][0][1].valid = 1;
|
39
|
+
c_inf[0][0][1].data = 0;
|
40
|
+
c_inf[0][0][1].data[0] = 3;
|
41
|
+
c_inf[0][0][1].data[0] = 3<=7;
|
42
|
+
c_inf.data[0][0][0] = 0;
|
43
43
|
end
|
44
44
|
else begin
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
45
|
+
c_inf[0][0][1].valid = 1;
|
46
|
+
c_inf[0][0][1].data = 0;
|
47
|
+
c_inf[0][0][1].data[0] = 3;
|
48
|
+
c_inf[0][0][1].data[0] = 3<=7;
|
49
|
+
c_inf.data[0][0][0] = 0;
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
53
53
|
always_comb begin
|
54
|
-
|
55
|
-
|
54
|
+
tmp1 = a_inf.data[6-1];
|
55
|
+
a_inf.valid = 1;
|
56
56
|
if(tmp1)begin
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
57
|
+
tmp1 = 90;
|
58
|
+
tmp1 = a_inf.data[6-1];
|
59
|
+
a_inf.valid = 1;
|
60
|
+
a_inf.data[6:3] = 12+(a_inf.data[6:0]+tmp1);
|
61
|
+
a_inf.data[6:3] = 12+(tmp1+a_inf.data[6:0]);
|
62
|
+
a_inf.data = 12+12;
|
63
|
+
"90"+"0";
|
64
64
|
if(9999)begin
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
65
|
+
a_inf.valid = 1;
|
66
|
+
a_inf.data[6:3] = 12+(a_inf.data[6:0]+tmp1);
|
67
|
+
a_inf.data[6:3] = 12+(tmp1+a_inf.data[6:0]);
|
68
|
+
a_inf.data = 12+12;
|
69
69
|
end
|
70
70
|
end
|
71
|
-
else if(
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
71
|
+
else if(tmp1>1)begin
|
72
|
+
c_inf[0][0][1].valid = 1;
|
73
|
+
c_inf[0][0][1].data = 0;
|
74
|
+
c_inf[0][0][1].data[0] = 3;
|
75
|
+
c_inf[0][0][1].data[0] = 3<=7;
|
76
|
+
c_inf.data[0][0][0] = 0;
|
77
77
|
end
|
78
78
|
else if(~tmp1)begin
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
79
|
+
c_inf[0][0][1].valid = 1;
|
80
|
+
c_inf[0][0][1].data = 0;
|
81
|
+
c_inf[0][0][1].data[0] = 3;
|
82
|
+
c_inf[0][0][1].data[0] = 3<=7;
|
83
|
+
c_inf.data[0][0][0] = 0;
|
84
84
|
end
|
85
|
-
else if(
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
85
|
+
else if(tmp1>c_inf[0][0][1].data)begin
|
86
|
+
c_inf[0][0][1].valid = 1;
|
87
|
+
c_inf[0][0][1].data = 0;
|
88
|
+
c_inf[0][0][1].data[0] = 3;
|
89
|
+
c_inf[0][0][1].data[0] = 3<=7;
|
90
|
+
c_inf.data[0][0][0] = 0;
|
91
91
|
end
|
92
|
-
else if(
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
92
|
+
else if(c_inf[0][0][1].data+tmp0[0][0][0])begin
|
93
|
+
c_inf[0][0][1].valid = 1;
|
94
|
+
c_inf[0][0][1].data = 0;
|
95
|
+
c_inf[0][0][1].data[0] = 3;
|
96
|
+
c_inf[0][0][1].data[0] = 3<=7;
|
97
|
+
c_inf.data[0][0][0] = 0;
|
98
98
|
end
|
99
99
|
else begin
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
100
|
+
c_inf[0][0][1].valid = 1;
|
101
|
+
c_inf[0][0][1].data = 0;
|
102
|
+
c_inf[0][0][1].data[0] = 3;
|
103
|
+
c_inf[0][0][1].data[0] = 3<=7;
|
104
|
+
c_inf.data[0][0][0] = 0;
|
105
105
|
end
|
106
106
|
end
|
107
107
|
|
@@ -28,8 +28,8 @@ data_inf_c #(.DSIZE(8)) c_inf [2:0][6:0][7:0] (.clock(dclk),.rst_n(drstn)) ;
|
|
28
28
|
|
29
29
|
//==========================================================================
|
30
30
|
//-------- expression ------------------------------------------------------
|
31
|
-
|
32
|
-
|
31
|
+
always@(posedge clock,negedge rst_n) begin
|
32
|
+
(32*2-5)-6;
|
33
33
|
end
|
34
34
|
|
35
35
|
endmodule
|
@@ -28,38 +28,38 @@ data_inf_c #(.DSIZE(8)) c_inf [2:0][6:0][7:0] (.clock(dclk),.rst_n(drstn)) ;
|
|
28
28
|
|
29
29
|
//==========================================================================
|
30
30
|
//-------- expression ------------------------------------------------------
|
31
|
-
|
31
|
+
always@(posedge clock) begin
|
32
32
|
case(tmp0)
|
33
33
|
a_inf.data:begin
|
34
34
|
if(90)begin
|
35
|
-
|
35
|
+
tmp1 <= 0;
|
36
36
|
end
|
37
37
|
else begin
|
38
|
-
|
38
|
+
tmp1 <= 1;
|
39
39
|
end
|
40
40
|
end
|
41
41
|
1,2:begin
|
42
42
|
if(90)begin
|
43
|
-
|
43
|
+
tmp1 <= 0;
|
44
44
|
end
|
45
45
|
else begin
|
46
|
-
|
46
|
+
tmp1 <= 1;
|
47
47
|
end
|
48
48
|
end
|
49
49
|
c_inf[0][1][2].data,2:begin
|
50
50
|
if(c_inf[0][1][2].valid)begin
|
51
|
-
|
51
|
+
tmp1 <= 0;
|
52
52
|
end
|
53
53
|
else begin
|
54
|
-
|
54
|
+
tmp1 <= 1;
|
55
55
|
end
|
56
56
|
end
|
57
57
|
default:begin
|
58
58
|
if(909)begin
|
59
|
-
|
59
|
+
tmp1 <= 0;
|
60
60
|
end
|
61
61
|
else begin
|
62
|
-
|
62
|
+
tmp1 <= 1;
|
63
63
|
end
|
64
64
|
end
|
65
65
|
endcase
|
@@ -69,34 +69,34 @@ always_comb begin
|
|
69
69
|
case(tmp0)
|
70
70
|
a_inf.data:begin
|
71
71
|
if(90)begin
|
72
|
-
|
72
|
+
tmp1 = 0;
|
73
73
|
end
|
74
74
|
else begin
|
75
|
-
|
75
|
+
tmp1 = 1;
|
76
76
|
end
|
77
77
|
end
|
78
78
|
1,2:begin
|
79
79
|
if(90)begin
|
80
|
-
|
80
|
+
tmp1 = 0;
|
81
81
|
end
|
82
82
|
else begin
|
83
|
-
|
83
|
+
tmp1 = 1;
|
84
84
|
end
|
85
85
|
end
|
86
86
|
c_inf[0][1][2].data,2:begin
|
87
87
|
if(c_inf[0][1][2].valid)begin
|
88
|
-
|
88
|
+
tmp1 = 0;
|
89
89
|
end
|
90
90
|
else begin
|
91
|
-
|
91
|
+
tmp1 = 1;
|
92
92
|
end
|
93
93
|
end
|
94
94
|
default:begin
|
95
95
|
if(909)begin
|
96
|
-
|
96
|
+
tmp1 = 0;
|
97
97
|
end
|
98
98
|
else begin
|
99
|
-
|
99
|
+
tmp1 = 1;
|
100
100
|
end
|
101
101
|
end
|
102
102
|
endcase
|
@@ -21,22 +21,22 @@ module head_pkg_module import test_package::*;(
|
|
21
21
|
//-------- define ----------------------------------------------------------
|
22
22
|
z_ing y0;
|
23
23
|
z_ing curr_y0;
|
24
|
-
logic [
|
24
|
+
logic [$clog2(NUM*8)-1:0] clog2_data ;
|
25
25
|
|
26
26
|
//==========================================================================
|
27
27
|
//-------- instance --------------------------------------------------------
|
28
28
|
|
29
29
|
//==========================================================================
|
30
30
|
//-------- expression ------------------------------------------------------
|
31
|
-
assign
|
32
|
-
assign
|
33
|
-
assign
|
31
|
+
assign out = NUM;
|
32
|
+
assign out = data;
|
33
|
+
assign struct_z_l[8].op[0] = 0;
|
34
34
|
|
35
|
-
assign
|
36
|
-
assign
|
37
|
-
assign
|
38
|
-
assign
|
35
|
+
assign y0.op = 1'b0;
|
36
|
+
assign y0.op[0] = 1'd0;
|
37
|
+
assign y0.op[1] = struct_z.op[1];
|
38
|
+
assign y0.op[y0.op[3:1]] = struct_z.op;
|
39
39
|
|
40
|
-
assign
|
40
|
+
assign curr_y0 = struct_z;
|
41
41
|
|
42
42
|
endmodule
|
@@ -22,6 +22,6 @@ data_inf_c #(.DSIZE(8)) c_inf [2:0][6:0][7:0] (.clock(dclk),.rst_n(drstn)) ;
|
|
22
22
|
|
23
23
|
//==========================================================================
|
24
24
|
//-------- expression ------------------------------------------------------
|
25
|
-
assign
|
25
|
+
assign tmp1 = tmp0[0]&"FALSE" &&(c_inf.data==3 ||a_inf.valid|1'b0);
|
26
26
|
|
27
27
|
endmodule
|
@@ -37,39 +37,39 @@ SE_STATE_ctrl_state CSTATE_ctrl_state,NSTATE_ctrl_state;
|
|
37
37
|
always_comb begin
|
38
38
|
case(CSTATE_ctrl_state)
|
39
39
|
IDLE:begin
|
40
|
-
|
40
|
+
NSTATE_ctrl_state = EXEC;
|
41
41
|
end
|
42
42
|
EXEC:begin
|
43
43
|
if(90)begin
|
44
|
-
|
44
|
+
NSTATE_ctrl_state = DONE;
|
45
45
|
end
|
46
46
|
else begin
|
47
|
-
|
47
|
+
NSTATE_ctrl_state = EXEC;
|
48
48
|
end
|
49
49
|
end
|
50
50
|
DONE:begin
|
51
|
-
|
51
|
+
NSTATE_ctrl_state = IDLE;
|
52
52
|
end
|
53
53
|
default:begin
|
54
|
-
|
54
|
+
NSTATE_ctrl_state = IDLE;
|
55
55
|
end
|
56
56
|
endcase
|
57
57
|
end
|
58
58
|
|
59
|
-
|
59
|
+
always@(posedge clock,negedge rst_n) begin
|
60
60
|
if(~rst_n)begin
|
61
|
-
|
61
|
+
a_inf.data <= '0;
|
62
62
|
end
|
63
63
|
else begin
|
64
64
|
case(NSTATE_ctrl_state)
|
65
65
|
IDLE:begin
|
66
|
-
|
66
|
+
a_inf.data <= 8'd9;
|
67
67
|
end
|
68
68
|
EXEC:begin
|
69
|
-
|
69
|
+
a_inf.data <= 8'h12;
|
70
70
|
end
|
71
71
|
default:begin
|
72
|
-
|
72
|
+
a_inf.data <= ~('0);
|
73
73
|
end
|
74
74
|
endcase
|
75
75
|
end
|