From: Bernhard Urban Date: Sun, 18 Apr 2010 22:40:29 +0000 (+0200) Subject: alu: syntactic sugar X-Git-Tag: spec_final~13 X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=hwmod.git;a=commitdiff_plain;h=60b72ae58c635719bd2bdf07ef4e898479b68c4c alu: syntactic sugar --- diff --git a/src/alu.vhd b/src/alu.vhd index c0f3fee..1523049 100644 --- a/src/alu.vhd +++ b/src/alu.vhd @@ -84,15 +84,7 @@ begin state_next <= SIDLE; end case; end if; - when SADD => - if done_intern = '1' then - state_next <= SDONE; - end if; - when SSUB => - if done_intern = '1' then - state_next <= SDONE; - end if; - when SMUL => + when SADD | SSUB | SMUL | SDIV_DONE => if done_intern = '1' then state_next <= SDONE; end if; @@ -104,10 +96,6 @@ begin if div_calc_done = '1' then state_next <= SDIV_DONE; end if; - when SDIV_DONE => - if done_intern = '1' then - state_next <= SDONE; - end if; when SDONE => if do_calc = '0' then state_next <= SIDLE;