aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzedarider <ymherklotz@gmail.com>2016-05-05 16:11:47 +0200
committerzedarider <ymherklotz@gmail.com>2016-05-05 16:11:47 +0200
commit1abc91b5950ac22d4b1f09b8696f09cd22ceb1ed (patch)
treec986f8fced7711a9e0718e37f11a45410cff4bda
parent5866730a8e4d2d531f873224ee111640e2c879da (diff)
downloadverilog-1abc91b5950ac22d4b1f09b8696f09cd22ceb1ed.tar.gz
verilog-1abc91b5950ac22d4b1f09b8696f09cd22ceb1ed.zip
adding project verilog file for row detection
-rw-r--r--RowDetect/row_detect.v28
-rw-r--r--magson.v15
2 files changed, 43 insertions, 0 deletions
diff --git a/RowDetect/row_detect.v b/RowDetect/row_detect.v
new file mode 100644
index 0000000..eeb9f0d
--- /dev/null
+++ b/RowDetect/row_detect.v
@@ -0,0 +1,28 @@
+module row_detect(clock_in, start_x, start_y, width, height,
+ starty0, starty1, starty2, starty3, starty4,
+ startx0, width0, height0);
+ input [9:0] start_x;
+ input [9:0] start_y;
+ input [9:0] width;
+ input [9:0] height;
+
+ output reg [9:0] starty0;
+ output reg [9:0] starty1;
+ output reg [9:0] starty2;
+ output reg [9:0] starty3;
+ output reg [9:0] starty4;
+
+ output [9:0] width0;
+ output [9:0] startx0;
+ output [9:0] height0;
+
+ assign startx0 = startx;
+ assign width0 = width;
+ assign height0 = height/5;
+
+ assign starty0 = starty;
+ assign starty1 = starty + height/5;
+ assign starty2 = starty + 2*height/5;
+ assign starty3 = starty + 3*height/5;
+ assign starty4 = starty + 4*height/5;
+endmodule
diff --git a/magson.v b/magson.v
new file mode 100644
index 0000000..895481e
--- /dev/null
+++ b/magson.v
@@ -0,0 +1,15 @@
+
+module syncroAdd(clock, intensity, stop, output);
+ input clock;
+ input reg intensity;
+ input reg stop;
+
+ initial restart = 0;
+ initial stop = 0;
+
+
+ always @ (posedge clock)
+ begin
+
+ end
+endmodule \ No newline at end of file