Refactoring interface with memaccess + fix bug in sc address comparison