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

Subversion Repositories psg16

[/] [psg16/] [trunk/] [rtl/] [verilog/] [PSGOutputSummer.v] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 robfinch
`timescale 1ns / 1ps
2
// ============================================================================
3
//      (C) 2007,2012  Robert Finch
4
//      All rights reserved.
5
//      robfinch<remove>@opencores.org
6
//
7
//      PSGOutputSummer.v 
8
//              Sum the filtered and unfiltered output.
9
//
10
// This source file is free software: you can redistribute it and/or modify 
11
// it under the terms of the GNU Lesser General Public License as published 
12
// by the Free Software Foundation, either version 3 of the License, or     
13
// (at your option) any later version.                                      
14
//                                                                          
15
// This source file is distributed in the hope that it will be useful,      
16
// but WITHOUT ANY WARRANTY; without even the implied warranty of           
17
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the            
18
// GNU General Public License for more details.                             
19
//                                                                          
20
// You should have received a copy of the GNU General Public License        
21
// along with this program.  If not, see <http://www.gnu.org/licenses/>.    
22
//
23
//============================================================================ */
24
 
25
module PSGOutputSummer(clk_i, cnt, ufi, fi, o);
26
input clk_i;            // master clock
27
input [7:0] cnt; // clock divider
28
input [21:0] ufi;        // unfiltered audio input
29
input [21:0] fi; // filtered audio input
30
output [21:0] o; // summed output
31
reg [21:0] o;
32
 
33
always @(posedge clk_i)
34
        if (cnt==8'd0)
35
                o <= ufi + fi;
36
 
37
endmodule

powered by: WebSVN 2.1.0

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