From f182d85d593bfe81161382e748d26ba8d19dd228 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Tue, 5 Dec 2023 16:04:24 +0000 Subject: [PATCH] add shriya svg pospocount diagrams bug #672 --- openpower/sv/cookbook/ArrayPopcnt.drawio.svg | 4 ++++ openpower/sv/cookbook/ArrayPopcount.svg | 4 ++++ openpower/sv/cookbook/BlockDivision.drawio.svg | 4 ++++ .../sv/cookbook/ParallelAccumulate.drawio.svg | 4 ++++ .../sv/cookbook/PopcountBlocks.drawio.svg | 4 ++++ .../sv/cookbook/PositionalPopcnt.drawio.svg | 4 ++++ openpower/sv/cookbook/PositionalPopcount.svg | 4 ++++ openpower/sv/cookbook/Transpose.drawio.svg | 4 ++++ openpower/sv/cookbook/pospopcnt.mdwn | 18 ++++++++++++++++++ 9 files changed, 50 insertions(+) create mode 100644 openpower/sv/cookbook/ArrayPopcnt.drawio.svg create mode 100644 openpower/sv/cookbook/ArrayPopcount.svg create mode 100644 openpower/sv/cookbook/BlockDivision.drawio.svg create mode 100644 openpower/sv/cookbook/ParallelAccumulate.drawio.svg create mode 100644 openpower/sv/cookbook/PopcountBlocks.drawio.svg create mode 100644 openpower/sv/cookbook/PositionalPopcnt.drawio.svg create mode 100644 openpower/sv/cookbook/PositionalPopcount.svg create mode 100644 openpower/sv/cookbook/Transpose.drawio.svg diff --git a/openpower/sv/cookbook/ArrayPopcnt.drawio.svg b/openpower/sv/cookbook/ArrayPopcnt.drawio.svg new file mode 100644 index 000000000..97ebb4288 --- /dev/null +++ b/openpower/sv/cookbook/ArrayPopcnt.drawio.svg @@ -0,0 +1,4 @@ + + + +
RESULT 1
RESULT 1
RESULT 2
RESULT 2
RESULT 3
RESULT 3
RESULT n
RESULT n
Fig.1: Array Popcount
Fig.1: Array Popcount
Text is not SVG - cannot display
\ No newline at end of file diff --git a/openpower/sv/cookbook/ArrayPopcount.svg b/openpower/sv/cookbook/ArrayPopcount.svg new file mode 100644 index 000000000..84a15290a --- /dev/null +++ b/openpower/sv/cookbook/ArrayPopcount.svg @@ -0,0 +1,4 @@ + + + +
RESULT 1
RESULT 1
RESULT 2
RESULT 2
RESULT 3
RESULT 3
RESULT n
RESULT n
Fig.1: Array Popcount
Fig.1: Array Popcount
Text is not SVG - cannot display
\ No newline at end of file diff --git a/openpower/sv/cookbook/BlockDivision.drawio.svg b/openpower/sv/cookbook/BlockDivision.drawio.svg new file mode 100644 index 000000000..a39afdf10 --- /dev/null +++ b/openpower/sv/cookbook/BlockDivision.drawio.svg @@ -0,0 +1,4 @@ + + + +
INPUT 1
INPUT 1
INPUT 2
INPUT 2
INPUT 3
INPUT 3
INPUT 8
INPUT 8
INPUT 9
INPUT 9
INPUT 10
INPUT 10
INPUT 11
INPUT 11
INPUT 16
INPUT 16
Fig.3: Divided into CEILING(N/8) 8*8 Blocks
Fig.3: Divided into CEILING(N/8) 8*8 Blocks
Text is not SVG - cannot display
\ No newline at end of file diff --git a/openpower/sv/cookbook/ParallelAccumulate.drawio.svg b/openpower/sv/cookbook/ParallelAccumulate.drawio.svg new file mode 100644 index 000000000..2009f91f5 --- /dev/null +++ b/openpower/sv/cookbook/ParallelAccumulate.drawio.svg @@ -0,0 +1,4 @@ + + + +
Fig.6: Setvl=8, sv.popcntd and Parallel Accumulate 
Fig.6: Setvl=8, sv.popcntd and Parallel Accumulate 
INPUT 1
INPUT 1
INPUT 2
INPUT 2
INPUT 3
INPUT 3
INPUT 8
INPUT 8
INPUT 9
INPUT 9
INPUT 10
INPUT 10
INPUT 11
INPUT 11
INUPUT 16
INUPUT 16
INPUT 17
INPUT 17
INPUT 18
INPUT 18
INPUT 19
INPUT 19
INPUT n
INPUT n
RESULT 1
RESULT 1
RESULT 2
RESULT 2
RESULT 3
RESULT 3
RESULT 8
RESULT 8
BLOCK 1
BLOCK 1
BLOCK 2
BLOCK 2
BLOCK CEILING(N/8)
BLOCK CEILING(N/8)
Text is not SVG - cannot display
\ No newline at end of file diff --git a/openpower/sv/cookbook/PopcountBlocks.drawio.svg b/openpower/sv/cookbook/PopcountBlocks.drawio.svg new file mode 100644 index 000000000..37bd30323 --- /dev/null +++ b/openpower/sv/cookbook/PopcountBlocks.drawio.svg @@ -0,0 +1,4 @@ + + + +
INTERMEDIATE RESULT 1
INTERMEDIATE RESULT 1
INTERMEDIATE RESULT 2
INTERMEDIATE RESULT 2
INTERMEDIATE RESULT 3
INTERMEDIATE RESULT 3
INTERMEDIATE RESULT 8
INTERMEDIATE RESULT 8
INTERMEDIATE RESULT 9
INTERMEDIATE RESULT 9
INTERMEDIATE RESULT 10
INTERMEDIATE RESULT 10
INTERMEDIATE RESULT 11
INTERMEDIATE RESULT 11
INTERMEDIATE RESULT 16
INTERMEDIATE RESULT 16
INTERMEDIATE RESULT 17
INTERMEDIATE RESULT 17
INTERMEDIATE RESULT 18
INTERMEDIATE RESULT 18
INTERMEDIATE RESULT 19
INTERMEDIATE RESULT 19
INTERMEDIATE RESULT n
INTERMEDIATE RESULT n
Fig.5: Parallel popcount blocks calculation 
Fig.5: Parallel popcount blocks calculation 
BLOCK 1
BLOCK 1
BLOCK 2
BLOCK 2
BLOCK CEILING(N/8)
BLOCK CEILING(N/8)
Text is not SVG - cannot display
\ No newline at end of file diff --git a/openpower/sv/cookbook/PositionalPopcnt.drawio.svg b/openpower/sv/cookbook/PositionalPopcnt.drawio.svg new file mode 100644 index 000000000..0a2d249dd --- /dev/null +++ b/openpower/sv/cookbook/PositionalPopcnt.drawio.svg @@ -0,0 +1,4 @@ + + + +
RESULT 1
RESULT 1
RESULT 2
RESULT 2
RESULT n
RESULT n
Fig.2: Positional Popcount
Fig.2: Positional Popcount
Text is not SVG - cannot display
\ No newline at end of file diff --git a/openpower/sv/cookbook/PositionalPopcount.svg b/openpower/sv/cookbook/PositionalPopcount.svg new file mode 100644 index 000000000..54defc46c --- /dev/null +++ b/openpower/sv/cookbook/PositionalPopcount.svg @@ -0,0 +1,4 @@ + + + +
RESULT 1
RESULT 1
RESULT 2
RESULT 2
RESULT n
RESULT n
Fig.1: Array Popcount
Fig.1: Array Popcount
Text is not SVG - cannot display
\ No newline at end of file diff --git a/openpower/sv/cookbook/Transpose.drawio.svg b/openpower/sv/cookbook/Transpose.drawio.svg new file mode 100644 index 000000000..8da2add0d --- /dev/null +++ b/openpower/sv/cookbook/Transpose.drawio.svg @@ -0,0 +1,4 @@ + + + +
Fig.4: Transpose Each Block (gbbd)
Fig.4: Transpose Each Block (gbbd)
Text is not SVG - cannot display
\ No newline at end of file diff --git a/openpower/sv/cookbook/pospopcnt.mdwn b/openpower/sv/cookbook/pospopcnt.mdwn index 9ec37adcb..9451f90b7 100644 --- a/openpower/sv/cookbook/pospopcnt.mdwn +++ b/openpower/sv/cookbook/pospopcnt.mdwn @@ -53,6 +53,24 @@ bit-position, of an array of input values. pospopcnt + +pospopcnt +pospopcnt +pospopcnt +pospopcnt +pospopcnt +pospopcnt +pospopcnt +pospopcnt + # Visual representation of the pospopcount algorithm # Walkthrough of the assembler -- 2.30.2