Entity: gearbox_down_cc
- File: gearbox_down_cc.vhdl
Diagram
Description
EMACS settings: -- tab-width: 2; indent-tabs-mode: t -- vim: tabstop=2:shiftwidth=2:noexpandtab
kate: tab-width 2; replace-tabs off; indent-width 2;
Authors: Patrick Lehmann
Entity: A downscaling gearbox module with a common clock (cc) interface.
Description:
This module provides a downscaling gearbox with a common clock (cc) interface. It perfoems a 'word' to 'byte' splitting. The default order is LITTLE_ENDIAN (starting at byte(0)). Input "In_Data" and output "Out_Data" are of the same clock domain "Clock". Optional input and output registers can be added by enabling (ADD_***PUT_REGISTERS = TRUE).
License:
Copyright 2007-2015 Technische Universitaet Dresden - Germany Chair of VLSI-Design, Diagnostics and Architecture
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and
limitations under the License.
Generics
Generic name | Type | Value | Description |
---|---|---|---|
INPUT_BITS | positive | 32 | |
OUTPUT_BITS | positive | 24 | |
META_BITS | natural | 0 | |
ADD_INPUT_REGISTERS | boolean | FALSE | |
ADD_OUTPUT_REGISTERS | boolean | FALSE |
Ports
Port name | Direction | Type | Description |
---|---|---|---|
Clock | in | std_logic | |
In_Sync | in | std_logic | |
In_Valid | in | std_logic | |
In_Next | out | std_logic | |
In_Data | in | std_logic_vector(INPUT_BITS - 1 downto 0) | |
In_Meta | in | std_logic_vector(META_BITS - 1 downto 0) | |
Out_Sync | out | std_logic | |
Out_Valid | out | std_logic | |
Out_Data | out | std_logic_vector(OUTPUT_BITS - 1 downto 0) | |
Out_Meta | out | std_logic_vector(META_BITS - 1 downto 0) | |
Out_First | out | std_logic | |
Out_Last | out | std_logic |
Signals
Name | Type | Description |
---|---|---|
In_Sync_d | std_logic | |
In_Data_d | std_logic_vector(INPUT_BITS - 1 downto 0) | |
In_Meta_d | std_logic_vector(META_BITS - 1 downto 0) | |
In_Valid_d | std_logic | |
MuxSelect_rst | std_logic | |
MuxSelect_en | std_logic | |
MuxSelect_us | unsigned(log2ceilnz(INPUT_CHUNKS) - 1 downto 0) | |
MuxSelect_ov | std_logic | |
Nxt | std_logic | |
AutoIncrement | std_logic | |
GearBoxInput | T_CHUNK_VECTOR(INPUT_CHUNKS - 1 downto 0) | |
GearBoxBuffer_en | std_logic | |
GearBoxBuffer | T_CHUNK_VECTOR(INPUT_CHUNKS - 1 downto 1) | |
GearBoxOutput | T_CHUNK_VECTOR(OUTPUT_CHUNKS - 1 downto 0) | |
SyncOut | std_logic | |
ValidOut | std_logic | |
DataOut | std_logic_vector(OUTPUT_BITS - 1 downto 0) | |
MetaOut | std_logic_vector(META_BITS - 1 downto 0) | |
FirstOut | std_logic | |
LastOut | std_logic | |
Out_Sync_d | std_logic | |
Out_Valid_d | std_logic | |
Out_Data_d | std_logic_vector(OUTPUT_BITS - 1 downto 0) | |
Out_Meta_d | std_logic_vector(META_BITS - 1 downto 0) | |
Out_First_d | std_logic | |
Out_Last_d | std_logic |
Constants
Name | Type | Value | Description |
---|---|---|---|
C_VERBOSE | boolean | FALSE | POC_VERBOSE; |
BITS_PER_CHUNK | positive | greatestCommonDivisor(INPUT_BITS, OUTPUT_BITS) |
|
INPUT_CHUNKS | positive | INPUT_BITS / BITS_PER_CHUNK | |
OUTPUT_CHUNKS | positive | OUTPUT_BITS / BITS_PER_CHUNK | |
MUX_INPUT_TRANSLATION | T_MUX_DESCRIPTIONS | genMuxDescription |
Types
Name | Type | Description |
---|---|---|
T_CHUNK_VECTOR | array(natural range <>) of T_CHUNK | |
T_MUX_INPUT | ||
T_MUX_INPUT_LIST | array(natural range <>) of T_MUX_INPUT | |
T_MUX_INPUT_STRUCT | ||
T_MUX_DESCRIPTIONS | array(natural range <>) of T_MUX_INPUT_STRUCT |
Functions
- genMuxDescription () return T_MUX_DESCRIPTIONS
- to_chunkv (slv : std_logic_vector) return T_CHUNK_VECTOR
Description
create vector-vector from vector (4 bit)
- to_slv (slvv : T_CHUNK_VECTOR) return std_logic_vector
Description
convert vector-vector to flatten vector
Processes
- unnamed: ( Clock )