From 959f6270465bb2613fb3574667846b6a13879bc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=98=B3=E5=85=89=E5=B0=91=E5=B9=B4?= <849317537@qq.com> Date: Mon, 13 May 2024 14:43:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E4=BA=86=E6=95=B0=E7=A0=81?= =?UTF-8?q?=E7=AE=A1=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- digital_tube/dt.v | 34 +++++++++++----------------------- 1 file changed, 11 insertions(+), 23 deletions(-) diff --git a/digital_tube/dt.v b/digital_tube/dt.v index b86ec27..c6f6d97 100644 --- a/digital_tube/dt.v +++ b/digital_tube/dt.v @@ -12,37 +12,25 @@ parameter _SELECT_2 = 4'b1101; parameter _SELECT_3 = 4'b1011; parameter _SELECT_4 = 4'b0111; -// parameter SELECTOR = {_SELECT_4, _SELECT_3, _SELECT_2, _SELECT_1}; - // ABCDEFG -parameter _SHOW_0 = 8'B1111111; +parameter _SHOW_0 = 8'B1111110; parameter _SHOW_1 = 8'B0110000; parameter _SHOW_2 = 8'B1101101; parameter _SHOW_3 = 8'B1111001; parameter _SHOW_4 = 8'B0110011; -parameter _SHOW_5 = 8'B1111111; -parameter _SHOW_6 = 8'B1111111; -parameter _SHOW_7 = 8'B1111111; +parameter _SHOW_5 = 8'B1011011; +parameter _SHOW_6 = 8'B1011111; +parameter _SHOW_7 = 8'B1110000; parameter _SHOW_8 = 8'B1111111; -parameter _SHOW_9 = 8'B1111111; -parameter _SHOW_A = 8'B1111111; -parameter _SHOW_B = 8'B1111111; -parameter _SHOW_C = 8'B1111111; -parameter _SHOW_D = 8'B1111111; -parameter _SHOW_E = 8'B1111111; -parameter _SHOW_F = 8'B1111111; - - -// parameter SHOW = {_SHOW_F, _SHOW_E, _SHOW_D, _SHOW_C, _SHOW_B, _SHOW_A, _SHOW_9, _SHOW_8, _SHOW_7, _SHOW_6, _SHOW_5, _SHOW_4, _SHOW_3, _SHOW_2, _SHOW_1, _SHOW_0}; +parameter _SHOW_9 = 8'B1111101; +parameter _SHOW_A = 8'B1110111; +parameter _SHOW_B = 8'B0011111; +parameter _SHOW_C = 8'B1001110; +parameter _SHOW_D = 8'B0111101; +parameter _SHOW_E = 8'B1001111; +parameter _SHOW_F = 8'B1000111; -// always @(data) begin -// if (data[7]) begin -// {S4, S3, S2, S1} = SELECTOR >> (data[6:5] * 4); -// {A, B, C, D, E, F, G, DP} = {((SHOW >> (data[3:0] * 7))), data[4]}; -// {A, B, C, D, E, F, G, DP} = {SHOW[(data[3:0] * 7)+:7], data[4]}; -// end -// end always @(data) begin DP = data[4];