URL
https://opencores.org/ocsvn/two_dimensional_fast_hartley_transform/two_dimensional_fast_hartley_transform/trunk
Subversion Repositories two_dimensional_fast_hartley_transform
Compare Revisions
- This comparison shows the changes necessary to convert path
/two_dimensional_fast_hartley_transform
- from Rev 6 to Rev 7
- ↔ Reverse comparison
Rev 6 → Rev 7
/trunk/signed_mult_const_fpga.v
54,8 → 54,9
// wire [8:0] mult_constant; // always positive |
// assign mult_constant = 9'd362; |
|
wire signed [17:0] mult_constant; // always positive |
assign mult_constant = {1'b0, 17'd92681}; |
//wire signed [17:0] mult_constant; // always positive |
//assign mult_constant = {1'b0, 17'd92681}; |
parameter mult_constant = {1'b0, 17'd92681}; |
|
reg signed [N-1:0] a_FF; |
always @(posedge clk) |
68,3 → 69,7
assign p = p_tmp >> 16; |
|
endmodule |
|
// Update Log: |
// 27 Jul. 2011 |
// wire [17:0] mult_constant replaced by parameter |
/trunk/signed_mult_const_asic.v
38,8 → 38,9
output [N :0] p; // product output |
|
// FHT constant |
wire [8:0] mult_constant; // always positive |
assign mult_constant = 9'd362; |
//wire [8:0] mult_constant; // always positive |
//assign mult_constant = 9'd362; |
parameter mult_constant = 9'd362; |
|
reg [N-1:0] a_FF; |
always @(posedge clk) |
60,7 → 61,7
wire [N+7:0] mult_wo_sign; // mult without sign |
assign mult_wo_sign = b[N-2:0]*mult_constant; |
|
// Divide on 256 - [N+7-8:0] = [N-1:0] |
// Divided by 256 - [N+7-8:0] = [N-1:0] |
wire [N-1:0] div256; // divided 256 |
assign div256 = mult_wo_sign >> 8; |
|
69,3 → 70,7
{1'b0, div256[N-1:0]} |
; |
endmodule |
|
// Update Log: |
// 27 Jul. 2011 |
// wire [8:0] mult_constant replaced by parameter |