OpenCores
URL https://opencores.org/ocsvn/wf3d/wf3d/trunk

Subversion Repositories wf3d

[/] [wf3d/] [trunk/] [implement/] [rtl/] [fm_hvc/] [fm_hvc_core.v] - Diff between revs 2 and 4

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

powered by: WebSVN 2.1.0

© copyright 1999-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.