URL
https://opencores.org/ocsvn/wf3d/wf3d/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 2 |
Rev 4 |
Line 7... |
Line 7... |
//
|
//
|
// Abstract:
|
// Abstract:
|
// HV counter core
|
// HV counter core
|
//
|
//
|
// Author:
|
// Author:
|
// Kenji Ishimaru (kenji.ishimaru@prtissimo.com)
|
// Kenji Ishimaru (info.wf3d@gmail.com)
|
//
|
//
|
//======================================================================
|
//======================================================================
|
//
|
//
|
// Copyright (c) 2015, Kenji Ishimaru
|
// Copyright (c) 2015, Kenji Ishimaru
|
// All rights reserved.
|
// All rights reserved.
|
Line 183... |
Line 183... |
end
|
end
|
|
|
// V counter
|
// V counter
|
always @(posedge clk_vi or negedge rst_x) begin
|
always @(posedge clk_vi or negedge rst_x) begin
|
if (~rst_x) begin
|
if (~rst_x) begin
|
// r_vcnt <= 10'd0;
|
r_vcnt <= 10'd9; // this is for faster simulatin (v rise)
|
// r_vcnt <= 10'd36; // this is only for faster simulatin
|
|
r_vcnt <= 10'd9; // this is only for faster simulatin (v rise)
|
|
end else begin
|
end else begin
|
if (w_v_end) r_vcnt <= 10'd0;
|
if (w_v_end) r_vcnt <= 10'd0;
|
else if (w_h_end) r_vcnt <= r_vcnt + 1'b1;
|
else if (w_h_end) r_vcnt <= r_vcnt + 1'b1;
|
end
|
end
|
end
|
end
|
© copyright 1999-2025
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.