From df4d642fde676cd3602ca53ba788c0f1d188fe5d Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Sat, 25 Apr 2020 13:29:19 +0100 Subject: Add distance function --- src/Verismith/Verilog/Distance.hs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/Verismith/Verilog/Distance.hs 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. +-} -- cgit