]> iEval git - clump.git/commitdiff
Writer now works fine
authorMarius Gavrilescu <marius@ieval.ro>
Thu, 1 Mar 2018 14:39:42 +0000 (14:39 +0000)
committerMarius Gavrilescu <marius@ieval.ro>
Thu, 1 Mar 2018 14:39:42 +0000 (14:39 +0000)
lisp_processor.v
writer.v

index 2ffb4cafd6b0d065392bb678f68b0423a7381d5b..910b1735c4ca6ad818aa1499705b50287d2f774c 100644 (file)
@@ -122,5 +122,6 @@ module PROCESSOR (input clk, output [4:0] led, output uart_tx, input uart_rx);
    assign led[0] = eval_clock_enable;
    assign led[1] = uart_is_transmitting;
    assign led[2] = uart_is_receiving;
+   assign led[3] = writer_finished;
    assign led[4] = !reset;
 endmodule
index 37f6e0a3fba1da519db22d74cf78830c69aa9eac..c68a8af35ed7e9f930b4739ef354c1a454535b1e 100644 (file)
--- a/writer.v
+++ b/writer.v
@@ -11,7 +11,7 @@ module WRITER (input clk, input clk_enable, output reg [7:0] uart_tx_byte, outpu
 
    assign ram_addr = current_index;
 
-   always @ (posedge clk)
+   always @ (posedge clk) begin
         if (clk_enable) begin
                if(uart_tx_signal)
                  uart_tx_signal <= 0;
@@ -50,5 +50,8 @@ module WRITER (input clk, input clk_enable, output reg [7:0] uart_tx_byte, outpu
                         end
                  end
                endcase // case (state)
-        end
+        end // if (clk_enable)
+        else
+          finished <= 0;
+   end
 endmodule
This page took 0.029011 seconds and 4 git commands to generate.