Hi,
If u know the basic operations of the pipelined process and stage by stage by signal flow....I don't think its tough to write the code u want......I have code in MATLAB regarding the same....but that is very primary level and to verify some of the ideas....
U may go thru the following posts....and one paper.....I guess that will help u a LOT...