URL
https://opencores.org/ocsvn/versatile_library/versatile_library/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 149 |
Rev 150 |
Line 7456... |
Line 7456... |
always @ (din or s or opcode)
|
always @ (din or s or opcode)
|
`endif
|
`endif
|
case (opcode)
|
case (opcode)
|
opcode_sll: dout = din << s;
|
opcode_sll: dout = din << s;
|
opcode_srl: dout = din >> s;
|
opcode_srl: dout = din >> s;
|
opcode_sra: dout = (din >> s) | ({32,din[31]}} << (6'd32-{1'b0,s}}));
|
opcode_sra: dout = (din >> s) | ({32,din[31]}} << (6'd32-{1'b0,s}));
|
//opcode_ror: dout = not yet implemented
|
//opcode_ror: dout = not yet implemented
|
default: dout = din << s;
|
default: dout = din << s;
|
endcase
|
endcase
|
|
|
end
|
end
|
© copyright 1999-2025
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.