diff options
author | Julian T <julian@jtle.dk> | 2021-02-08 16:16:54 +0100 |
---|---|---|
committer | Julian T <julian@jtle.dk> | 2021-02-08 16:16:54 +0100 |
commit | 8a37c059748673e14f352fa70dbf974f33310c43 (patch) | |
tree | 8de5665d9445ee08e57ab0ffe11bd1dff3836b61 /sem6/dig/m2/noter.md | |
parent | b7693c4b70ba2514d9007891b267f1876473258e (diff) |
Add Makefile and testgenerator to run vhdl files
Diffstat (limited to 'sem6/dig/m2/noter.md')
-rw-r--r-- | sem6/dig/m2/noter.md | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/sem6/dig/m2/noter.md b/sem6/dig/m2/noter.md new file mode 100644 index 0000000..9a59572 --- /dev/null +++ b/sem6/dig/m2/noter.md @@ -0,0 +1,55 @@ +# Noter til digital design m2 + +Configurable element +: I think the same as logic block + +Island type architecture: +: How to interconnect the configurable busses between Logic blocks +: This can be done as either DISJOINT, UNIVERSAL or WILTON + +## VHDL + +Her bruger man rigtig meget `ENTITY` i stedet for verilog module. + +```vhdl +ENTITY nor_gate IS + PORT ( + x: IN STD_LOGIC; + y: IN STD_LOGIC; + z: OUT STD_LOGIC; + ); +END nor_gate; +``` + +Here semicolon is a seperator. +`STD_LOGIC` is for boolean values. + +`Architecture implements the ENTITY`. + +```vhdl +ARCHITECTURE sample OF nor_gate IS +BEGIN + z <= x NOR y; +END sample; +``` + +`INOUT` can be used have an input and output, so *bi-directional*. + +Different types, these come with IEEE libraries. + +- `STD_LOGIC`: boolean (`1`, `0`, `Z`), with Z being high impedance + + THere are more options here but chose were not covered. +- `STD_LOGIC_VECTOR`: Sequence of values. + +``` +STD_LOGIC_VECTOR(7 DOWNTO 0): for MSB +``` + +`SIGNAL` is a wire inside the design. + +``` +SIGNAL x: STD_LOGIC +``` + +Okay so `COMPONENTS` are the equivilent of functions. |