aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYann Herklotz <git@yannherklotz.com>2020-04-25 13:29:19 +0100
committerYann Herklotz <git@yannherklotz.com>2020-04-25 13:29:19 +0100
commitdf4d642fde676cd3602ca53ba788c0f1d188fe5d (patch)
treef6fec3128761906be9dd29456af858624ae53892
parenta4b13bacf79e8474513abae57a3ad66d6c1a2139 (diff)
downloadverismith-df4d642fde676cd3602ca53ba788c0f1d188fe5d.tar.gz
verismith-df4d642fde676cd3602ca53ba788c0f1d188fe5d.zip
Add distance function
-rw-r--r--src/Verismith/Verilog/Distance.hs14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/Verismith/Verilog/Distance.hs b/src/Verismith/Verilog/Distance.hs
new file mode 100644
index 0000000..caa70c5
--- /dev/null
+++ b/src/Verismith/Verilog/Distance.hs
@@ -0,0 +1,14 @@
+{-|
+Module : Verismith.Verilog.Distance
+Description : Definition of the distance function for the abstract syntax tree.
+Copyright : (c) 2020, Yann Herklotz
+License : GPL-3
+Maintainer : yann [at] yannherklotz [dot] com
+Stability : experimental
+Poratbility : POSIX
+
+Define the distance function for the abstract syntax tree, so that different
+Verilog files can be compared. This allows us to define a metric on how
+different two pieces of Verilog are. Currently, differences in expressions are
+ignored, as these are not that interesting.
+-}