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
@@ -24,9 +24,9 @@ logic [32-1:0] data[32-1:0] ;
|
|
24
24
|
//-------- expression ------------------------------------------------------
|
25
25
|
always_comb begin
|
26
26
|
foreach(data[i1])begin
|
27
|
-
|
28
|
-
if(
|
29
|
-
|
27
|
+
4-i1;
|
28
|
+
if(i1==(NUM*4-i1))begin
|
29
|
+
data[i1] = '0;
|
30
30
|
end
|
31
31
|
end
|
32
32
|
end
|
@@ -30,23 +30,23 @@ typedef enum {
|
|
30
30
|
SE_STATE_ctrl CSTATE_ctrl,NSTATE_ctrl;
|
31
31
|
function status(input [7:0] code,output logic [15:0] pl);
|
32
32
|
if(89)begin
|
33
|
-
|
33
|
+
gp = code;
|
34
34
|
end
|
35
35
|
endfunction:status
|
36
36
|
|
37
37
|
function logic status_xp(input [7:0] code,output logic [15:0] pl);
|
38
|
-
|
38
|
+
status_xp = (inm!=0)|(inm!=1);
|
39
39
|
endfunction:status_xp
|
40
40
|
|
41
41
|
function SE_STATE_ctrl pre_status(input [7:0] code,output logic [15:0] pl,input SE_STATE_ctrl ll);
|
42
42
|
if(89)begin
|
43
|
-
|
44
|
-
|
43
|
+
gp = code;
|
44
|
+
pre_status = 0;
|
45
45
|
end
|
46
46
|
endfunction:pre_status
|
47
47
|
|
48
|
-
assign
|
49
|
-
assign
|
50
|
-
assign
|
48
|
+
assign gp = status(67,gp+1,opop);
|
49
|
+
assign gp = pre_status();
|
50
|
+
assign gp = (inm!=0)|(inm!=1);
|
51
51
|
|
52
52
|
endmodule
|
@@ -22,10 +22,10 @@ logic ppx;
|
|
22
22
|
//-------- expression ------------------------------------------------------
|
23
23
|
initial begin
|
24
24
|
assert(9)else begin
|
25
|
-
|
26
|
-
|
25
|
+
$error("iiiiiiiiiiiii");
|
26
|
+
$stop;
|
27
27
|
end
|
28
|
-
|
28
|
+
ppx = 1'b0;
|
29
29
|
end
|
30
30
|
|
31
31
|
endmodule
|
@@ -21,9 +21,9 @@ module test_module (
|
|
21
21
|
//==========================================================================
|
22
22
|
//-------- define ----------------------------------------------------------
|
23
23
|
logic [axi_wr_inf.ASIZE-1:0] addr ;
|
24
|
-
logic [
|
24
|
+
logic [axi_wr_inf.IDSIZE-4-1:0] id ;
|
25
25
|
logic [24-1:0] length ;
|
26
|
-
axi_inf #(.DSIZE(axi_wr_inf.DSIZE),.IDSIZE(
|
26
|
+
axi_inf #(.DSIZE(axi_wr_inf.DSIZE),.IDSIZE(axi_wr_inf.IDSIZE-4),.ASIZE(axi_wr_inf.ASIZE),.LSIZE(24),.MODE("ONLY_WRITE"),.ADDR_STEP(8192)) pre_axi_wr_inf (.axi_aclk(axi_wr_inf.axi_aclk),.axi_aresetn(axi_wr_inf.axi_aresetn)) ;
|
27
27
|
//==========================================================================
|
28
28
|
//-------- instance --------------------------------------------------------
|
29
29
|
axi_stream_cache_35bit cache_inst(
|
@@ -5,13 +5,12 @@ _______________________________________
|
|
5
5
|
descript:
|
6
6
|
author : Cook.Darwin
|
7
7
|
Version: VERA.0.0
|
8
|
-
created:
|
8
|
+
created: 2021-03-20 12:10:27 +0800
|
9
9
|
madified:
|
10
10
|
***********************************************/
|
11
11
|
|
12
12
|
|
13
|
-
|
14
|
-
parameter NUM = 6;
|
13
|
+
module test_packageparameter NUM = 6;();
|
15
14
|
//==========================================================================
|
16
15
|
//-------- define ----------------------------------------------------------
|
17
16
|
typedef struct {
|
@@ -33,6 +32,6 @@ s_ing s_ing_v1;
|
|
33
32
|
|
34
33
|
//==========================================================================
|
35
34
|
//-------- expression ------------------------------------------------------
|
36
|
-
assign
|
35
|
+
assign zing_v0.op[9] = 0;
|
37
36
|
|
38
|
-
|
37
|
+
endmodule
|
@@ -27,10 +27,10 @@ z_ing y0;
|
|
27
27
|
|
28
28
|
//==========================================================================
|
29
29
|
//-------- expression ------------------------------------------------------
|
30
|
-
assign
|
31
|
-
assign
|
30
|
+
assign out = NUM;
|
31
|
+
assign out = data;
|
32
32
|
|
33
|
-
assign
|
34
|
-
assign
|
33
|
+
assign y0.op = 0;
|
34
|
+
assign y0.op[0] = 0;
|
35
35
|
|
36
36
|
endmodule
|
@@ -37,8 +37,8 @@ s_map s_map_a1;
|
|
37
37
|
//==========================================================================
|
38
38
|
//-------- expression ------------------------------------------------------
|
39
39
|
function s_map f_g(input s_map fin);
|
40
|
-
|
41
|
-
|
40
|
+
f_g = fin.op;
|
41
|
+
f_g.yp = 1;
|
42
42
|
endfunction:f_g
|
43
43
|
|
44
44
|
endmodule
|
@@ -15,10 +15,10 @@ module text_generate #(
|
|
15
15
|
parameter BOARD_TOTAL = 4,
|
16
16
|
parameter WW = "OFF"
|
17
17
|
)(
|
18
|
-
input [
|
19
|
-
input [
|
20
|
-
input [
|
21
|
-
input [
|
18
|
+
input [NUM-1:0] ip_s_addr [32-1:0],
|
19
|
+
input [NUM-1:0] ip_d_addr [32-1:0],
|
20
|
+
input [NUM-1:0] mac_s_addr [48-1:0],
|
21
|
+
input [NUM-1:0] mac_d_addr [48-1:0],
|
22
22
|
input [15:0] fpga_udp_ctrl_port,
|
23
23
|
input [15:0] fpga_udp_data_port,
|
24
24
|
input [15:0] fpga_udp_dire_port,
|
@@ -43,12 +43,12 @@ for(genvar KK0=0;KK0 < NUM;KK0++)begin
|
|
43
43
|
for(genvar KK1=0;KK1 < 7;KK1++)begin
|
44
44
|
for(genvar KK2=0;KK2 < 6;KK2++)begin
|
45
45
|
|
46
|
-
if(
|
47
|
-
assign
|
46
|
+
if(KK0==2)begin
|
47
|
+
assign rx_udp_data_8bit[8*1][1*2] = "90909";
|
48
48
|
end end
|
49
49
|
end
|
50
50
|
end
|
51
51
|
endgenerate
|
52
|
-
assign
|
52
|
+
assign mac_s_addr[0][0] = mac_d_addr[0][0];
|
53
53
|
|
54
54
|
endmodule
|
@@ -13,12 +13,12 @@ madified:
|
|
13
13
|
module test_generate #(
|
14
14
|
parameter NUM = 8
|
15
15
|
)(
|
16
|
-
input [7:0]
|
17
|
-
output [7:0]
|
18
|
-
input [5:0]
|
19
|
-
output [
|
20
|
-
input [
|
21
|
-
output [
|
16
|
+
input [7:0] ain,
|
17
|
+
output [7:0] bout,
|
18
|
+
input [5:0] cin [NUM-1:0],
|
19
|
+
output [NUM-1:0] dout [6-1:0],
|
20
|
+
input [NUM-1:0] ein,
|
21
|
+
output [NUM-1:0] fout
|
22
22
|
);
|
23
23
|
|
24
24
|
//==========================================================================
|
@@ -32,18 +32,18 @@ module test_generate #(
|
|
32
32
|
//-------- expression ------------------------------------------------------
|
33
33
|
generate
|
34
34
|
for(genvar KK0=0;KK0 < 8;KK0++)begin
|
35
|
-
assign
|
35
|
+
assign bout[KK0] = ain[7-(KK0)];
|
36
36
|
end
|
37
37
|
endgenerate
|
38
38
|
|
39
39
|
generate
|
40
40
|
for(genvar KK0=0;KK0 < NUM;KK0++)begin
|
41
41
|
|
42
|
-
if(
|
43
|
-
assign
|
42
|
+
if(KK0<4)begin
|
43
|
+
assign dout[KK0] = cin[KK0];
|
44
44
|
end
|
45
45
|
else begin
|
46
|
-
assign
|
46
|
+
assign dout[KK0] = cin[KK0]+(KK0);
|
47
47
|
end
|
48
48
|
end
|
49
49
|
endgenerate
|
@@ -51,7 +51,7 @@ endgenerate
|
|
51
51
|
generate
|
52
52
|
for(genvar KK0=0;KK0 < NUM;KK0++)begin
|
53
53
|
for(genvar KK1=0;KK1 < 6;KK1++)begin
|
54
|
-
assign
|
54
|
+
assign fout[KK0][KK1] = ein[KK1][KK0];
|
55
55
|
end
|
56
56
|
end
|
57
57
|
endgenerate
|
@@ -29,8 +29,8 @@ logic [16-1:0] cc[2-1:0] ;
|
|
29
29
|
|
30
30
|
//==========================================================================
|
31
31
|
//-------- expression ------------------------------------------------------
|
32
|
-
assign
|
33
|
-
assign
|
34
|
-
assign
|
32
|
+
assign ca = {a0,a1,a2};
|
33
|
+
assign cb = {>>{b1,b0}};
|
34
|
+
assign cc = {<<{c0,c1}};
|
35
35
|
|
36
36
|
endmodule
|
@@ -5,13 +5,12 @@ _______________________________________
|
|
5
5
|
descript:
|
6
6
|
author : Cook.Darwin
|
7
7
|
Version: VERA.0.0
|
8
|
-
created:
|
8
|
+
created: 2021-03-20 12:10:27 +0800
|
9
9
|
madified:
|
10
10
|
***********************************************/
|
11
11
|
|
12
12
|
|
13
|
-
|
14
|
-
parameter BDSIZE = 10;
|
13
|
+
module body_packageparameter BDSIZE = 10;();
|
15
14
|
//==========================================================================
|
16
15
|
//-------- define ----------------------------------------------------------
|
17
16
|
|
@@ -22,4 +21,4 @@ parameter BDSIZE = 10;
|
|
22
21
|
//==========================================================================
|
23
22
|
//-------- expression ------------------------------------------------------
|
24
23
|
|
25
|
-
|
24
|
+
endmodule
|
@@ -11,8 +11,8 @@ madified:
|
|
11
11
|
`timescale 1ns/1ps
|
12
12
|
|
13
13
|
module example_pkg import head_package::*;(
|
14
|
-
input [
|
15
|
-
output logic[31:0]
|
14
|
+
input [HDSIZE-1:0] indata,
|
15
|
+
output logic[31:0] odata
|
16
16
|
);
|
17
17
|
|
18
18
|
//------>> EX CODE <<-------------------
|
@@ -29,7 +29,7 @@ s_head ss_head;
|
|
29
29
|
|
30
30
|
//==========================================================================
|
31
31
|
//-------- expression ------------------------------------------------------
|
32
|
-
assign
|
33
|
-
assign
|
32
|
+
assign ss_head.idata = 4;
|
33
|
+
assign ss_head.valid = 1'b1;
|
34
34
|
|
35
35
|
endmodule
|
@@ -5,13 +5,12 @@ _______________________________________
|
|
5
5
|
descript:
|
6
6
|
author : Cook.Darwin
|
7
7
|
Version: VERA.0.0
|
8
|
-
created:
|
8
|
+
created: 2021-03-20 12:10:27 +0800
|
9
9
|
madified:
|
10
10
|
***********************************************/
|
11
11
|
|
12
12
|
|
13
|
-
|
14
|
-
parameter HDSIZE = 8;
|
13
|
+
module head_packageparameter HDSIZE = 8;();
|
15
14
|
//==========================================================================
|
16
15
|
//-------- define ----------------------------------------------------------
|
17
16
|
typedef struct {
|
@@ -26,4 +25,4 @@ logic valid;
|
|
26
25
|
//==========================================================================
|
27
26
|
//-------- expression ------------------------------------------------------
|
28
27
|
|
29
|
-
|
28
|
+
endmodule
|
@@ -5,11 +5,10 @@ _______________________________________
|
|
5
5
|
descript:
|
6
6
|
author : Cook.Darwin
|
7
7
|
Version: VERA.0.0
|
8
|
-
created:
|
8
|
+
created: 2021-03-20 12:10:27 +0800
|
9
9
|
madified:
|
10
10
|
***********************************************/
|
11
11
|
`timescale 1ns/1ps
|
12
|
-
`timescale 1ns/1ps
|
13
12
|
|
14
13
|
module tb_test_top();
|
15
14
|
//==========================================================================
|
@@ -0,0 +1,34 @@
|
|
1
|
+
/**********************************************
|
2
|
+
_______________________________________
|
3
|
+
___________ Cook Darwin __________
|
4
|
+
_______________________________________
|
5
|
+
descript:
|
6
|
+
author : Cook.Darwin
|
7
|
+
Version: VERA.0.0
|
8
|
+
created: 2021-03-20 23:48:13 +0800
|
9
|
+
madified:
|
10
|
+
***********************************************/
|
11
|
+
`timescale 1ns/1ps
|
12
|
+
|
13
|
+
module test_clock_bb(
|
14
|
+
input from_up_pass,
|
15
|
+
output logic to_down_pass
|
16
|
+
);
|
17
|
+
|
18
|
+
//==========================================================================
|
19
|
+
//-------- define ----------------------------------------------------------
|
20
|
+
|
21
|
+
|
22
|
+
//==========================================================================
|
23
|
+
//-------- instance --------------------------------------------------------
|
24
|
+
|
25
|
+
//==========================================================================
|
26
|
+
//-------- expression ------------------------------------------------------
|
27
|
+
initial begin
|
28
|
+
to_down_pass = 1'b0;
|
29
|
+
wait(from_up_pass);
|
30
|
+
$root.tb_test_tttop_sim.test_unit_region = "test_clock_bb";
|
31
|
+
to_down_pass = 1'b1;
|
32
|
+
end
|
33
|
+
|
34
|
+
endmodule
|
@@ -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 20:34:51 +0800
|
9
9
|
madified:
|
10
10
|
***********************************************/
|
11
11
|
`timescale 1ns/1ps
|
@@ -23,7 +23,7 @@ test_top rtl_top(
|
|
23
23
|
//==========================================================================
|
24
24
|
//-------- expression ------------------------------------------------------
|
25
25
|
initial begin
|
26
|
-
|
26
|
+
forever begin #(33ns);gl_clk = ~gl_clk;end;
|
27
27
|
end
|
28
28
|
|
29
29
|
endmodule
|
@@ -23,7 +23,7 @@ test_tttop rtl_top(
|
|
23
23
|
//==========================================================================
|
24
24
|
//-------- expression ------------------------------------------------------
|
25
25
|
initial begin
|
26
|
-
|
26
|
+
forever begin #(33ns);gl_clk = ~gl_clk;end;
|
27
27
|
end
|
28
28
|
|
29
29
|
endmodule
|
@@ -0,0 +1,38 @@
|
|
1
|
+
/**********************************************
|
2
|
+
_______________________________________
|
3
|
+
___________ Cook Darwin __________
|
4
|
+
_______________________________________
|
5
|
+
descript:
|
6
|
+
author : Cook.Darwin
|
7
|
+
Version: VERA.0.0
|
8
|
+
created: xxxx.xx.xx
|
9
|
+
madified:
|
10
|
+
***********************************************/
|
11
|
+
`timescale 1ns/1ps
|
12
|
+
|
13
|
+
module tb_test_tttop_sim();
|
14
|
+
//==========================================================================
|
15
|
+
//-------- define ----------------------------------------------------------
|
16
|
+
logic gl_clk;
|
17
|
+
string test_unit_region;
|
18
|
+
logic unit_pass_u;
|
19
|
+
logic unit_pass_d;
|
20
|
+
|
21
|
+
//==========================================================================
|
22
|
+
//-------- instance --------------------------------------------------------
|
23
|
+
test_tttop_sim rtl_top(
|
24
|
+
/* input clock */.global_sys_clk (gl_clk )
|
25
|
+
);
|
26
|
+
test_clock_bb test_unit_0(
|
27
|
+
/* input */.from_up_pass (unit_pass_u ),
|
28
|
+
/* output */.to_down_pass (unit_pass_d )
|
29
|
+
);
|
30
|
+
//==========================================================================
|
31
|
+
//-------- expression ------------------------------------------------------
|
32
|
+
initial begin
|
33
|
+
forever begin #(33ns);gl_clk = ~gl_clk;end;
|
34
|
+
end
|
35
|
+
|
36
|
+
assign unit_pass_u = 1'b1;
|
37
|
+
|
38
|
+
endmodule
|