The Online Bit Slicer / Data Width Converter takes an input stream or file as binary data and slices into
chunks of desired number of bits. It can also be used as base converter, bit inverter, character modifier, or file type modifier.
The Verilog code for converting any bit width to any bit width on the fly is also available. The module can accept any input data widths varying from 1-bit to 16-bits and converts (splits, slices) it to any size data every clock where both input width and output width can be changed every clock as well. No FIFO is used. Implemented using muxes and demuxes only. Contact me for further details.
I use online bit slicer to convert data to required data width in a stream. I hope it helps to you too. Enjoy...
Notes:
Base Converter Mode: This tool can also be used to convert from bin to hex or vice versa with no slicing by setting the input and output widths equal, but the formats different
Inverter Mode: This tool can also be used to invert any size bit chunks (such as byte, 32bit) with no slicing by setting the input and output widths equal but selecting the LSB
Character Modification Mode: This tool can also be used to remove or replace the separator character within a stream with no slicing by setting the input and output widths equal, but the separator characters different for the input and the output.
File Modification Mode: This tool can also be used to covert file types from bin to txt or vice versa