axi_tdl 0.0.3 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/Gemfile.lock +1 -16
- data/README.md +6 -1
- data/axi_tdl.gemspec +4 -4
- data/lib/axi/AXI_stream/axis_head_cut_verc.rb +1 -1
- data/lib/axi/AXI_stream/axis_rom_contect_sim.rb +1 -0
- data/lib/axi_tdl.rb +13 -4
- data/lib/axi_tdl/version.rb +1 -1
- data/lib/tdl/examples/11_test_unit/tb_exp_test_unit.sv +1 -0
- data/lib/tdl/examples/2_hdl_class/tmp/test_module_var.sv +1 -1
- data/lib/tdl/examples/8_top_module/tb_test_top.sv +0 -1
- data/lib/tdl/exlib/test_point.rb +8 -2
- data/lib/tdl/sdlmodule/sdlmodule_draw.rb +13 -1
- data/lib/tdl/tdl.rb +1 -1
- data/lib/tdl/tdlerror/tdlerror.rb +1 -0
- metadata +4 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 00bfed5eb26a33d38a48a0e32bd56d6dc164e626c24522b8c1a5a93c7c16740a
|
4
|
+
data.tar.gz: 14da5ba3c724ec1e1e125db77fc7bf658819673246fe2095d0aa593bb795a9b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a60c937d6c3fc10ff43f7611708f4dd5a249b2d20a794ac8d339970d7bf23a3c3474e738d4977679e6e8720ccf879583f7897d1757b0e4ef02e0fa30c98c87f
|
7
|
+
data.tar.gz: 2a8647634e5eb6dd4ed2cc34d1918a855c91fe03049ba610329391f8918ac5299060fa15560dd6f550537834959b84bf2c35e743c1938bd4bc0eb6bfa2e3c50c
|
data/.gitignore
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,32 +1,18 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
axi_tdl (0.0.
|
4
|
+
axi_tdl (0.0.8)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
8
8
|
specs:
|
9
9
|
coderay (1.1.3)
|
10
|
-
diff-lcs (1.4.4)
|
11
10
|
method_source (1.0.0)
|
12
11
|
minitest (5.14.3)
|
13
12
|
pry (0.14.0)
|
14
13
|
coderay (~> 1.1)
|
15
14
|
method_source (~> 1.0)
|
16
15
|
rake (10.5.0)
|
17
|
-
rspec (3.10.0)
|
18
|
-
rspec-core (~> 3.10.0)
|
19
|
-
rspec-expectations (~> 3.10.0)
|
20
|
-
rspec-mocks (~> 3.10.0)
|
21
|
-
rspec-core (3.10.1)
|
22
|
-
rspec-support (~> 3.10.0)
|
23
|
-
rspec-expectations (3.10.1)
|
24
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
25
|
-
rspec-support (~> 3.10.0)
|
26
|
-
rspec-mocks (3.10.2)
|
27
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
28
|
-
rspec-support (~> 3.10.0)
|
29
|
-
rspec-support (3.10.2)
|
30
16
|
|
31
17
|
PLATFORMS
|
32
18
|
ruby
|
@@ -37,7 +23,6 @@ DEPENDENCIES
|
|
37
23
|
minitest
|
38
24
|
pry
|
39
25
|
rake (~> 10.0)
|
40
|
-
rspec
|
41
26
|
|
42
27
|
BUNDLED WITH
|
43
28
|
1.17.3
|
data/README.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Axi
|
2
|
-
  It is a wonderful library of axi4, but it is not full axi4, It is designed by systemverilog. I compact axi4 and add something to it.
|
2
|
+
  It is a wonderful library of axi4, but it is not full axi4, It is designed by systemverilog. I compact axi4 and add something to it.
|
3
|
+
  axi hdl path
|
4
|
+
```ruby
|
5
|
+
require 'axi_tdl'
|
6
|
+
AxiTdl::AXI_PATH
|
7
|
+
```
|
3
8
|
# Other
|
4
9
|
  It contain a simple interface that only define three signals, `valid`, `ready`, and `data`. I think it is useful for design.
|
5
10
|
|
data/axi_tdl.gemspec
CHANGED
@@ -11,12 +11,12 @@ Gem::Specification.new do |spec|
|
|
11
11
|
|
12
12
|
spec.summary = %q{Axi is a light weight axi library. Tdl is a hardware Construction language}
|
13
13
|
spec.description = %q{tdl is a hardware Construction language, it like chisel, but more intresting. It is a DSL and base on ruby. Finally, it convert to systemverilog. }
|
14
|
-
|
15
|
-
spec.homepage = "https://rubygems.org/gems/axi_tdl"
|
14
|
+
spec.homepage = "https://www.github.com/CookDarwin/axi_tdl"
|
15
|
+
# spec.homepage = "https://rubygems.org/gems/axi_tdl"
|
16
16
|
spec.license = "LGPL-2.1"
|
17
17
|
spec.files = Dir['lib/**/*']
|
18
18
|
spec.require_paths = ["lib"]
|
19
|
-
|
19
|
+
spec.required_ruby_version = '>= 2.5.0'
|
20
20
|
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
21
21
|
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
22
22
|
if spec.respond_to?(:metadata)
|
@@ -37,7 +37,7 @@ Gem::Specification.new do |spec|
|
|
37
37
|
|
38
38
|
spec.add_development_dependency "bundler", "~> 1.16"
|
39
39
|
spec.add_development_dependency "rake", "~> 10.0"
|
40
|
-
spec.add_development_dependency "rspec"
|
40
|
+
# spec.add_development_dependency "rspec"
|
41
41
|
spec.add_development_dependency "pry"
|
42
42
|
spec.add_development_dependency "minitest"
|
43
43
|
end
|
@@ -7,7 +7,7 @@ TdlBuild.axis_head_cut_verc(__dir__) do
|
|
7
7
|
port.axis.slaver - 'origin_inf'
|
8
8
|
port.axis.master - 'out_inf'
|
9
9
|
|
10
|
-
|
10
|
+
parameter.DX (origin_inf.DSIZE / param.BYTE_BITS)
|
11
11
|
|
12
12
|
Initial do
|
13
13
|
assert(param.DX < 17, "param.DX<%0d> !< 17",param.DX)
|
data/lib/axi_tdl.rb
CHANGED
@@ -1,6 +1,15 @@
|
|
1
1
|
require "axi_tdl/version"
|
2
2
|
require "tdl/tdl.rb"
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
3
|
+
|
4
|
+
module AxiTdl
|
5
|
+
AXI_PATH = File.expand_path(File.join(__dir__,"axi"))
|
6
|
+
TDL_PATH = File.expand_path(File.join(__dir__,"tdl"))
|
7
|
+
end
|
8
|
+
|
9
|
+
|
10
|
+
add_to_tdl_paths File.expand_path(File.join(__dir__, "axi/AXI_stream"))
|
11
|
+
add_to_tdl_paths File.expand_path(File.join(__dir__, "axi/AXI_stream/stream_cache"))
|
12
|
+
add_to_tdl_paths File.expand_path(File.join(__dir__, "axi/AXI4"))
|
13
|
+
add_to_tdl_paths File.expand_path(File.join(__dir__, "axi/AXI4/packet_partition"))
|
14
|
+
add_to_tdl_paths File.expand_path(File.join(__dir__, "axi/common"))
|
15
|
+
add_to_tdl_paths File.expand_path(File.join(__dir__, "axi/data_interface"))
|
data/lib/axi_tdl/version.rb
CHANGED
@@ -19,7 +19,7 @@ module test_module_var #(
|
|
19
19
|
|
20
20
|
//==========================================================================
|
21
21
|
//-------- define ----------------------------------------------------------
|
22
|
-
localparam ASIZE = 20
|
22
|
+
localparam ASIZE = 20;
|
23
23
|
axi_stream_inf #(.DSIZE(8),.USIZE(1)) tmp_axis_inf (.aclk(clock),.aresetn(rst_n),.aclken(1'b1)) ;
|
24
24
|
axi_stream_inf #(.DSIZE(8),.USIZE(1)) tmp_axis0_inf (.aclk(clock),.aresetn(rst_n),.aclken(1'b1)) ;
|
25
25
|
axi_inf #(.DSIZE(32),.IDSIZE(2),.ASIZE(8),.LSIZE(9),.MODE("BOTH"),.ADDR_STEP(4294967295)) tmp_axi4_inf (.axi_aclk(clock),.axi_aresetn(rst_n)) ;
|
data/lib/tdl/exlib/test_point.rb
CHANGED
@@ -113,12 +113,18 @@ module TdlSpace
|
|
113
113
|
def root_ref(&block)
|
114
114
|
ClassHDL::AssignDefOpertor.with_rollback_opertors(:old) do
|
115
115
|
rels = path_refs(&block)
|
116
|
+
if block_given?
|
117
|
+
sst = "block given"
|
118
|
+
else
|
119
|
+
sst = "no block"
|
120
|
+
end
|
121
|
+
|
116
122
|
if rels.size == 1
|
117
123
|
rels[0]
|
118
124
|
elsif rels.size == 0
|
119
|
-
raise TdlError.new "#{self} Cant find root ref"
|
125
|
+
raise TdlError.new "#{self} Cant find root ref {#{sst}}"
|
120
126
|
else
|
121
|
-
raise TdlError.new "#{self} Find multi root refs \n#{rels.join("\n")}\n"
|
127
|
+
raise TdlError.new "#{self} Find multi root refs {#{sst}} \n#{rels.join("\n")}\n"
|
122
128
|
end
|
123
129
|
end
|
124
130
|
end
|
@@ -1,5 +1,17 @@
|
|
1
1
|
## read sdlmodule head
|
2
|
-
|
2
|
+
class Tdl
|
3
|
+
@@__head_logo__ = nil
|
4
|
+
def self.head_logo
|
5
|
+
@@__head_logo__
|
6
|
+
end
|
7
|
+
|
8
|
+
def self.head_logo=(a)
|
9
|
+
@@__head_logo__ = a
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
$__sdlmodule_head_logo__ = Tdl.head_logo || File.open(File.join(__dir__,"sdlmodule_head_logo.txt")).read
|
14
|
+
|
3
15
|
class SdlModule
|
4
16
|
attr_accessor :origin_sv
|
5
17
|
|
data/lib/tdl/tdl.rb
CHANGED
@@ -123,7 +123,7 @@ require_relative "./exlib/dve_tcl.rb"
|
|
123
123
|
|
124
124
|
## === INIT BLOCK Methods =====
|
125
125
|
$argvs_hash = {}
|
126
|
-
$argvs_hash = Parser.parse(ARGV) unless $_child_argv_
|
126
|
+
$argvs_hash = Parser.parse($TdlARGV || ARGV) unless $_child_argv_
|
127
127
|
TopModule.sim = $argvs_hash[:sim]
|
128
128
|
|
129
129
|
class Tdl
|
@@ -1,5 +1,6 @@
|
|
1
1
|
class TdlError < ScriptError
|
2
2
|
def initialize(arge)
|
3
|
+
Tdl.PutsEnable = false
|
3
4
|
head_str0 = String.new("\n+_____________________________________________+\n")
|
4
5
|
head_str1 = "\n|----------------TDL ERROR--------------------|\n"
|
5
6
|
end_str0 = "\n+================TDL ERROR====================+\n"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: axi_tdl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cook.Darwin
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-02-
|
11
|
+
date: 2021-02-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -38,20 +38,6 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '10.0'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: rspec
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - ">="
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '0'
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - ">="
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
55
41
|
- !ruby/object:Gem::Dependency
|
56
42
|
name: pry
|
57
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -1275,7 +1261,7 @@ files:
|
|
1275
1261
|
- lib/tdl/testunit/test_all.rb
|
1276
1262
|
- lib/tdl/testunit/test_array_chain.rb
|
1277
1263
|
- lib/tdl/testunit/test_tmp.rb
|
1278
|
-
homepage: https://
|
1264
|
+
homepage: https://www.github.com/CookDarwin/axi_tdl
|
1279
1265
|
licenses:
|
1280
1266
|
- LGPL-2.1
|
1281
1267
|
metadata: {}
|
@@ -1287,7 +1273,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
1287
1273
|
requirements:
|
1288
1274
|
- - ">="
|
1289
1275
|
- !ruby/object:Gem::Version
|
1290
|
-
version:
|
1276
|
+
version: 2.5.0
|
1291
1277
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
1292
1278
|
requirements:
|
1293
1279
|
- - ">="
|