URL
https://opencores.org/ocsvn/thor/thor/trunk
[/] [thor/] [trunk/] [FT64v5/] [rtl/] [common/] [FT64_InsLength.v] - Diff between revs 56 and 57
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 56 |
Rev 57 |
Line 23... |
Line 23... |
// Computes the length of an instruction.
|
// Computes the length of an instruction.
|
// There are also other places in code where the length is determined
|
// There are also other places in code where the length is determined
|
// without the use of this module.
|
// without the use of this module.
|
// ============================================================================
|
// ============================================================================
|
//
|
//
|
|
`include "FT64_config.vh"
|
`include "FT64_defines.vh"
|
`include "FT64_defines.vh"
|
|
|
module FT64_InsLength(ins, len);
|
module FT64_InsLength(ins, len);
|
input [47:0] ins;
|
input [47:0] ins;
|
output reg [2:0] len;
|
output reg [2:0] len;
|
|
|
always @*
|
always @*
|
|
`ifdef SUPPORT_DCI
|
if (ins[`INSTRUCTION_OP]==`CMPRSSD)
|
if (ins[`INSTRUCTION_OP]==`CMPRSSD)
|
len <= 3'd2;
|
len <= 3'd2;
|
else
|
else
|
|
`endif
|
case(ins[7:6])
|
case(ins[7:6])
|
2'd0: len <= 3'd4;
|
2'd0: len <= 3'd4;
|
2'd1: len <= 3'd6;
|
2'd1: len <= 3'd6;
|
default: len <= 3'd2;
|
default: len <= 3'd2;
|
endcase
|
endcase
|
© copyright 1999-2025
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.