Search code examples
fpgasimulinkxilinxsystem-generator

Integer to Binary Conversion in Simulink


This might look a repetition to my earlier question. But I think its not. I am looking for a technique to convert the signal in the Decimal format to binary format.

I intend to use the Simulink blocks in the Xilinx Library to convert decimal to binary format.

So if the input is 3, the expected output should in 11( 2 Clock Cycles). I am looking for the output to be obtained serially.

Please suggest me how to do it or any pointers in the internet would be helpful.

Thanks


Solution

  • You are correct, what you need is the parallel to serial block from system generator.
    It is described in this document:

    http://www.xilinx.com/support/documentation/sw_manuals/xilinx13_1/sysgen_ref.pdf

    This block is a rate changing block. Check the mentions of the parallel to serial block in these documents for further descriptions:

    http://www.xilinx.com/support/documentation/sw_manuals/xilinx13_1/sysgen_gs.pdf

    http://www.xilinx.com/support/documentation/sw_manuals/xilinx13_1/sysgen_user.pdf