logicuit 0.1.4 → 0.1.5
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 +4 -4
- data/README.md +4 -8
- data/lib/logicuit/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 43a3513f7c19e4125cca8f7ea6d242f06eecdf9bc7e48bc4afa11524f0cbce51
|
4
|
+
data.tar.gz: 5b301e47822f01ae50798cb40c636e07ef72f2557812451a69fb42327bb48f87
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 546e6f2dd4b6dbb76bf195da77f756391bccfa1e9606790f54a66131b60acae68f4fe1858b5915c03e8bfb47a96aea630d411db388d286b5fa208f862664301f
|
7
|
+
data.tar.gz: 26a33fc73deda4d50bb9bfd70ba9ddeeb13e83d379c0e97f3eacf4a8761f58c55a25f7d72f2267255d4ab437df676a80b4aea5a62424f9b6cf9315519f473270
|
data/README.md
CHANGED
@@ -18,7 +18,7 @@ gem install logicuit
|
|
18
18
|
|
19
19
|
## Usage
|
20
20
|
|
21
|
-
This is the code to create a 1
|
21
|
+
This is the code to create a Multiplexer with 2 inputs and 1 output:
|
22
22
|
|
23
23
|
```
|
24
24
|
require 'logicuit'
|
@@ -47,21 +47,17 @@ Logicuit.run(:MY_MUX)
|
|
47
47
|
you can execute a same circuit by the following as a one-liner:
|
48
48
|
|
49
49
|
```
|
50
|
-
|
50
|
+
ruby -r ./lib/logicuit -e 'Logicuit.run(:mux)'
|
51
51
|
```
|
52
52
|
|
53
53
|
you can similarly execute other circuits with the following commands:
|
54
54
|
|
55
55
|
```
|
56
|
-
|
56
|
+
ruby -r ./lib/logicuit -e 'Logicuit.run(:dff)'
|
57
57
|
```
|
58
58
|
|
59
59
|
```
|
60
|
-
|
61
|
-
```
|
62
|
-
|
63
|
-
```
|
64
|
-
$ ruby -r ./lib/logicuit -e 'Logicuit.run(:one_bit_cpu)'
|
60
|
+
ruby -r ./lib/logicuit -e 'Logicuit.run(:one_bit_cpu)'
|
65
61
|
```
|
66
62
|
|
67
63
|
## Development
|
data/lib/logicuit/version.rb
CHANGED