From 5ab9865fa6ed343ae0cffefb81b20af2e533e36f Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Sat, 8 Apr 2023 17:20:32 +0300 Subject: Move from logisim to digital --- digital/atk16_alu.dig | 1290 +++++++++++++++++++++++-------------------------- 1 file changed, 617 insertions(+), 673 deletions(-) (limited to 'digital/atk16_alu.dig') diff --git a/digital/atk16_alu.dig b/digital/atk16_alu.dig index 09e0e1b..d456fee 100644 --- a/digital/atk16_alu.dig +++ b/digital/atk16_alu.dig @@ -333,21 +333,21 @@ 4 - + Splitter Input Splitting - 3 + 4 Output Splitting - 1*3 + 1*4 - + Splitter @@ -1122,60 +1122,64 @@ - Splitter + BarrelShifter - Input Splitting - 1*16 + Label + SRL - Output Splitting - 16 + Bits + 16 + + + direction + right - + - Tunnel + Demultiplexer - rotation - + Selector Bits + 3 - NetName - Y0 + Bits + 16 - + Tunnel rotation - + NetName - Y1 + A - + Tunnel rotation - + NetName - Y2 + B - + Tunnel @@ -1186,24 +1190,24 @@ NetName - Y3 + A - + - Tunnel + Splitter - rotation - + Input Splitting + 16 - NetName - Y4 + Output Splitting + 5, - + Tunnel @@ -1214,631 +1218,619 @@ NetName - Y5 + B - + - Tunnel + BarrelShifter - rotation - + Label + SRA - NetName - Y6 + Bits + 16 - - - - - Tunnel - - rotation - + barrelShifterMode + arithmetic - NetName - Y7 + direction + right - + - Tunnel + BarrelShifter - rotation - + Label + SLL - NetName - Y8 + Bits + 16 - + - Tunnel + Splitter - rotation - + Input Splitting + 1*4 - NetName - Y9 + Output Splitting + 4 - + - Tunnel + Out - rotation - + Label + FLAGS - NetName - Y10 + Bits + 4 - + - Tunnel + Splitter - rotation - + splitterSpreading + 2 - NetName - Y11 + Input Splitting + 16 + + + Output Splitting + 8*2 - + - Tunnel + BitSelector - rotation - - - - NetName - Y12 + Selector Bits + 4 - + - Tunnel + Const rotation - + - NetName - Y13 + Value + 15 + + + Bits + 4 - + - Tunnel + Splitter - rotation - + splitterSpreading + 2 - NetName - Y14 + Input Splitting + 8 + + + Output Splitting + 4*2 - + - Tunnel + Testcase - rotation - + Label + Add test 1 - NetName - Y15 + Testdata + + A B S FLAGS Y +0x1 0x2 3 0b0000 0x3 +0xff 0x1 3 0b0000 0x100 +0x1 0xffff 3 0b0101 0x0 + - + - BarrelShifter + Or - - Label - SRL - Bits - 16 - - - direction - right + 8 - + - Demultiplexer + Or Bits - 3 + 4 - + Splitter + + splitterSpreading + 2 + Input Splitting - 4 + 2 Output Splitting - 3,1 + 1*2 - + - Demultiplexer + Splitter - Selector Bits - 3 - - - Bits - 16 + splitterSpreading + 2 - - - - - Tunnel - - rotation - + Input Splitting + 4 - NetName - A + Output Splitting + 2*2 - + - Tunnel + Or - rotation - - - - NetName - B + Bits + 2 - + - Tunnel + NOr + + + + + Testcase - rotation - + Label + Sub test 1 - NetName - A + Testdata + + A B S FLAGS Y +0x10 0x1 2 0b0001 0xF +0x1 0x0 1 0b1000 0xFFFF + - + - Splitter + atk16_alu_carryfix.dig + + + + + Multiplexer - Input Splitting - 16 + flipSelPos + true - Output Splitting - 5, + Bits + 16 + + + Selector Bits + 2 - + - Tunnel + Ground rotation - + - NetName - B + Bits + 16 - + - Decoder + Splitter - Selector Bits - 3 + rotation + + + + Input Splitting + 1,1 + + + Output Splitting + 2 - + - Driver + Splitter - Bits - 16 + Input Splitting + 1*16 - flipSelPos - true + Output Splitting + 16 - + Tunnel rotation - + NetName - ALS_E + Y0 - + - Driver + Tunnel - Bits - 16 + rotation + - flipSelPos - true + NetName + Y1 - + Tunnel rotation - + NetName - ALS_E + Y2 - + - DriverInvSel + Tunnel - Bits - 16 + rotation + + + + NetName + Y3 - + - BarrelShifter + Tunnel - Label - SRA - - - Bits - 16 - - - barrelShifterMode - arithmetic + rotation + - direction - right + NetName + Y4 - + - Driver + Tunnel - Bits - 16 + rotation + - flipSelPos - true + NetName + Y5 - + - BarrelShifter + Tunnel - Label - SLL + rotation + - Bits - 16 + NetName + Y6 - + - Driver + Tunnel - Bits - 16 + rotation + - flipSelPos - true + NetName + Y7 - + - Splitter + Tunnel - Input Splitting - 1*4 + rotation + - Output Splitting - 4 + NetName + Y8 - + - Out + Tunnel - Label - FLAGS + rotation + - Bits - 4 + NetName + Y9 - + Tunnel + + rotation + + NetName - ALS_E + Y10 - + - Splitter + Tunnel - splitterSpreading - 2 - - - Input Splitting - 16 + rotation + - Output Splitting - 8*2 + NetName + Y11 - + - BitSelector + Tunnel - Selector Bits - 4 + rotation + + + + NetName + Y12 - + - Const + Tunnel rotation - - - - Value - 15 + - Bits - 4 + NetName + Y13 - + - Splitter + Tunnel - splitterSpreading - 2 - - - Input Splitting - 8 + rotation + - Output Splitting - 4*2 + NetName + Y14 - + - Testcase + Tunnel - Label - Add test 1 + rotation + - Testdata - - A B S FLAGS Y -0x1 0x2 3 0b0000 0x3 -0xff 0x1 3 0b0000 0x100 -0x1 0xffff 3 0b0101 0x0 - + NetName + Y15 - + - Or + Tunnel - Bits - 8 + NetName + ALU1 - + - Or + Multiplexer + + flipSelPos + true + Bits - 4 + 16 - + - Splitter + Tunnel - splitterSpreading - 2 - - - Input Splitting - 2 - - - Output Splitting - 1*2 + NetName + ALU2 - + - Splitter + Tunnel - splitterSpreading - 2 - - - Input Splitting - 4 + rotation + - Output Splitting - 2*2 + NetName + ALU1 - + - Or + Tunnel - Bits - 2 + rotation + + + + NetName + ALU2 - - - - NOr - - + - Testcase + Splitter - Label - Sub test 1 + rotation + - Testdata - - A B S FLAGS Y -0x10 0x1 2 0b0001 0xF -0x1 0x0 1 0b1000 0xFFFF - + Input Splitting + 1,1,1 + + + Output Splitting + 3 - - - - atk16_alu_carryfix.dig - - + @@ -1851,17 +1843,25 @@ - - + + - - + + + + + + + + + + @@ -1871,352 +1871,168 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + @@ -2231,8 +2047,28 @@ - - + + + + + + + + + + + + + + + + + + + + + + @@ -2243,16 +2079,24 @@ - - + + - - + + - - + + + + + + + + + + @@ -2264,6 +2108,14 @@ + + + + + + + + @@ -2278,25 +2130,65 @@ + + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + + + + + + + + + - - + + @@ -2318,6 +2210,26 @@ + + + + + + + + + + + + + + + + + + + + @@ -2363,19 +2275,31 @@ - - + + + + + + - - + + - + - + + + + + + + + + @@ -2384,32 +2308,64 @@ - - - - - + - - + + - - + + + + + + + + + + + + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -2419,24 +2375,24 @@ - - + + - - + + - - + + - - + + - - + + @@ -2446,10 +2402,6 @@ - - - - @@ -2458,10 +2410,6 @@ - - - - @@ -2474,10 +2422,6 @@ - - - - @@ -2490,10 +2434,6 @@ - - - - @@ -2507,17 +2447,21 @@ - - + + - - + + + + + + @@ -2530,10 +2474,6 @@ - - - - @@ -2546,10 +2486,6 @@ - - - - @@ -2567,16 +2503,16 @@ - - + + - - + + - - + + @@ -2594,6 +2530,10 @@ + + + + @@ -2630,6 +2570,10 @@ + + + + @@ -2643,8 +2587,8 @@ - - + + -- cgit v1.3