Autosave: 2022-12-29 15:00:05
This commit is contained in:
parent
079f0ad146
commit
97e65f0568
2 changed files with 16 additions and 4 deletions
|
@ -59,7 +59,7 @@ In an HDL program we distinguish internal pins along with the standard [input an
|
|||
|
||||
### Test file (`Xor.tst`)
|
||||
|
||||
Along with the HDL file we also create a test file. This runs the chip against the inputs we supply, these will typically be equivalent to the (left-hand) truth-values column in a truth table which is the same as the parameters passed to a [Boolean function](/Logic/Propositional_logic/Boolean_functions.md)
|
||||
Along with the HDL file we also create a test file. This runs the chip against the inputs we supply, these will typically be equivalent to the (left-hand) truth-values column in a truth table which is the same as the parameters passed to a [Boolean function](/Logic/Propositional_logic/Boolean_functions.md), for example:
|
||||
|
||||
```vhdl
|
||||
load Xor.hdl
|
||||
|
@ -67,4 +67,18 @@ output-list a, b, out;
|
|||
set a 0, set b 0, eval, output;
|
||||
set a 0, set b 1, eval, output;
|
||||
set a 1, set b 0, eval, output;
|
||||
set a 1, set b =, eval, output;
|
||||
```
|
||||
|
||||
### Output file (`Xor.out`)
|
||||
|
||||
When the test file is run against the HDL file it will generate an output file. This is effectively the result of the unit test. And will take the form of a truth table:
|
||||
|
||||
```
|
||||
a | b | out
|
||||
-----------
|
||||
0 | 0 | 0
|
||||
0 | 1 | 1
|
||||
1 | 0 | 1
|
||||
1 | 1 | 0
|
||||
```
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
# computer_science
|
||||
|
||||
This repository contains my notes from autodidactic study of Computer Science. As well as standard CS curricula topics it also houses notes related to my professional development as a software engineer. So there is a lot of practical content mixed-in, such as topics in DevOps, Git, shell scripting etc. I find it easier to have everything in one place and cross-referenced through YAML.
|
||||
|
||||
Precisely no one probably needs to know this lol.
|
||||
This repository contains notes from my autodidactic study of Computer Science. As well as standard CS curricula it also houses notes related to my professional development as a software engineer. So there is a lot of practical content mixed-in, such as topics in DevOps, Git, shell scripting etc. I find it easier to have everything in one place and cross-referenced through YAML.
|
||||
|
|
Loading…
Add table
Reference in a new issue