In hardware design, it is necessary to simulate the anticipated behavior of the integrated circuit before it is actually cast in silicon. As simulation procedures are long due to the great number of tests to be performed, optimization of the simulation code is of prime importance. This paper describes two mathematical models for the minimization of the memory access times for a cycle-based simulator. An integrated circuit being viewed as a directed acyclic graph, the problem consists in building a graph order on the vertices, compatible with the relation order induced by the graph, in order to minimize a cost function that represents the memory access time. For the two proposed cost functions, we show that the two corresponding problems are NP-complete. However, we show that the special cases where the graphs are in trees or out trees can be solved in polynomial time. Key words: graph ordering, integrated circuit simulation, complexity.