We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa13a6e commit 68946aaCopy full SHA for 68946aa
.gitignore
@@ -1 +1,2 @@
1
quartus
2
+src/mccalla
src/computer_build.clj
@@ -104,7 +104,10 @@
104
(defn build* [cpuname instructions]
105
(.mkdir (java.io.File. cpuname))
106
(let [states (merge static-states (make-states instructions))]
107
- (with-open [main-vhdl (java.io.FileWriter. (str cpuname "/main.vhdl"))]
+ (with-open [main-vhdl (java.io.FileWriter. (str cpuname "/main.vhdl"))
108
+ control-vhdl (java.io.FileWriter. (str cpuname "/control.vhdl"))]
109
+ (binding [*out* control-vhdl]
110
+ (generate-vhdl (control-unit instructions)))
111
(binding [*out* main-vhdl]
112
(generate-vhdl `(entity "main"
113
; ports
0 commit comments