Skip to content
Snippets Groups Projects
Commit 721ac061 authored by jf3g19's avatar jf3g19
Browse files

cleaned up some comments

parent 6c980593
No related branches found
No related tags found
No related merge requests found
...@@ -48,7 +48,6 @@ always_ff@(posedge ck, posedge rst) ...@@ -48,7 +48,6 @@ always_ff@(posedge ck, posedge rst)
// ==== DA accumulator ==== // ==== DA accumulator ====
<<<<<<< HEAD
always_ff @(posedge ck) always_ff @(posedge ck)
if (reset_accumulator) if (reset_accumulator)
begin begin
...@@ -68,28 +67,6 @@ always_ff @(posedge ck) ...@@ -68,28 +67,6 @@ always_ff @(posedge ck)
begin begin
shifted_out <= {partial_sum[0], shifted_out[N-1:1]}; shifted_out <= {partial_sum[0], shifted_out[N-1:1]};
partial_sum <= {partial_sum[(N-1)+8],partial_sum[(N-1)+8:1]} - multiplication_coefficients[multiplication_addresses[address]]; partial_sum <= {partial_sum[(N-1)+8],partial_sum[(N-1)+8:1]} - multiplication_coefficients[multiplication_addresses[address]];
=======
always_ff @(posedge ck, posedge rst)
if (reset_accumulator)
begin
partial_sum <= '0;
shifted_out <= '0;
end
else
begin
if(compute)
begin
if(address < N-1)
begin
shifted_out <= {partial_sum[0], shifted_out[N-1:1]};
partial_sum <= {partial_sum[(N-1)+8],partial_sum[(N-1)+8:1]} + multiplication_coefficients[multiplication_addresses[address]];
end
else
begin
shifted_out <= {partial_sum[0], shifted_out[N-1:1]};
partial_sum <= {partial_sum[(N-1)+8],partial_sum[(N-1)+8:1]} - multiplication_coefficients[multiplication_addresses[address]];
end
>>>>>>> c3e2c38a62bbbf0555b4b676ad01f703f9b1ee10
end end
end end
// ==== DA accumulator ==== // ==== DA accumulator ====
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment