OpenCores
URL https://opencores.org/ocsvn/zap/zap/trunk

Subversion Repositories zap

[/] [zap/] [trunk/] [src/] [rtl/] [cpu/] [zap_localparams.vh] - Diff between revs 37 and 43

Show entire file | Details | Blame | View Log

Rev 37 Rev 43
Line 100... Line 100...
localparam [4:0] SMLALL = 22; // Signed multiply accumulate (Write lower reg).
localparam [4:0] SMLALL = 22; // Signed multiply accumulate (Write lower reg).
localparam [4:0] SMLALH = 23;
localparam [4:0] SMLALH = 23;
 
 
localparam [4:0] CLZ    = 24; // Count Leading zeros.
localparam [4:0] CLZ    = 24; // Count Leading zeros.
 
 
// Conditionals defined as per v4 spec.
// Conditionals defined as per v5T spec.
localparam EQ =  4'h0;
localparam EQ =  4'h0;
localparam NE =  4'h1;
localparam NE =  4'h1;
localparam CS =  4'h2;
localparam CS =  4'h2;
localparam CC =  4'h3;
localparam CC =  4'h3;
localparam MI =  4'h4;
localparam MI =  4'h4;
Line 176... Line 176...
// Swap.
// Swap.
localparam      [31:0]  SWAP                                            =                                       32'b????_00010_?_00_????_????_00001001_????;
localparam      [31:0]  SWAP                                            =                                       32'b????_00010_?_00_????_????_00001001_????;
 
 
// Write to coprocessor.
// Write to coprocessor.
localparam      [31:0]  MCR                                             =                                       32'b????_1110_???_0_????_????_1111_???_1_????;
localparam      [31:0]  MCR                                             =                                       32'b????_1110_???_0_????_????_1111_???_1_????;
 
localparam      [31:0]  MCR2                                             =                                       32'b1111_1110???0_????????????_???1_????;
 
 
// Read from coprocessor.
// Read from coprocessor.
localparam      [31:0]  MRC                                             =                                       32'b????_1110_???_1_????_????_1111_???_1_????;
localparam      [31:0]  MRC                                             =                                       32'b????_1110_???_1_????_????_1111_???_1_????;
 
localparam      [31:0]  MRC2                                             =                                       32'b1111_1110???1_????????????_???1_????;
 
 
// LDC, STC
// LDC, STC
localparam      [31:0]  LDC                                             =                                       32'b????_110_????1_????_????_????_????????;
localparam      [31:0]  LDC                                             =                                       32'b????_110_????1_????_????_????_????????;
localparam      [31:0]  STC                                             =                                       32'b????_110_????0_????_????_????_????????;
localparam      [31:0]  STC                                             =                                       32'b????_110_????0_????_????_????_????????;
 
 
 
// LDC2, STC2
 
localparam      [31:0]  LDC2                                             =                                       32'b1111_110????1_????????????_????_????;
 
localparam      [31:0]  STC2                                             =                                       32'b1111_110????0_????????????_????_????;
 
 
// CDP
// CDP
localparam      [31:0]  CDP                                             =                                       32'b????_1110_????????_????????_????????;
localparam      [31:0]  CDP                                             =                                       32'b????_1110_????????_????????_????????;
 
 
// CLZ
// CLZ
localparam      [31:0]  CLZ_INSTRUCTION                                 =                                       32'b????_00010110_1111_????_1111_0001_????;
localparam      [31:0]  CLZ_INSTRUCTION                                 =                                       32'b????_00010110_1111_????_1111_0001_????;

powered by: WebSVN 2.1.0

© copyright 1999-2022 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.