(Responding to myself...) On 2/16/06, Jacob Fugal <lukfugl / gmail.com> wrote: > Why not something like this then? > > class Counter < RHDL > inputs :clk, :rst > outputs :count_out > > count = 0 > define_behavior { > #.... do something with count ... > } > end I just realized that what define_behavior (on the class) probably does is store the block which will then be passed to define_behavior (on the instance) during the default initialize. Each instance has its own copy of the block and should have it's own state in count. The code I posted above won't work like that; all instances would share the same count, obviously not what you wanted. So... nevermind. :) Jacob Fugal