HDLRuby 2.0.14 → 2.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 18e9c66c12cae1f0006e0cabdf39eed47abfd91e
4
- data.tar.gz: ed9019a6449d95d522ac542160871789023b8440
3
+ metadata.gz: 9c8d6975dfac68a4e9a54d3a772d512dba87bee4
4
+ data.tar.gz: 957abda1e77894ba5d3cf5ac05ce22bacffd2cd9
5
5
  SHA512:
6
- metadata.gz: 00f4474c5cd66da9ebfd727aa42724472e2b6f62b49d2b7f63704c20549d564f4fc0ea217243869277091c086460872528f5cdc723aa0ca98bc3824da4ec8fc0
7
- data.tar.gz: 150f3195c3779a826dd1927e55b3bf2f9d03e0aa700393f018875d2c6a4abf13e5e1f97016c86ecd9bdfc2301585efbcb6d1f92be9e1f8948716504571c8d024
6
+ metadata.gz: 8e687d57b6508f485e7e9d714cd2d87535109ed5a0b71a69de1a649c502085766cef33e5d4a8133d44e0c860db81bcf9ca9f811efed9efe2406b126afb1f5f92
7
+ data.tar.gz: 31ce90cd66430720a085ef8e56232ea7261b1f55f4c0828583616f05371409215d2fef926bcfbe5131287b766945bb0c9f3ceb7def708757229d23a9521812b2
data/README.md CHANGED
@@ -3,6 +3,20 @@
3
3
  HDLRuby is a library for describing and simulating digital electronic
4
4
  systems.
5
5
 
6
+ __Install__:
7
+
8
+ The recommended installation method is from rubygem as follows:
9
+
10
+ ```
11
+ gem install HDLRuby
12
+ ```
13
+
14
+ Developpers indending to contribute to HDLRuby can install the sources from github as follows:
15
+
16
+ ```
17
+ git clone HDLRuby
18
+ ```
19
+
6
20
  __Warning__:
7
21
 
8
22
  - This is still preliminary work which may change a before we release a stable version.
@@ -13,7 +27,7 @@ __Warning__:
13
27
 
14
28
  ## Using the HDLRuby compiler
15
29
 
16
- 'hdrcc' is the HDLRuby compiler. It takes as input a HDLRuby file, checks it, and can produce as output a Verilog HDL or a YAML low-level descriptions of a HW components but also simulate the input description.
30
+ 'hdrcc' is the HDLRuby compiler. It takes as input a HDLRuby file, checks it, and can produce as output a Verilog HDL, VHDL or a YAML low-level descriptions of a HW components but it can also simulate the input description.
17
31
 
18
32
 
19
33
  __Usage__:
@@ -46,6 +60,7 @@ __Notes__:
46
60
 
47
61
  * If no top system is given, it is automatically looked for from the input file.
48
62
  * If no option is given, simply checks the input file.
63
+ * The simulator option (-S) requires a standard compiler (accessible through the command `cc`) to be available in the executable path.
49
64
 
50
65
  __Examples__:
51
66
 
data/lib/HDLRuby/hdrcc.rb CHANGED
@@ -515,12 +515,13 @@ elsif $options[:clang] then
515
515
  # Generate and execute the simulation commands.
516
516
  # Kernel.system("cp -n #{simdir}* #{$output}/; cd #{$output}/ ; make -s ; ./hruby_simulator")
517
517
  Dir.entries(simdir).each do |filename|
518
- unless File.directory?(filename) then
518
+ if !File.directory?(filename) && /\.[ch]$/ === filename then
519
519
  FileUtils.cp(simdir + "/" + filename,$output)
520
520
  end
521
521
  end
522
522
  Dir.chdir($output)
523
- Kernel.system("make -s")
523
+ # Kernel.system("make -s")
524
+ Kernel.system("cc -o3 -o hruby_simulator *.c")
524
525
  Kernel.system("./hruby_simulator")
525
526
  end
526
527
  elsif $options[:verilog] then
@@ -1,3 +1,3 @@
1
1
  module HDLRuby
2
- VERSION = "2.0.14"
2
+ VERSION = "2.0.15"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: HDLRuby
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.14
4
+ version: 2.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lovic Gauthier
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-12-30 00:00:00.000000000 Z
11
+ date: 2020-01-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler