summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorLarry Doolittle <ldoolitt@recycle.lbl.gov>2017-11-10 18:47:08 -0800
committerLarry Doolittle <ldoolitt@recycle.lbl.gov>2017-11-10 18:47:08 -0800
commit2eff2a7e9fa7b1414e0c8c9019b16a0dc384b41c (patch)
treebd1392338bb57830a04728b545136bb36e1a756f /examples
parent5e431b2052690866e0fa102bb8e880d0ac21f575 (diff)
downloadvhdl2vl-2eff2a7e9fa7b1414e0c8c9019b16a0dc384b41c.tar.gz
vhdl2vl-2eff2a7e9fa7b1414e0c8c9019b16a0dc384b41c.zip
New make target: verilogcheck
Requires iverilog to operate. Scans resulting files in translated_examples directory. This patch includes some simple fixes to reduce the number of errors reported, but there are more that need further investigation.
Diffstat (limited to 'examples')
-rw-r--r--examples/ifchain2.vhd2
-rw-r--r--examples/wbit1.vhd21
2 files changed, 23 insertions, 0 deletions
diff --git a/examples/ifchain2.vhd b/examples/ifchain2.vhd
index 09794b1..e179960 100644
--- a/examples/ifchain2.vhd
+++ b/examples/ifchain2.vhd
@@ -3,12 +3,14 @@ USE IEEE.std_logic_1164.all;
entity ifchain is port(
clk, rstn : in std_logic;
+ enable: in std_logic;
result: out std_logic
);
end ifchain;
architecture rtl of ifchain is
signal counter : std_logic_vector(3 downto 0);
+ constant CLK_DIV_VAL : unsigned(3 downto 0) := 11;
begin
clk_src : process(clk, rstn) is
diff --git a/examples/wbit1.vhd b/examples/wbit1.vhd
new file mode 100644
index 0000000..12b1e38
--- /dev/null
+++ b/examples/wbit1.vhd
@@ -0,0 +1,21 @@
+-- Nearly useless stub, it's here to support generate.vhd
+LIBRARY IEEE;
+USE IEEE.std_logic_1164.all;
+
+entity wbit1 is
+ port(
+ clk : in std_logic;
+ wrb : in std_logic;
+ reset : in std_logic;
+ enb : in std_logic;
+ din : in std_logic;
+ dout : out std_logic);
+end;
+
+architecture rtl of wbit1 is
+ signal foo : std_logic;
+begin
+ process(clk) begin
+ dout <= '1';
+ end process;
+end rtl;
OpenPOWER on IntegriCloud