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
Print the Defs list sorted.
[matthijs/master-project/cλash.git]
/
Translator.hs
diff --git
a/Translator.hs
b/Translator.hs
index 53befc228e6ef947107b72141d9cb7c713fd5606..1a753c2d52b592af9dbc50811bf90b5330f35702 100644
(file)
--- a/
Translator.hs
+++ b/
Translator.hs
@@
-42,10
+42,14
@@
import VHDLTypes
import qualified VHDL
main = do
import qualified VHDL
main = do
+ makeVHDL "Alu.hs" "register_bank"
+
+makeVHDL :: String -> String -> IO ()
+makeVHDL filename name = do
-- Load the module
-- Load the module
- core <- loadModule
"Adders.hs"
+ core <- loadModule
filename
-- Translate to VHDL
-- Translate to VHDL
- vhdl <- moduleToVHDL core [
"sfull_adder"
]
+ vhdl <- moduleToVHDL core [
name
]
-- Write VHDL to file
writeVHDL vhdl "../vhdl/vhdl/output.vhdl"
-- Write VHDL to file
writeVHDL vhdl "../vhdl/vhdl/output.vhdl"
@@
-56,6
+60,7
@@
listBind filename name = do
let binds = findBinds core [name]
putStr "\n"
putStr $ prettyShow binds
let binds = findBinds core [name]
putStr "\n"
putStr $ prettyShow binds
+ putStr $ showSDoc $ ppr binds
putStr "\n\n"
-- | Translate the binds with the given names from the given core module to
putStr "\n\n"
-- | Translate the binds with the given names from the given core module to