URL
https://opencores.org/ocsvn/s6soc/s6soc/trunk
[/] [s6soc/] [trunk/] [rtl/] [wbpwmaudio.v] - Diff between revs 4 and 8
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 4 |
Rev 8 |
Line 118... |
Line 118... |
|
|
reg [(TIMING_BITS-1):0] timer;
|
reg [(TIMING_BITS-1):0] timer;
|
initial timer = DEFAULT_RELOAD;
|
initial timer = DEFAULT_RELOAD;
|
always @(posedge i_clk)
|
always @(posedge i_clk)
|
if (timer == 0)
|
if (timer == 0)
|
timer <= {{(32-TIMING_BITS){1'b0}}, w_reload_value };
|
timer <= w_reload_value;
|
else
|
else
|
timer <= timer - {{(TIMING_BITS-1){1'b0}},1'b1};
|
timer <= timer - {{(TIMING_BITS-1){1'b0}},1'b1};
|
|
|
reg [15:0] sample_out;
|
reg [15:0] sample_out;
|
always @(posedge i_clk)
|
always @(posedge i_clk)
|
© copyright 1999-2025
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.