OpenCores
URL https://opencores.org/ocsvn/nios2ci/nios2ci/trunk

Subversion Repositories nios2ci

[/] [nios2ci/] [trunk/] [bitops/] [README] - Blame information for rev 3

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 3 tklauser
bit operation instructions
2
--------------------------
3
 
4
These are especially useful to be used in the Linux kernel in asm/bitops.h to
5
define the functions named correspondingly in Linux.
6
 
7
The following instructions are provided in the .vhd file named accordingly:
8
 
9
ffs
10
        find first (least-significat) set bit in a 32bit word
11
ffz
12
        find first (least-significat) zero bit in a 32bit word
13
fls
14
        find last (most-significant) set bit in a 32bit word
15
hweight
16
        hamming weight of a 32bit word

powered by: WebSVN 2.1.0

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