From b7eb1e4aad821b5176fa785be67f2e26945c8d08 Mon Sep 17 00:00:00 2001 From: John Rivera Date: Fri, 31 Oct 2025 16:41:22 -0400 Subject: [PATCH] Github Training: John Rivera --- introductions/johnrivera.py | 4 ++++ introductions/m81.v | 14 ++++++++++++++ main.py | 2 ++ 3 files changed, 20 insertions(+) create mode 100644 introductions/johnrivera.py create mode 100644 introductions/m81.v diff --git a/introductions/johnrivera.py b/introductions/johnrivera.py new file mode 100644 index 0000000..85da8ca --- /dev/null +++ b/introductions/johnrivera.py @@ -0,0 +1,4 @@ +from introductions import johnrivera +def main(): + # other intros + johnrivera.intro() \ No newline at end of file diff --git a/introductions/m81.v b/introductions/m81.v new file mode 100644 index 0000000..6d51171 --- /dev/null +++ b/introductions/m81.v @@ -0,0 +1,14 @@ +`timescale 1ns/1ps + +module m81(input D0, D1, D2, D3, D4, D5, D6, D7, S0, S1, S2, output out); + wire T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11; + not(T1, S0); // ~A + not(T2, S1); // ~B + not(T3, S2); // ~C + + and(T4, D0, T1, T2, T3), (T5, D1, S0, T2, T3); + and(T6, D2, T1, S1, T3), (T7, D3, S0, S1, T3); + and(T8, D4, T1, T2, S2), (T9, D5, S0, T2, S2); + and(T10, D6, T1, S1, S2), (T11, D7, S0, S1, S2); + or(out, T4, T5, T6, T7, T8, T9, T10, T11); +endmodule \ No newline at end of file diff --git a/main.py b/main.py index e32d532..d92c09e 100644 --- a/main.py +++ b/main.py @@ -10,6 +10,7 @@ from introductions import mokshithanelluri from introductions import matthewschaming from introductions import sophiaabbassi +from introductions import johnrivera # Put all imports above this line def main(): @@ -22,6 +23,7 @@ def main(): mokshithanelluri.intro() matthewschaming.intro() sophiaabbassi.intro() + johnrivera.intro() # Call you intro function above this line