Matrices arising from semigroup rings