May 18, 2022 #1 M michaelScott Junior Member level 2 Joined Mar 19, 2022 Messages 24 Helped 0 Reputation 0 Reaction score 0 Trophy points 1 Activity points 161 Hello people, I am designing an ALU for RISCV processor and i wonder if i need to perform compare and branches instructions inside the alu. thanks in advance Attachments 1.JPG 100.4 KB · Views: 176
Hello people, I am designing an ALU for RISCV processor and i wonder if i need to perform compare and branches instructions inside the alu. thanks in advance
May 18, 2022 #2 KlausST Advanced Member level 7 Joined Apr 17, 2014 Messages 25,756 Helped 4,906 Reputation 9,835 Reaction score 5,690 Trophy points 1,393 Activity points 172,623 Hi michaelScott said: i wonder if i need to perform compare and branches instructions inside the alu. Click to expand... a branch is usually not the task of an ALU ..but the compare usually is performed as a subtract ... by at least setting some flags... Klaus Upvote 0 Downvote
Hi michaelScott said: i wonder if i need to perform compare and branches instructions inside the alu. Click to expand... a branch is usually not the task of an ALU ..but the compare usually is performed as a subtract ... by at least setting some flags... Klaus
May 19, 2022 #3 M michaelScott Junior Member level 2 Joined Mar 19, 2022 Messages 24 Helped 0 Reputation 0 Reaction score 0 Trophy points 1 Activity points 161 KlausST said: Hi a branch is usually not the task of an ALU ..but the compare usually is performed as a subtract ... by at least setting some flags... Klaus Click to expand... thanks for the reply, so we perform arithmetical, logical, compare, jump&link operations in the ALU right? Upvote 0 Downvote
KlausST said: Hi a branch is usually not the task of an ALU ..but the compare usually is performed as a subtract ... by at least setting some flags... Klaus Click to expand... thanks for the reply, so we perform arithmetical, logical, compare, jump&link operations in the ALU right?
May 19, 2022 #4 KlausST Advanced Member level 7 Joined Apr 17, 2014 Messages 25,756 Helped 4,906 Reputation 9,835 Reaction score 5,690 Trophy points 1,393 Activity points 172,623 Hi, sorry for not being clear enough. Again: I don´t think a "jump" or "branch" belongs to the ALU. There are internet sites like wikipedia and many others that more exactly define what´s an ALU. Klaus Upvote 0 Downvote
Hi, sorry for not being clear enough. Again: I don´t think a "jump" or "branch" belongs to the ALU. There are internet sites like wikipedia and many others that more exactly define what´s an ALU. Klaus