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

Subversion Repositories two_dimensional_fast_hartley_transform

[/] [two_dimensional_fast_hartley_transform/] [trunk/] [signed_mult_const_fpga.v] - Diff between revs 4 and 7

Show entire file | Details | Blame | View Log

Rev 4 Rev 7
Line 52... Line 52...
 
 
// FHT constant
// FHT constant
// wire [8:0] mult_constant; // always positive
// wire [8:0] mult_constant; // always positive
// assign mult_constant = 9'd362;
// assign mult_constant = 9'd362;
 
 
wire signed [17:0] mult_constant; // always positive
//wire signed [17:0] mult_constant; // always positive
assign mult_constant = {1'b0, 17'd92681};
//assign mult_constant = {1'b0, 17'd92681};
 
parameter mult_constant = {1'b0, 17'd92681};
 
 
reg signed [N-1:0] a_FF;
reg signed [N-1:0] a_FF;
always @(posedge clk)
always @(posedge clk)
if              (!rstn) a_FF <= #1 0;
if              (!rstn) a_FF <= #1 0;
else if (valid) a_FF <= #1 a;
else if (valid) a_FF <= #1 a;
Line 67... Line 68...
//assign p = p_tmp[(16+1)+N-1:16];// >> 16;
//assign p = p_tmp[(16+1)+N-1:16];// >> 16;
assign p = p_tmp >> 16;
assign p = p_tmp >> 16;
 
 
endmodule
endmodule
 
 
 No newline at end of file
 No newline at end of file
 
// Update Log:
 
// 27 Jul. 2011
 
// wire [17:0] mult_constant replaced by parameter
 
 
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

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