Did you configureYou will have to set a static routedefault gateway on the routersyour hosts to point to each network? If you did not what is happening, host A is sending packets to Router A, which are destined to host B on router B. Router A not having a static route to network B will not be able to route the packet so you are getting failed:
HostA: Default Gateway 192.168.0.254
HostB: Default Gateway 192.168.1.254