[Back to Design Hierarchy Report](../design_hierarchy.md#vhdl-packages)

<br>

# Package - mlite_pack

## Summary

| Name | Location | Description |
| --- | --- | --- |
|mlite_pack|<linty-anchor href="//mlite_pack.vhd#15">mlite_pack.vhd#15</linty-anchor>||


## Constants

Count: 62

| Name | Type | Default value | Description |
| --- | --- | --- | --- |
|<linty-anchor href="//mlite_pack.vhd#16">ZERO</linty-anchor>|std_logic_vector ( 31 downto 0 )|"00000000000000000000000000000000"||
|<linty-anchor href="//mlite_pack.vhd#18">ONES</linty-anchor>|std_logic_vector ( 31 downto 0 )|"11111111111111111111111111111111"||
|<linty-anchor href="//mlite_pack.vhd#21">HIGH_Z</linty-anchor>|std_logic_vector ( 31 downto 0 )|"ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ"||
|<linty-anchor href="//mlite_pack.vhd#25">ALU_NOTHING</linty-anchor>|alu_function_type|"0000"||
|<linty-anchor href="//mlite_pack.vhd#26">ALU_ADD</linty-anchor>|alu_function_type|"0001"||
|<linty-anchor href="//mlite_pack.vhd#27">ALU_SUBTRACT</linty-anchor>|alu_function_type|"0010"||
|<linty-anchor href="//mlite_pack.vhd#28">ALU_LESS_THAN</linty-anchor>|alu_function_type|"0011"||
|<linty-anchor href="//mlite_pack.vhd#29">ALU_LESS_THAN_SIGNED</linty-anchor>|alu_function_type|"0100"||
|<linty-anchor href="//mlite_pack.vhd#30">ALU_OR</linty-anchor>|alu_function_type|"0101"||
|<linty-anchor href="//mlite_pack.vhd#31">ALU_AND</linty-anchor>|alu_function_type|"0110"||
|<linty-anchor href="//mlite_pack.vhd#32">ALU_XOR</linty-anchor>|alu_function_type|"0111"||
|<linty-anchor href="//mlite_pack.vhd#33">ALU_NOR</linty-anchor>|alu_function_type|"1000"||
|<linty-anchor href="//mlite_pack.vhd#36">SHIFT_NOTHING</linty-anchor>|shift_function_type|"00"||
|<linty-anchor href="//mlite_pack.vhd#37">SHIFT_LEFT_UNSIGNED</linty-anchor>|shift_function_type|"01"||
|<linty-anchor href="//mlite_pack.vhd#38">SHIFT_RIGHT_SIGNED</linty-anchor>|shift_function_type|"11"||
|<linty-anchor href="//mlite_pack.vhd#39">SHIFT_RIGHT_UNSIGNED</linty-anchor>|shift_function_type|"10"||
|<linty-anchor href="//mlite_pack.vhd#42">MULT_NOTHING</linty-anchor>|mult_function_type|"0000"||
|<linty-anchor href="//mlite_pack.vhd#43">MULT_READ_LO</linty-anchor>|mult_function_type|"0001"||
|<linty-anchor href="//mlite_pack.vhd#44">MULT_READ_HI</linty-anchor>|mult_function_type|"0010"||
|<linty-anchor href="//mlite_pack.vhd#45">MULT_WRITE_LO</linty-anchor>|mult_function_type|"0011"||
|<linty-anchor href="//mlite_pack.vhd#46">MULT_WRITE_HI</linty-anchor>|mult_function_type|"0100"||
|<linty-anchor href="//mlite_pack.vhd#47">MULT_MULT</linty-anchor>|mult_function_type|"0101"||
|<linty-anchor href="//mlite_pack.vhd#48">MULT_SIGNED_MULT</linty-anchor>|mult_function_type|"0110"||
|<linty-anchor href="//mlite_pack.vhd#49">MULT_DIVIDE</linty-anchor>|mult_function_type|"0111"||
|<linty-anchor href="//mlite_pack.vhd#50">MULT_SIGNED_DIVIDE</linty-anchor>|mult_function_type|"1000"||
|<linty-anchor href="//mlite_pack.vhd#53">A_FROM_REG_SOURCE</linty-anchor>|a_source_type|"00"||
|<linty-anchor href="//mlite_pack.vhd#54">A_FROM_IMM10_6</linty-anchor>|a_source_type|"01"||
|<linty-anchor href="//mlite_pack.vhd#55">A_FROM_PC</linty-anchor>|a_source_type|"10"||
|<linty-anchor href="//mlite_pack.vhd#58">B_FROM_REG_TARGET</linty-anchor>|b_source_type|"00"||
|<linty-anchor href="//mlite_pack.vhd#59">B_FROM_IMM</linty-anchor>|b_source_type|"01"||
|<linty-anchor href="//mlite_pack.vhd#60">B_FROM_SIGNED_IMM</linty-anchor>|b_source_type|"10"||
|<linty-anchor href="//mlite_pack.vhd#61">B_FROM_IMMX4</linty-anchor>|b_source_type|"11"||
|<linty-anchor href="//mlite_pack.vhd#64">C_FROM_NULL</linty-anchor>|c_source_type|"000"||
|<linty-anchor href="//mlite_pack.vhd#65">C_FROM_ALU</linty-anchor>|c_source_type|"001"||
|<linty-anchor href="//mlite_pack.vhd#66">C_FROM_SHIFT</linty-anchor>|c_source_type|"001"||
|<linty-anchor href="//mlite_pack.vhd#67">C_FROM_MULT</linty-anchor>|c_source_type|"001"||
|<linty-anchor href="//mlite_pack.vhd#68">C_FROM_MEMORY</linty-anchor>|c_source_type|"010"||
|<linty-anchor href="//mlite_pack.vhd#69">C_FROM_PC</linty-anchor>|c_source_type|"011"||
|<linty-anchor href="//mlite_pack.vhd#70">C_FROM_PC_PLUS4</linty-anchor>|c_source_type|"100"||
|<linty-anchor href="//mlite_pack.vhd#71">C_FROM_IMM_SHIFT16</linty-anchor>|c_source_type|"101"||
|<linty-anchor href="//mlite_pack.vhd#72">C_FROM_REG_SOURCEN</linty-anchor>|c_source_type|"110"||
|<linty-anchor href="//mlite_pack.vhd#75">FROM_INC4</linty-anchor>|pc_source_type|"00"||
|<linty-anchor href="//mlite_pack.vhd#76">FROM_OPCODE25_0</linty-anchor>|pc_source_type|"01"||
|<linty-anchor href="//mlite_pack.vhd#77">FROM_BRANCH</linty-anchor>|pc_source_type|"10"||
|<linty-anchor href="//mlite_pack.vhd#78">FROM_LBRANCH</linty-anchor>|pc_source_type|"11"||
|<linty-anchor href="//mlite_pack.vhd#81">BRANCH_LTZ</linty-anchor>|branch_function_type|"000"||
|<linty-anchor href="//mlite_pack.vhd#82">BRANCH_LEZ</linty-anchor>|branch_function_type|"001"||
|<linty-anchor href="//mlite_pack.vhd#83">BRANCH_EQ</linty-anchor>|branch_function_type|"010"||
|<linty-anchor href="//mlite_pack.vhd#84">BRANCH_NE</linty-anchor>|branch_function_type|"011"||
|<linty-anchor href="//mlite_pack.vhd#85">BRANCH_GEZ</linty-anchor>|branch_function_type|"100"||
|<linty-anchor href="//mlite_pack.vhd#86">BRANCH_GTZ</linty-anchor>|branch_function_type|"101"||
|<linty-anchor href="//mlite_pack.vhd#87">BRANCH_YES</linty-anchor>|branch_function_type|"110"||
|<linty-anchor href="//mlite_pack.vhd#88">BRANCH_NO</linty-anchor>|branch_function_type|"111"||
|<linty-anchor href="//mlite_pack.vhd#92">MEM_FETCH</linty-anchor>|mem_source_type|"0000"||
|<linty-anchor href="//mlite_pack.vhd#93">MEM_READ32</linty-anchor>|mem_source_type|"0100"||
|<linty-anchor href="//mlite_pack.vhd#94">MEM_WRITE32</linty-anchor>|mem_source_type|"0101"||
|<linty-anchor href="//mlite_pack.vhd#95">MEM_READ16</linty-anchor>|mem_source_type|"1000"||
|<linty-anchor href="//mlite_pack.vhd#96">MEM_READ16S</linty-anchor>|mem_source_type|"1010"||
|<linty-anchor href="//mlite_pack.vhd#97">MEM_WRITE16</linty-anchor>|mem_source_type|"1001"||
|<linty-anchor href="//mlite_pack.vhd#98">MEM_READ8</linty-anchor>|mem_source_type|"1100"||
|<linty-anchor href="//mlite_pack.vhd#99">MEM_READ8S</linty-anchor>|mem_source_type|"1110"||
|<linty-anchor href="//mlite_pack.vhd#100">MEM_WRITE8</linty-anchor>|mem_source_type|"1101"||


## Types

Count: 0



## Subtypes

Count: 9

| Name | Base type | Description |
| --- | --- | --- |
|<linty-anchor href="//mlite_pack.vhd#24">alu_function_type</linty-anchor>|std_logic_vector ( 3 downto 0 )||
|<linty-anchor href="//mlite_pack.vhd#35">shift_function_type</linty-anchor>|std_logic_vector ( 1 downto 0 )||
|<linty-anchor href="//mlite_pack.vhd#41">mult_function_type</linty-anchor>|std_logic_vector ( 3 downto 0 )||
|<linty-anchor href="//mlite_pack.vhd#52">a_source_type</linty-anchor>|std_logic_vector ( 1 downto 0 )||
|<linty-anchor href="//mlite_pack.vhd#57">b_source_type</linty-anchor>|std_logic_vector ( 1 downto 0 )||
|<linty-anchor href="//mlite_pack.vhd#63">c_source_type</linty-anchor>|std_logic_vector ( 2 downto 0 )||
|<linty-anchor href="//mlite_pack.vhd#74">pc_source_type</linty-anchor>|std_logic_vector ( 1 downto 0 )||
|<linty-anchor href="//mlite_pack.vhd#80">branch_function_type</linty-anchor>|std_logic_vector ( 2 downto 0 )||
|<linty-anchor href="//mlite_pack.vhd#91">mem_source_type</linty-anchor>|std_logic_vector ( 3 downto 0 )||


## Functions

Count: 4

| Name | Returned type | Description | Details |
| --- | --- | --- | :---: |
|<linty-anchor href="//mlite_pack.vhd#102">bv_adder</linty-anchor>|std_logic_vector||[<img title="View Function Details" src="/_static/images/icon_details.png" style="max-height: 25px; width: auto;" alt="View Function Details">](package_1/function_1.md)|
|<linty-anchor href="//mlite_pack.vhd#105">bv_negate</linty-anchor>|std_logic_vector||[<img title="View Function Details" src="/_static/images/icon_details.png" style="max-height: 25px; width: auto;" alt="View Function Details">](package_1/function_2.md)|
|<linty-anchor href="//mlite_pack.vhd#106">bv_increment</linty-anchor>|std_logic_vector||[<img title="View Function Details" src="/_static/images/icon_details.png" style="max-height: 25px; width: auto;" alt="View Function Details">](package_1/function_3.md)|
|<linty-anchor href="//mlite_pack.vhd#108">bv_inc</linty-anchor>|std_logic_vector||[<img title="View Function Details" src="/_static/images/icon_details.png" style="max-height: 25px; width: auto;" alt="View Function Details">](package_1/function_4.md)|


## Procedures

Count: 0



## Global Signals

Count: 0



## Global Variables

Count: 0



## Component Definitions

Count: 20

| Name | Description | Details | 
| --- | --- | :---: |
| <linty-anchor href="//mlite_pack.vhd#112">lpm_ram_dp</linty-anchor> |  | [<img title="View Component Details" src="/_static/images/icon_details.png" style="max-height: 25px; width: auto;" alt="View Component Details">](package_1/component_1.md) |
| <linty-anchor href="//mlite_pack.vhd#141">LPM_RAM_DQ</linty-anchor> |  | [<img title="View Component Details" src="/_static/images/icon_details.png" style="max-height: 25px; width: auto;" alt="View Component Details">](package_1/component_2.md) |
| <linty-anchor href="//mlite_pack.vhd#164">RAM16X1D</linty-anchor> |  | [<img title="View Component Details" src="/_static/images/icon_details.png" style="max-height: 25px; width: auto;" alt="View Component Details">](package_1/component_3.md) |
| <linty-anchor href="//mlite_pack.vhd#184">RAM32X1D</linty-anchor> |  | [<img title="View Component Details" src="/_static/images/icon_details.png" style="max-height: 25px; width: auto;" alt="View Component Details">](package_1/component_4.md) |
| <linty-anchor href="//mlite_pack.vhd#205">pc_next</linty-anchor> |  | [<img title="View Component Details" src="/_static/images/icon_details.png" style="max-height: 25px; width: auto;" alt="View Component Details">](package_1/component_5.md) |
| <linty-anchor href="//mlite_pack.vhd#218">mem_ctrl</linty-anchor> |  | [<img title="View Component Details" src="/_static/images/icon_details.png" style="max-height: 25px; width: auto;" alt="View Component Details">](package_1/component_6.md) |
| <linty-anchor href="//mlite_pack.vhd#241">control</linty-anchor> |  | [<img title="View Component Details" src="/_static/images/icon_details.png" style="max-height: 25px; width: auto;" alt="View Component Details">](package_1/component_7.md) |
| <linty-anchor href="//mlite_pack.vhd#260">reg_bank</linty-anchor> |  | [<img title="View Component Details" src="/_static/images/icon_details.png" style="max-height: 25px; width: auto;" alt="View Component Details">](package_1/component_8.md) |
| <linty-anchor href="//mlite_pack.vhd#274">bus_mux</linty-anchor> |  | [<img title="View Component Details" src="/_static/images/icon_details.png" style="max-height: 25px; width: auto;" alt="View Component Details">](package_1/component_9.md) |
| <linty-anchor href="//mlite_pack.vhd#295">alu</linty-anchor> |  | [<img title="View Component Details" src="/_static/images/icon_details.png" style="max-height: 25px; width: auto;" alt="View Component Details">](package_1/component_10.md) |
| <linty-anchor href="//mlite_pack.vhd#303">shifter</linty-anchor> |  | [<img title="View Component Details" src="/_static/images/icon_details.png" style="max-height: 25px; width: auto;" alt="View Component Details">](package_1/component_11.md) |
| <linty-anchor href="//mlite_pack.vhd#311">mult</linty-anchor> |  | [<img title="View Component Details" src="/_static/images/icon_details.png" style="max-height: 25px; width: auto;" alt="View Component Details">](package_1/component_12.md) |
| <linty-anchor href="//mlite_pack.vhd#321">pipeline</linty-anchor> |  | [<img title="View Component Details" src="/_static/images/icon_details.png" style="max-height: 25px; width: auto;" alt="View Component Details">](package_1/component_13.md) |
| <linty-anchor href="//mlite_pack.vhd#351">mlite_cpu</linty-anchor> |  | [<img title="View Component Details" src="/_static/images/icon_details.png" style="max-height: 25px; width: auto;" alt="View Component Details">](package_1/component_14.md) |
| <linty-anchor href="//mlite_pack.vhd#371">cache</linty-anchor> |  | [<img title="View Component Details" src="/_static/images/icon_details.png" style="max-height: 25px; width: auto;" alt="View Component Details">](package_1/component_15.md) |
| <linty-anchor href="//mlite_pack.vhd#385">ram</linty-anchor> |  | [<img title="View Component Details" src="/_static/images/icon_details.png" style="max-height: 25px; width: auto;" alt="View Component Details">](package_1/component_16.md) |
| <linty-anchor href="//mlite_pack.vhd#395">uart</linty-anchor> |  | [<img title="View Component Details" src="/_static/images/icon_details.png" style="max-height: 25px; width: auto;" alt="View Component Details">](package_1/component_17.md) |
| <linty-anchor href="//mlite_pack.vhd#409">eth_dma</linty-anchor> |  | [<img title="View Component Details" src="/_static/images/icon_details.png" style="max-height: 25px; width: auto;" alt="View Component Details">](package_1/component_18.md) |
| <linty-anchor href="//mlite_pack.vhd#436">plasma</linty-anchor> |  | [<img title="View Component Details" src="/_static/images/icon_details.png" style="max-height: 25px; width: auto;" alt="View Component Details">](package_1/component_19.md) |
| <linty-anchor href="//mlite_pack.vhd#458">ddr_ctrl</linty-anchor> |  | [<img title="View Component Details" src="/_static/images/icon_details.png" style="max-height: 25px; width: auto;" alt="View Component Details">](package_1/component_20.md) |


<br>

[Back to Design Hierarchy Report](../design_hierarchy.md#vhdl-packages)