From 69178cd532c8eb3be58e3d48bd83cbdcf1070d72 Mon Sep 17 00:00:00 2001 From: Mike Bell Date: Mon, 30 Oct 2023 18:42:44 +0000 Subject: [PATCH 1/3] Add hex values to decoder, make 6 and b distinct --- src/decoder.v | 10 ++++++++-- src/test.py | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/decoder.v b/src/decoder.v index 8d6310e2..462330b9 100644 --- a/src/decoder.v +++ b/src/decoder.v @@ -25,11 +25,17 @@ module seg7 ( 3: segments = 7'b1001111; 4: segments = 7'b1100110; 5: segments = 7'b1101101; - 6: segments = 7'b1111100; + 6: segments = 7'b1111101; 7: segments = 7'b0000111; 8: segments = 7'b1111111; 9: segments = 7'b1100111; - default: + 10: segments = 7'b1110111; + 11: segments = 7'b1111100; + 12: segments = 7'b0111001; + 13: segments = 7'b1011110; + 14: segments = 7'b1111001; + 15: segments = 7'b1110001; + default: segments = 7'b0000000; endcase end diff --git a/src/test.py b/src/test.py index 84d627fe..89317362 100644 --- a/src/test.py +++ b/src/test.py @@ -3,7 +3,7 @@ from cocotb.triggers import RisingEdge, FallingEdge, Timer, ClockCycles -segments = [ 63, 6, 91, 79, 102, 109, 124, 7, 127, 103 ] +segments = [ 63, 6, 91, 79, 102, 109, 125, 7, 127, 103 ] @cocotb.test() async def test_7seg(dut): From 64785bad381f18923d7adf3763eba9b1f2ad5bdf Mon Sep 17 00:00:00 2001 From: Mike Bell Date: Mon, 30 Oct 2023 18:53:18 +0000 Subject: [PATCH 2/3] Modify 9 to match the new 6 --- src/decoder.v | 2 +- src/test.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/decoder.v b/src/decoder.v index 462330b9..e2e3d5b9 100644 --- a/src/decoder.v +++ b/src/decoder.v @@ -28,7 +28,7 @@ module seg7 ( 6: segments = 7'b1111101; 7: segments = 7'b0000111; 8: segments = 7'b1111111; - 9: segments = 7'b1100111; + 9: segments = 7'b1101111; 10: segments = 7'b1110111; 11: segments = 7'b1111100; 12: segments = 7'b0111001; diff --git a/src/test.py b/src/test.py index 89317362..fb76b0ea 100644 --- a/src/test.py +++ b/src/test.py @@ -3,7 +3,7 @@ from cocotb.triggers import RisingEdge, FallingEdge, Timer, ClockCycles -segments = [ 63, 6, 91, 79, 102, 109, 125, 7, 127, 103 ] +segments = [ 63, 6, 91, 79, 102, 109, 125, 7, 127, 111 ] @cocotb.test() async def test_7seg(dut): From 88f9e047fd8c984a34bf651a456b18a07beba415 Mon Sep 17 00:00:00 2001 From: ASSEL KEMBAY Date: Tue, 31 Oct 2023 21:46:46 -0700 Subject: [PATCH 3/3] update authorship --- info.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/info.yaml b/info.yaml index 87420d78..6c174674 100644 --- a/info.yaml +++ b/info.yaml @@ -79,7 +79,7 @@ documentation: # The following fields are optional tag: "timer, test" # comma separated list of tags: test, encryption, experiment, clock, animation, utility, industrial, pwm, fpga, alu, microprocessor, risc, riscv, sensor, signal generator, fft, filter, music, bcd, sound, serial, timer, random number generator, calculator, decoder, counter, puzzle, multiplier, game, oscillator, external_hw: "" # Describe any external hardware needed - discord: "mattvenn" # Your discord handle, used for communication and automatically assigning tapeout role after a submission + discord: "akembay" # Your discord handle, used for communication and automatically assigning tapeout role after a submission doc_link: "" # URL to longer form documentation, eg the README.md in your repository clock_hz: 10000000 # Clock frequency in Hz (if required) picture: "" # relative path to a picture in your repository (must be 512kb or less)