Skip to content

Commit b7eb1e4

Browse files
Github Training: John Rivera
1 parent f657ad7 commit b7eb1e4

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

introductions/johnrivera.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
from introductions import johnrivera
2+
def main():
3+
# other intros
4+
johnrivera.intro()

introductions/m81.v

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
`timescale 1ns/1ps
2+
3+
module m81(input D0, D1, D2, D3, D4, D5, D6, D7, S0, S1, S2, output out);
4+
wire T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11;
5+
not(T1, S0); // ~A
6+
not(T2, S1); // ~B
7+
not(T3, S2); // ~C
8+
9+
and(T4, D0, T1, T2, T3), (T5, D1, S0, T2, T3);
10+
and(T6, D2, T1, S1, T3), (T7, D3, S0, S1, T3);
11+
and(T8, D4, T1, T2, S2), (T9, D5, S0, T2, S2);
12+
and(T10, D6, T1, S1, S2), (T11, D7, S0, S1, S2);
13+
or(out, T4, T5, T6, T7, T8, T9, T10, T11);
14+
endmodule

main.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
from introductions import mokshithanelluri
1111
from introductions import matthewschaming
1212
from introductions import sophiaabbassi
13+
from introductions import johnrivera
1314
# Put all imports above this line
1415

1516
def main():
@@ -22,6 +23,7 @@ def main():
2223
mokshithanelluri.intro()
2324
matthewschaming.intro()
2425
sophiaabbassi.intro()
26+
johnrivera.intro()
2527
# Call you intro function above this line
2628

2729

0 commit comments

Comments
 (0)