URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 358 |
Rev 364 |
Line 156... |
Line 156... |
//
|
//
|
// Multicycle counter
|
// Multicycle counter
|
//
|
//
|
always @(posedge clk or `OR1200_RST_EVENT rst)
|
always @(posedge clk or `OR1200_RST_EVENT rst)
|
if (rst == `OR1200_RST_VALUE)
|
if (rst == `OR1200_RST_VALUE)
|
multicycle_cnt <= 2'b00;
|
multicycle_cnt <= `OR1200_MULTICYCLE_WIDTH'd0;
|
else if (|multicycle_cnt)
|
else if (|multicycle_cnt)
|
multicycle_cnt <= multicycle_cnt - 2'd1;
|
multicycle_cnt <= multicycle_cnt - `OR1200_MULTICYCLE_WIDTH'd1;
|
else if (|multicycle & !ex_freeze)
|
else if (|multicycle & !ex_freeze)
|
multicycle_cnt <= multicycle;
|
multicycle_cnt <= multicycle;
|
|
|
|
|
//
|
//
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.