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

Subversion Repositories zipcpu

[/] [zipcpu/] [trunk/] [rtl/] [peripherals/] [ziptimer.v] - Diff between revs 9 and 56

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 9 Rev 56
Line 111... Line 111...
        initial r_value = 0;
        initial r_value = 0;
        always @(posedge i_clk)
        always @(posedge i_clk)
                if (wb_write)
                if (wb_write)
                        r_value <= i_wb_data[(VW-1):0];
                        r_value <= i_wb_data[(VW-1):0];
                else if ((r_running)&&(i_ce)&&(~o_int))
                else if ((r_running)&&(i_ce)&&(~o_int))
                        r_value <= r_value - 1;
                        r_value <= r_value + {(VW){1'b1}}; // r_value - 1;
                else if ((r_running)&&(r_auto_reload)&&(o_int))
                else if ((r_running)&&(r_auto_reload)&&(o_int))
                        r_value <= r_reload_value;
                        r_value <= r_reload_value;
 
 
        // Set the interrupt on our last tick.
        // Set the interrupt on our last tick.
        initial o_int   = 1'b0;
        initial o_int   = 1'b0;

powered by: WebSVN 2.1.0

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