Skip to content

For Bit manipulation analysis, implementation, and documentation within the workgroup.

License

Notifications You must be signed in to change notification settings

poweihuang17/Bit_Manipulation_RISC_V

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bit_Manipulation_RISC_V

For Bit manipulation analysis, implementation, and documentation within the workgroup.

Editor: Po-wei Huang

Instruction list for encoding and reference implementation

CLZ

Status_CLZ

* Verilog coding: Done, but just for 32 bit now, 64 bit version not finished.
* Verification: Not yet.
* Evaluation: Done, as long as there is not a bug inside verilog code. Please see the analysis section.

Encoding Scheme

TBD

Reference implementation

The reference implementation comes from [1].
For code in verilog, please refer to CLZ.v.

ref_clz

Analysis

From the verilog code and architecture diagram, I'm convinced that it's log(N) for timing.

For further evaluation, we should use EDA tool to see the critical path for 32 bit and 64bit to verify that it's log(N) in timing.

Todo

* Verification not yet.
* 64 bit version .
* Synthesize to make sure it's log(N).
* Considering area effect.

Reference

[1]. Superscalar processor design (a chinese book)
http://www.books.com.tw/products/CN11105742

About

For Bit manipulation analysis, implementation, and documentation within the workgroup.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published