summaryrefslogtreecommitdiff
path: root/part_2/ex9
diff options
context:
space:
mode:
Diffstat (limited to 'part_2/ex9')
-rw-r--r--part_2/ex9/divider_2500.v2
-rw-r--r--part_2/ex9/divider_50000.v2
2 files changed, 2 insertions, 2 deletions
diff --git a/part_2/ex9/divider_2500.v b/part_2/ex9/divider_2500.v
index 305b2b6..f4322b7 100644
--- a/part_2/ex9/divider_2500.v
+++ b/part_2/ex9/divider_2500.v
@@ -21,7 +21,7 @@ module divider_2500 (
begin
if (clock_ms)
begin
- if (count < 12'd499)
+ if (count < 12'd500)
begin
count <= count + 1'b1;
out <= 1'b0;
diff --git a/part_2/ex9/divider_50000.v b/part_2/ex9/divider_50000.v
index d50d5b0..6ce09f9 100644
--- a/part_2/ex9/divider_50000.v
+++ b/part_2/ex9/divider_50000.v
@@ -17,7 +17,7 @@ module divider_50000 (
always @ (posedge clock)
begin
- if (count < 16'd49999)
+ if (count < 16'd50000)
begin
count <= count + 1'b1;
out <= 1'b0;