From 5b6637fb92c54b8f367ec8751f53f6f238d8dbed Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Sun, 9 Apr 2023 18:26:25 +0300 Subject: Remake ALU --- digital/atk16_decoder.dig | 306 ++++++++++++++++++++++------------------------ 1 file changed, 145 insertions(+), 161 deletions(-) (limited to 'digital/atk16_decoder.dig') diff --git a/digital/atk16_decoder.dig b/digital/atk16_decoder.dig index ca22f72..0570615 100644 --- a/digital/atk16_decoder.dig +++ b/digital/atk16_decoder.dig @@ -1,50 +1,19 @@ 2 - + + + romContent + + + + + + Width + 5 + + - - Out - - - Description - Write register selection - - - Label - RW_S - - - - - - Out - - - Description - Read register 1 selection - - - Label - R1_S - - - - - - Out - - - Description - Read register 2 selection - - - Label - R2_S - - - - Register @@ -123,34 +92,6 @@ - - Splitter - - - Input Splitting - 9,7 - - - Output Splitting - 16 - - - - - - Ground - - - rotation - - - - Bits - 7 - - - - Tunnel @@ -176,120 +117,187 @@ - Driver + Out + + Description + Opcode + + + Label + OP + Bits - 16 + 4 + + + + + Out + - flipSelPos - true + Description + Write register selection + + + Label + RW_S + + + Bits + 3 - + - Tunnel + Out - NetName - DBUS + Description + ALU selection code + + + Label + ALU_S + + + Bits + 3 - + - Splitter + Out - Input Splitting - 16 + Description + Read register 1 selection - Output Splitting - 3,9, + Label + R1_S + + + Bits + 3 - + Out Description - ALU selection code + Read register 2 selection Label - ALU_S + R2_S Bits - 4 + 3 - + Splitter Input Splitting - 3,1 + 16 Output Splitting - 4 + 9, - + - Splitter + Driver - Input Splitting - 4 + Bits + 16 - Output Splitting - 1,3 + flipSelPos + true + + + + + + Tunnel + + + NetName + DBUS - + In Description - Jump address output enable + Low 9 bits immediate value output enable Label - JA_OE + LI_OE - + - Out + Splitter - Description - Opcode + Input Splitting + 9,7 - Label - OP + Output Splitting + 16 + + + + + + Ground + + + rotation + Bits - 4 + 7 + + + + + + Testcase + + + Testdata + + CLK DBUS IR_IE LI_OE OP RW_S R1_S R2_S ALU_S +C 0b0000001010011000 1 0 0 1 2 3 0 + - + @@ -299,71 +307,51 @@ - - - - - - - - - - - - - + - - - - - - - - - - - - - - - - - + - + - + - - + + - - + + - - + + + + + + + + + + @@ -374,28 +362,24 @@ - - + + - - - - - - + + - - + + - - + + - - + + -- cgit v1.3