first version RTL bit packing (not working)