Add repl.png and three unused files
[yule.git] / gc.v
diff --git a/gc.v b/gc.v
index 302041210a72a8c786d3c7149df229a70c741093..d0da0c1b3beb3c7b31327a9009566c4a4e9bf50e 100644 (file)
--- a/gc.v
+++ b/gc.v
@@ -1,6 +1,6 @@
 `include "gcram.v"
 
-module GC (input clk, input clk_enable, input rst, input [15:0] Ein, output [15:0] Eout, input [3:0] gcop, output [5:0] ostate, output conn_et, output conn_ea, output step_eval, output ram_we, output [12:0] ram_addr, output [15:0] ram_di, input [15:0] ram_do, output [12:0] Pout);
+module GC (input clk, input clk_enable, input [15:0] Ein, output [15:0] Eout, input [3:0] gcop, output [5:0] ostate, output conn_et, output conn_ea, output step_eval, output ram_we, output [12:0] ram_addr, output [15:0] ram_di, input [15:0] ram_do, output [12:0] freeptr);
    reg [15:0] rom_output;
    reg [5:0]  gostate;
    reg [5:0]  gnstate;
@@ -85,13 +85,13 @@ module GC (input clk, input clk_enable, input rst, input [15:0] Ein, output [15:
    end // always @ *
 
    always @ (posedge clk) begin
-         if(rst)
-               gostate <= 0;
          if(clk_enable)
                gostate <=
                                  ga_zero_disp ? (gnstate | ga_zero) :
                                  gcop_disp ? (gnstate | gcop) :
                                  gnstate;
+         else
+               gostate <= 0;
    end // always @ (posedge clk)
 
    assign ostate = gostate;
@@ -103,7 +103,7 @@ module GC (input clk, input clk_enable, input rst, input [15:0] Ein, output [15:
 
    reg [12:0] A; // latched address
 
-   assign Pout = P;
+   assign freeptr = P;
    assign ram_addr = A;
    assign ram_di = S;
 
This page took 0.010445 seconds and 4 git commands to generate.