|
SHA-2 Workbench
1.0
|
Constants ROM. More...
Entities | |
| Behavioural | architecture |
| Architecture of the constants ROM. More... | |
Libraries | |
| ieee | |
| Standard library. | |
Use Clauses | |
| std_logic_1164 | |
| Standard 9-values logic library. | |
| math_real | |
| Standard math library, required for the log function. | |
| numeric_std | |
| Arithmetic library, included for the unsigned type conversion. | |
| utils | Package <utils> |
| Package containing some generalisation functions. | |
Generics | |
| WORD_WIDTH | natural := 32 |
| Word width of the circuit. | |
| CYCLES_PER_STAGE | natural := 16 |
| Clock cycles required to complete a pipeline stage. | |
| UNROLLING_FACTOR | natural := 1 |
| Number of SHA-256 steps performed by a single round. | |
| STAGE | natural |
| Specific pipeline stage for which the ROM must be instantiated. | |
| PREFETCH_STEPS | natural := 0 |
| Number of steps of the word prefetched from the Constants Unit and the Expander pipeline. | |
Ports | |
| clk | in std_logic |
| Clock of this component. | |
| en | in std_logic |
| Enable signal. | |
| address | in std_logic_vector ( bits_to_encode ( CYCLES_PER_STAGE ) downto 0 ) |
| Word selection signal. | |
| data | out std_logic_vector ( ( UNROLLING_FACTOR * WORD_WIDTH ) - 1 downto 0 ) |
| Selected word. | |
Constants ROM.
The configuration parameters etermine the shape and content of the instantiated ROM
|
Port |
Word selection signal.
|
Port |
Clock of this component.
|
Generic |
Clock cycles required to complete a pipeline stage.
This is required to set the depth of the ROM
|
Port |
Selected word.
|
Port |
Enable signal.
|
Library |
Standard library.
|
Package |
Standard math library, required for the log function.
|
Package |
Arithmetic library, included for the unsigned type conversion.
|
Generic |
Number of steps of the word prefetched from the Constants Unit and the Expander pipeline.
|
Generic |
Specific pipeline stage for which the ROM must be instantiated.
This is required to select the ROM content
|
Package |
Standard 9-values logic library.
|
Generic |
Number of SHA-256 steps performed by a single round.
This is required to set the width of the ROM
|
Package |
Package containing some generalisation functions.
|
Generic |
Word width of the circuit.
The width of the ROM depends also on the UNROLLING_FACTOR