bug 1034: making room for crfbinlog/crfternlogi/crbinlog/crternlogi
[libreriscv.git] / openpower / sv / byteswap.mdwn
1 [[!tag standards]]
2
3 # Byte-swapping
4
5 ## Byte-swapping Mux
6
7 gate count for 4:1 MUX is estimated at 8 gates. 8x 64 gates for a total of 512 gates to provide aligned byteswapping 64 bit. (actually likely 5x64 for MUX part and 2x8 for selection part)
8
9 <img alt="Byte-swap mux diagram" src="../byteswap_mux.svg" width="100%"/>
10
11 ## Byte-swapping Pipe
12
13 per source and dest operand, 512 gates required. if two source operands (ALU pipeline, Logical pipeline) this totals 1600 gates (per Function Unit). 3 operands (madd) is 2000 gates. for an estimated 50 Function Units this totals around 100,000 gates.
14
15 <img alt="Byte-swap pipe diagram" src="../byteswap_pipe.svg" width="100%"/>