minimac3: move psync
authorSebastien Bourdeauducq <sebastien@milkymist.org>
Thu, 25 Apr 2013 16:36:45 +0000 (18:36 +0200)
committerSebastien Bourdeauducq <sebastien@milkymist.org>
Thu, 25 Apr 2013 16:36:45 +0000 (18:36 +0200)
verilog/generic/psync.v [deleted file]
verilog/minimac3/psync.v [new file with mode: 0644]

diff --git a/verilog/generic/psync.v b/verilog/generic/psync.v
deleted file mode 100644 (file)
index 26597bb..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-module psync(
-       input clk1,
-       input i,
-       input clk2,
-       output o
-);
-
-reg level;
-always @(posedge clk1)
-       if(i)
-               level <= ~level;
-
-reg level1;
-reg level2;
-reg level3;
-always @(posedge clk2) begin
-       level1 <= level;
-       level2 <= level1;
-       level3 <= level2;
-end
-
-assign o = level2 ^ level3;
-
-initial begin
-       level <= 1'b0;
-       level1 <= 1'b0;
-       level2 <= 1'b0;
-       level3 <= 1'b0;
-end
-
-endmodule
diff --git a/verilog/minimac3/psync.v b/verilog/minimac3/psync.v
new file mode 100644 (file)
index 0000000..26597bb
--- /dev/null
@@ -0,0 +1,31 @@
+module psync(
+       input clk1,
+       input i,
+       input clk2,
+       output o
+);
+
+reg level;
+always @(posedge clk1)
+       if(i)
+               level <= ~level;
+
+reg level1;
+reg level2;
+reg level3;
+always @(posedge clk2) begin
+       level1 <= level;
+       level2 <= level1;
+       level3 <= level2;
+end
+
+assign o = level2 ^ level3;
+
+initial begin
+       level <= 1'b0;
+       level1 <= 1'b0;
+       level2 <= 1'b0;
+       level3 <= 1'b0;
+end
+
+endmodule