aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorSergeyDegtyar <sndegtyar@gmail.com>2019-08-29 10:49:46 +0300
committerSergeyDegtyar <sndegtyar@gmail.com>2019-08-29 10:49:46 +0300
commitd588c6898fb7cfebe52a71a48d6fb21d1623e61b (patch)
tree4b60a8f4c62c1b8be6f011531c978d6fc6665f86 /tests
parentfe58790f3789a79b867660031d7e3e28cb3fff20 (diff)
downloadyosys-d588c6898fb7cfebe52a71a48d6fb21d1623e61b.tar.gz
yosys-d588c6898fb7cfebe52a71a48d6fb21d1623e61b.tar.bz2
yosys-d588c6898fb7cfebe52a71a48d6fb21d1623e61b.zip
Add comments for examples from Lattice user guide
Diffstat (limited to 'tests')
-rw-r--r--tests/ice40/dpram.v3
-rw-r--r--tests/ice40/macc.v3
-rw-r--r--tests/ice40/rom.v3
3 files changed, 9 insertions, 0 deletions
diff --git a/tests/ice40/dpram.v b/tests/ice40/dpram.v
index 2e69d6b3b..3ea4c1f27 100644
--- a/tests/ice40/dpram.v
+++ b/tests/ice40/dpram.v
@@ -1,3 +1,6 @@
+/*
+Example from: https://www.latticesemi.com/-/media/LatticeSemi/Documents/UserManuals/EI/iCEcube201701UserGuide.ashx?document_id=52071 [p. 72].
+*/
module top (din, write_en, waddr, wclk, raddr, rclk, dout);
parameter addr_width = 8;
parameter data_width = 8;
diff --git a/tests/ice40/macc.v b/tests/ice40/macc.v
index 115f8ce42..63a3d3a74 100644
--- a/tests/ice40/macc.v
+++ b/tests/ice40/macc.v
@@ -1,3 +1,6 @@
+/*
+Example from: https://www.latticesemi.com/-/media/LatticeSemi/Documents/UserManuals/EI/iCEcube201701UserGuide.ashx?document_id=52071 [p. 77].
+*/
module top(clk,a,b,c,set);
parameter A_WIDTH = 4;
parameter B_WIDTH = 3;
diff --git a/tests/ice40/rom.v b/tests/ice40/rom.v
index c31ca3b2b..0a0f41f37 100644
--- a/tests/ice40/rom.v
+++ b/tests/ice40/rom.v
@@ -1,3 +1,6 @@
+/*
+Example from: https://www.latticesemi.com/-/media/LatticeSemi/Documents/UserManuals/EI/iCEcube201701UserGuide.ashx?document_id=52071 [p. 74].
+*/
module top(data, addr);
output [3:0] data;
input [4:0] addr;