URL
https://opencores.org/ocsvn/aemb/aemb/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 81 |
Rev 91 |
Line 1... |
Line 1... |
/* $Id: aeMB2_bpcu.v,v 1.3 2007-12-13 20:12:11 sybreon Exp $
|
/* $Id: aeMB2_bpcu.v,v 1.4 2007-12-17 12:53:43 sybreon Exp $
|
**
|
**
|
** AEMB2 BRANCH/PROGRAMME COUNTER
|
** AEMB2 BRANCH/PROGRAMME COUNTER
|
**
|
**
|
** Copyright (C) 2004-2007 Shawn Tan Ser Ngiap <shawn.tan@aeste.net>
|
** Copyright (C) 2004-2007 Shawn Tan Ser Ngiap <shawn.tan@aeste.net>
|
**
|
**
|
Line 101... |
Line 101... |
|
|
reg [31:2] rPC, // PC
|
reg [31:2] rPC, // PC
|
rPC0, rPC1,// register based
|
rPC0, rPC1,// register based
|
rPCL[0:1]; // LUT based
|
rPCL[0:1]; // LUT based
|
|
|
wire [31:2] wPCNXT = (pha_i) ? rPC0 : rPC1;
|
wire [31:2] wPCNXT = (pha_i | !TXE) ? rPC0 : rPC1;
|
wire [31:2] wPCINC = (rPC + 1);
|
wire [31:2] wPCINC = (rPC + 1);
|
|
|
/* Check for RW data hazard */
|
/* Check for RW data hazard */
|
// TODO: Optimise
|
// TODO: Optimise
|
|
|
Line 241... |
Line 241... |
end
|
end
|
|
|
endmodule // aeMB2_bpcu
|
endmodule // aeMB2_bpcu
|
|
|
/* $Log: not supported by cvs2svn $
|
/* $Log: not supported by cvs2svn $
|
|
/* Revision 1.3 2007/12/13 20:12:11 sybreon
|
|
/* Code cleanup + minor speed regression.
|
|
/*
|
/* Revision 1.2 2007/12/12 19:16:59 sybreon
|
/* Revision 1.2 2007/12/12 19:16:59 sybreon
|
/* Minor optimisations (~10% faster)
|
/* Minor optimisations (~10% faster)
|
/*
|
/*
|
/* Revision 1.1 2007/12/11 00:43:17 sybreon
|
/* Revision 1.1 2007/12/11 00:43:17 sybreon
|
/* initial import
|
/* initial import
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.