Well I've created a component out of it and at present my system doesn't seem to be having any trouble with it. You're welcome to try it.
A few things though. You've got a few signals that don't appear to go anywhere (tx_clk and clk). Also, is there a reason why you made the cpu interface so complex? Are you really doing bursts on the avalon slave? All you really need is write, read, waitrequest, writedata, readdata, and address. Everything else is useless unless you are connecting it to a master that knows what to do with it (NIOS does not).
Jake