Initial commit
This commit is contained in:
24
Libs/NanoBlaze/hdl/aluBOpSelector_RTL.vhd
Normal file
24
Libs/NanoBlaze/hdl/aluBOpSelector_RTL.vhd
Normal file
@@ -0,0 +1,24 @@
|
||||
ARCHITECTURE RTL OF aluBOpSelector IS
|
||||
BEGIN
|
||||
|
||||
selectDataSource: process(
|
||||
registerFileSel, registerFileIn,
|
||||
scratchpadSel, spadIn,
|
||||
portInSel, portIn,
|
||||
instrDataSel, instrData
|
||||
)
|
||||
begin
|
||||
if registerFileSel = '1' then
|
||||
opB <= registerFileIn;
|
||||
elsif scratchpadSel = '1' then
|
||||
opB <= spadIn;
|
||||
elsif portInSel = '1' then
|
||||
opB <= portIn;
|
||||
elsif instrDataSel = '1' then
|
||||
opB <= instrData;
|
||||
else
|
||||
opB <= (others => '-');
|
||||
end if;
|
||||
end process selectDataSource;
|
||||
|
||||
END ARCHITECTURE RTL;
|
||||
Reference in New Issue
Block a user