OpenCores
URL https://opencores.org/ocsvn/bluespec-h264/bluespec-h264/trunk

Subversion Repositories bluespec-h264

[/] [bluespec-h264/] [trunk/] [src_fpga/] [mkFinalOutput.bsv] - Rev 3

Go to most recent revision | Compare with Previous | Blame | View Log

//**********************************************************************
// final output implementation
//----------------------------------------------------------------------
//
//

package mkFinalOutput;

import H264Types::*;
import IFinalOutput::*;
import FIFO::*;

import Connectable::*;
import GetPut::*;

//-----------------------------------------------------------
// Final Output Module
//-----------------------------------------------------------

module mkFinalOutput( IFinalOutput );

   FIFO#(BufferControlOT)  infifo    <- mkFIFO;

   //-----------------------------------------------------------
   // Rules
   rule finalout (True);
      if(infifo.first() matches tagged YUV .xdata)
         begin
            $display("ccl5finalout %h", xdata[7:0]);
            $display("ccl5finalout %h", xdata[15:8]);
            $display("ccl5finalout %h", xdata[23:16]);
            $display("ccl5finalout %h", xdata[31:24]);
            infifo.deq();
         end
      else
         $finish(0);
   endrule


   interface Put ioin  = fifoToPut(infifo);

endmodule

endpackage

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.