projects
/
matthijs
/
master-project
/
cλash.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Store a use for each signal in a flattened function.
[matthijs/master-project/cλash.git]
/
Translator.hs
diff --git
a/Translator.hs
b/Translator.hs
index cccac4c08047178ec368a5a992d3c0eac48f4a0d..9ce7206c9df9bd841bd0c5a4e7cccabe1d392b3f 100644
(file)
--- a/
Translator.hs
+++ b/
Translator.hs
@@
-188,7
+188,7
@@
nameFlatFunction hsfunc fdata =
-- Name the signals in all other functions
Just flatfunc ->
let s = flat_sigs flatfunc in
-- Name the signals in all other functions
Just flatfunc ->
let s = flat_sigs flatfunc in
- let s' = map (\(id, (SignalInfo Nothing
ty)) -> (id, SignalInfo (Just $ "sig_" ++ (show id))
ty)) s in
+ let s' = map (\(id, (SignalInfo Nothing
use ty)) -> (id, SignalInfo (Just $ "sig_" ++ (show id)) use
ty)) s in
let flatfunc' = flatfunc { flat_sigs = s' } in
setFlatFunc hsfunc flatfunc'
let flatfunc' = flatfunc { flat_sigs = s' } in
setFlatFunc hsfunc flatfunc'