JHDL 0.3
| JHDL Doc Home Page
| Examples Home Page
| << | <
| > | >>
Shifter Module Generator
This is a simple example of a Shifter Generator.
The top level java file, VarShiftR.java,
uses the file ShiftMuxR.java to
create a variable width right shifter. ShiftMuxR basically
creates a mux as wide as the width of the input wire which selects
between the unshifted version and version shifted by a power of 2
of the the wire. VarShiftR instantiates and places a mux for every bit of
width of the shift_amt wire. This design could be extended to
include a generic pipelining structure.
| JHDL Doc Home Page
| Examples Home Page
| << | <
| > | >>
Copyright (c) 1998-2003 Brigham Young University. All
rights reserved.
Reproduction in whole or in part in any form or
medium without express permission of Brigham Young University is
prohibited.