T
Thomas Womack
Guest
Is there a better Verilog sequence for the polynomial-multiplier
begin
C[10:0] <= A[10:0] & {B[0],B[0],B[0],B[0],B[0],B[0],B[0],B[0],B[0],B[0],B[0]};
C[11:1] <= C[11:1] ^ (A[10:0] & {B[1],B[1],B[1],B[1],B[1],B[1],B[1],B[1],B[1],B[1],B[1]});
....
C[20:10] <= ...
end
or should I be writing Perl to generate the rather stereotyped code above?
What if I want a polynomial-multiplier of user-definable width?
Tom
begin
C[10:0] <= A[10:0] & {B[0],B[0],B[0],B[0],B[0],B[0],B[0],B[0],B[0],B[0],B[0]};
C[11:1] <= C[11:1] ^ (A[10:0] & {B[1],B[1],B[1],B[1],B[1],B[1],B[1],B[1],B[1],B[1],B[1]});
....
C[20:10] <= ...
end
or should I be writing Perl to generate the rather stereotyped code above?
What if I want a polynomial-multiplier of user-definable width?
Tom