URL
https://opencores.org/ocsvn/opencpu32/opencpu32/trunk
[/] [opencpu32/] [trunk/] [hdl/] [opencpu32/] [RegisterFile.vhd] - Diff between revs 14 and 15
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 14 |
Rev 15 |
Line 51... |
Line 51... |
|
|
-- Read some register in port A
|
-- Read some register in port A
|
readAProcess : process(Read_A_En,Read_A_Addr)
|
readAProcess : process(Read_A_En,Read_A_Addr)
|
begin
|
begin
|
if (Read_A_En = '1') then
|
if (Read_A_En = '1') then
|
A_Out <= regFile(CONV_INTEGER(reg2Num(writeAddr)));
|
A_Out <= regFile(CONV_INTEGER(reg2Num(Read_A_Addr)));
|
else
|
else
|
A_Out <= (others => 'Z');
|
A_Out <= (others => 'Z');
|
end if;
|
end if;
|
end process;
|
end process;
|
|
|
-- Read some register in port B
|
-- Read some register in port B
|
readBProcess : process(Read_B_En,Read_B_Addr)
|
readBProcess : process(Read_B_En,Read_B_Addr)
|
begin
|
begin
|
if (Read_B_En = '1') then
|
if (Read_B_En = '1') then
|
B_Out <= regFile(CONV_INTEGER(reg2Num(writeAddr)));
|
B_Out <= regFile(CONV_INTEGER(reg2Num(Read_B_Addr)));
|
else
|
else
|
B_Out <= (others => 'Z');
|
B_Out <= (others => 'Z');
|
end if;
|
end if;
|
end process;
|
end process;
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.