vertigo_vhdl 0.8.12 → 0.8.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/vertigo/parser.rb +3 -0
- data/lib/vertigo/version.rb +1 -1
- data/tests/parser_tests/test_LUT.vhd +62 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3f7eecaed2d4b5a72e742bb50665fe8dc039c540ba3ccf97a5c78938b3eadec4
|
4
|
+
data.tar.gz: 04eaa1b607442048ef566c5bd067bf9c93e37bca35f8c60ed44301a6454423f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b4d1b525899302571608d769efd34992e00310f9a851b920e82a39441e86fcfffa602f65ced5747c95acd5c75b44f610e190fe650dd1feb85acfe738c83ef8d7
|
7
|
+
data.tar.gz: 95862bbfc72888c6f48433ac4c019fbbf8294543f2e3b5a2db3cffce76fe867172bc1fba446602900b8591906ad059b7051cac7cbeedf74881c9c13446b10d68
|
data/lib/vertigo/parser.rb
CHANGED
data/lib/vertigo/version.rb
CHANGED
@@ -0,0 +1,62 @@
|
|
1
|
+
-- ghdl -a [nom].vhd
|
2
|
+
-- vertigo --gen_tb [nom].vhd
|
3
|
+
-- ghdl -a [nom_tb].vhd
|
4
|
+
-- ghdl -e [nom_tb]
|
5
|
+
-- ghdl -r [nom_tb]
|
6
|
+
-- ghdl -r [nom_tb] --wave=[nom_wave].ghw
|
7
|
+
-- gtkwave [nom].ghw
|
8
|
+
|
9
|
+
library ieee;
|
10
|
+
use ieee.std_logic_1164.all;
|
11
|
+
use ieee.numeric_std.all;
|
12
|
+
|
13
|
+
entity LUT is
|
14
|
+
port (
|
15
|
+
clk : in std_logic;
|
16
|
+
rst : in std_logic;
|
17
|
+
push : in std_logic;
|
18
|
+
a : in std_logic;
|
19
|
+
b : in std_logic;
|
20
|
+
bitstream : in std_logic;
|
21
|
+
f : out std_logic
|
22
|
+
|
23
|
+
);
|
24
|
+
end LUT;
|
25
|
+
|
26
|
+
architecture arch of LUT is
|
27
|
+
signal Q : std_logic_vector (3 downto 0);
|
28
|
+
signal T : std_logic_vector (1 downto 0);
|
29
|
+
begin
|
30
|
+
|
31
|
+
process(clk, rst) is
|
32
|
+
begin
|
33
|
+
|
34
|
+
if rst = '0' then
|
35
|
+
Q(0) <= '0';
|
36
|
+
Q(1) <= '0';
|
37
|
+
Q(2) <= '0';
|
38
|
+
Q(3) <= '0';
|
39
|
+
|
40
|
+
elsif rising_edge(clk) then
|
41
|
+
if push = '1' then
|
42
|
+
Q(0) <= bitstream;
|
43
|
+
Q(1) <= Q(0);
|
44
|
+
Q(2) <= Q(1);
|
45
|
+
Q(3) <= Q(2);
|
46
|
+
end if;
|
47
|
+
end if;
|
48
|
+
end process;
|
49
|
+
|
50
|
+
process (a, b) is
|
51
|
+
begin
|
52
|
+
t(0) <= a;
|
53
|
+
t(1) <= b;
|
54
|
+
case t is
|
55
|
+
when "00" => f <= Q(0);
|
56
|
+
when "01" => f <= Q(1);
|
57
|
+
when "10" => f <= Q(2);
|
58
|
+
when "11" => f <= Q(3);
|
59
|
+
when others => f <= Q(0);
|
60
|
+
end case;
|
61
|
+
end process;
|
62
|
+
end arch;
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vertigo_vhdl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jean-Christophe Le Lann
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-10-18 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A Ruby handwritten VHDL parser and utilities
|
14
14
|
email: jean-christophe.le_lann@ensta-bretagne.fr
|
@@ -39,6 +39,7 @@ files:
|
|
39
39
|
- tests/ghdl_tests/arbitre_tb.vhd
|
40
40
|
- tests/ghdl_tests/fsm.vhd
|
41
41
|
- tests/ghdl_tests/fsm_synth.vhd
|
42
|
+
- tests/parser_tests/test_LUT.vhd
|
42
43
|
- tests/parser_tests/test_MUST_fail.vhd
|
43
44
|
- tests/parser_tests/test_accelerator.vhd
|
44
45
|
- tests/parser_tests/test_adder_rca_vhdl93.vhd
|