URL
https://opencores.org/ocsvn/mblite/mblite/trunk
[/] [mblite/] [trunk/] [hw/] [core/] [fetch.vhd] - Diff between revs 8 and 10
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 8 |
Rev 10 |
Line 44... |
Line 44... |
|
|
fetch_comb: process(fetch_i, r, rst_i)
|
fetch_comb: process(fetch_i, r, rst_i)
|
variable v : fetch_out_type;
|
variable v : fetch_out_type;
|
begin
|
begin
|
v := r;
|
v := r;
|
if fetch_i.hazard = '1' then
|
if rst_i = '1' then
|
|
v.program_counter := (OTHERS => '0');
|
|
elsif fetch_i.hazard = '1' then
|
v.program_counter := r.program_counter;
|
v.program_counter := r.program_counter;
|
elsif fetch_i.branch = '1' then
|
elsif fetch_i.branch = '1' then
|
v.program_counter := fetch_i.branch_target;
|
v.program_counter := fetch_i.branch_target;
|
else
|
else
|
v.program_counter := increment(r.program_counter(CFG_IMEM_SIZE - 1 downto 2)) & "00";
|
v.program_counter := increment(r.program_counter(CFG_IMEM_SIZE - 1 downto 2)) & "00";
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.