\documentclass[10pt,a4paper]{article} % Packages \usepackage{fancyhdr} % For header and footer \usepackage{multicol} % Allows multicols in tables \usepackage{tabularx} % Intelligent column widths \usepackage{tabulary} % Used in header and footer \usepackage{hhline} % Border under tables \usepackage{graphicx} % For images \usepackage{xcolor} % For hex colours %\usepackage[utf8x]{inputenc} % For unicode character support \usepackage[T1]{fontenc} % Without this we get weird character replacements \usepackage{colortbl} % For coloured tables \usepackage{setspace} % For line height \usepackage{lastpage} % Needed for total page number \usepackage{seqsplit} % Splits long words. %\usepackage{opensans} % Can't make this work so far. Shame. Would be lovely. \usepackage[normalem]{ulem} % For underlining links % Most of the following are not required for the majority % of cheat sheets but are needed for some symbol support. \usepackage{amsmath} % Symbols \usepackage{MnSymbol} % Symbols \usepackage{wasysym} % Symbols %\usepackage[english,german,french,spanish,italian]{babel} % Languages % Document Info \author{Bug Hunter (kamezian)} \pdfinfo{ /Title (upf-basics.pdf) /Creator (Cheatography) /Author (Bug Hunter (kamezian)) /Subject (UPF basics Cheat Sheet) } % Lengths and widths \addtolength{\textwidth}{6cm} \addtolength{\textheight}{-1cm} \addtolength{\hoffset}{-3cm} \addtolength{\voffset}{-2cm} \setlength{\tabcolsep}{0.2cm} % Space between columns \setlength{\headsep}{-12pt} % Reduce space between header and content \setlength{\headheight}{85pt} % If less, LaTeX automatically increases it \renewcommand{\footrulewidth}{0pt} % Remove footer line \renewcommand{\headrulewidth}{0pt} % Remove header line \renewcommand{\seqinsert}{\ifmmode\allowbreak\else\-\fi} % Hyphens in seqsplit % This two commands together give roughly % the right line height in the tables \renewcommand{\arraystretch}{1.3} \onehalfspacing % Commands \newcommand{\SetRowColor}[1]{\noalign{\gdef\RowColorName{#1}}\rowcolor{\RowColorName}} % Shortcut for row colour \newcommand{\mymulticolumn}[3]{\multicolumn{#1}{>{\columncolor{\RowColorName}}#2}{#3}} % For coloured multi-cols \newcolumntype{x}[1]{>{\raggedright}p{#1}} % New column types for ragged-right paragraph columns \newcommand{\tn}{\tabularnewline} % Required as custom column type in use % Font and Colours \definecolor{HeadBackground}{HTML}{333333} \definecolor{FootBackground}{HTML}{666666} \definecolor{TextColor}{HTML}{333333} \definecolor{DarkBackground}{HTML}{44A35E} \definecolor{LightBackground}{HTML}{F3F9F4} \renewcommand{\familydefault}{\sfdefault} \color{TextColor} % Header and Footer \pagestyle{fancy} \fancyhead{} % Set header to blank \fancyfoot{} % Set footer to blank \fancyhead[L]{ \noindent \begin{multicols}{3} \begin{tabulary}{5.8cm}{C} \SetRowColor{DarkBackground} \vspace{-7pt} {\parbox{\dimexpr\textwidth-2\fboxsep\relax}{\noindent \hspace*{-6pt}\includegraphics[width=5.8cm]{/web/www.cheatography.com/public/images/cheatography_logo.pdf}} } \end{tabulary} \columnbreak \begin{tabulary}{11cm}{L} \vspace{-2pt}\large{\bf{\textcolor{DarkBackground}{\textrm{UPF basics Cheat Sheet}}}} \\ \normalsize{by \textcolor{DarkBackground}{Bug Hunter (kamezian)} via \textcolor{DarkBackground}{\uline{cheatography.com/126408/cs/24454/}}} \end{tabulary} \end{multicols}} \fancyfoot[L]{ \footnotesize \noindent \begin{multicols}{3} \begin{tabulary}{5.8cm}{LL} \SetRowColor{FootBackground} \mymulticolumn{2}{p{5.377cm}}{\bf\textcolor{white}{Cheatographer}} \\ \vspace{-2pt}Bug Hunter (kamezian) \\ \uline{cheatography.com/kamezian} \\ \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Cheat Sheet}} \\ \vspace{-2pt}Published 26th September, 2020.\\ Updated 27th September, 2020.\\ Page {\thepage} of \pageref{LastPage}. \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Sponsor}} \\ \SetRowColor{white} \vspace{-5pt} %\includegraphics[width=48px,height=48px]{dave.jpeg} Measure your website readability!\\ www.readability-score.com \end{tabulary} \end{multicols}} \begin{document} \raggedright \raggedcolumns % Set font size to small. Switch to any value % from this page to resize cheat sheet text: % www.emerson.emory.edu/services/latex/latex_169.html \footnotesize % Small font. \begin{multicols*}{2} \begin{tabularx}{8.4cm}{x{4 cm} x{4 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Power Domain}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{create\_power\_domain}} pd1 & Power domain created at top level scope \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} {\bf{create\_power\_domain}} pd2 -elements cpu & specify instance name \tn % Row Count 5 (+ 3) % Row 2 \SetRowColor{LightBackground} {\bf{create\_power\_domain}} pd3 -elements Mem -scope cpu & in relative scope cpu, exists instance Mem \tn % Row Count 8 (+ 3) % Row 3 \SetRowColor{white} \mymulticolumn{2}{x{8.4cm}}{{\bf{set\_domain\_supply\_net}} is required to specify primary power and ground nets for a power domain} \tn % Row Count 10 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{8.4cm}}{{\bf{set\_domain\_supply\_net}} TOP -primary\_power\_net VDD -primary\_ground\_net VSS} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{p{0.8 cm} p{0.8 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Power Switches - MTCMOS Cells}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{2}{x{8.4cm}}{{\bf{create\_power\_switch myswitch -domain Core -input\_supply\_port \{in VDDC\} -output\_supply\_port \{out VDDS \} -control\_port \{Nsleep PMU/sleep\} -on\_state \{on\_state in \{!sleep\} \}}}} \tn % Row Count 4 (+ 4) % Row 1 \SetRowColor{white} \mymulticolumn{2}{x{8.4cm}}{Place \& Route later will physically map the constraint to the real switch cells:} \tn % Row Count 6 (+ 2) % Row 2 \SetRowColor{LightBackground} \mymulticolumn{2}{x{8.4cm}}{{\bf{map\_power\_switch -domain \textless{}domain\_name\textgreater{} -lib\_cell \textless{}lib\_cell\_name\textgreater{} \textless{}switch\_name\textgreater{}}}} \tn % Row Count 8 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{8.4cm}}{Even when not switching,CMOS cells consume leakage power. The idea is to {\bf{save leakage power by truning off design partitions when the logic is inactive}},for that, Power Switches are added between the main supply and the virtual supply to be shutdown. Of course the virtual supply is connected to standard cells supply rails.} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{3.92 cm} x{4.08 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Power Supply Network UPF 1.0}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{create\_supply\_port}} VDD & Creates Port VDD \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} {\bf{create\_supply\_net}} VDD -domain TOP & Creates supply net at top level \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} {\bf{connect\_supply\_net }} VDD -ports VDD & Connects supply net to port VDD \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} {\bf{set\_domain\_supply\_net}} & Specifies primary power/ground nets for power domain \tn % Row Count 9 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{8.4cm}}{{\bf{create\_supply\_net -reuse}} will create supply net and supply port automatically at child level} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{4 cm} x{4 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Level Shifters - set\_level\_shifter}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{2}{x{8.4cm}}{set\_level\_shifter LS\_in -domain PD2 {\bf{-applies\_to inputs}} {\bf{-rule high\_to\_low}} -location {\bf{self}}} \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} \mymulticolumn{2}{x{8.4cm}}{set\_level\_shifter LS\_out -domain PD2 {\bf{-applies\_to outputs}} {\bf{-rule low\_to\_high}} -location {\bf{parent}}} \tn % Row Count 6 (+ 3) % Row 2 \SetRowColor{LightBackground} rule can be " high\_to\_low", "low\_to\_high" or "both" & location can be "self", "parent" or "automatic" \tn % Row Count 9 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{8.4cm}}{LS needed when 2 different signals belonging to different voltage power domains need to be connected to ensure proper signal value and timing propagation \newline Level Shifter strategy is {\bf{optional}} since insertion controlled by PST. \newline LS Strategy can be applied to control the{\bf{location}} of the LS cells} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{8.4cm}}{\bf\textcolor{white}{ISO \seqsplit{Cells-set\_isolation/set\_isolation\_control}}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{{\bf{set\_isolation}} -applies\_to outputs -location parent} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{{\bf{set\_isolation}} –no\_isolation –elements \{list\}} \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{{\bf{set\_isolation}} iso\_core\_out -domain Core\_domain -isolation\_power\_net VDDC -isolation\_ground\_net VSS -clamp\_value 1 -applies\_to outputs} \tn % Row Count 7 (+ 3) % Row 3 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{{\bf{set\_isolation\_control}} iso\_core\_out –domain Core\_domain -isolation\_signal PwrCtrl/isolate\_ctrl -isolation\_sense low -location parent} \tn % Row Count 10 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}-} \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{Provide protection during shutdown to avoid spurious signal propagation} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{p{0.76 cm} p{0.76 cm} p{0.76 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{8.4cm}}{\bf\textcolor{white}{Retention FF}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{3}{x{8.4cm}}{{\bf{set\_retention}} RET\_PD1 -domain PD1 -retention\_power\_net VDDH -retention\_ground\_net VSS} \tn % Row 1 \SetRowColor{white} \mymulticolumn{3}{x{8.4cm}}{{\bf{set\_retention\_control}} RET\_PD1 -domain PD1 {\bf{-save\_signal }} \{SAVE high\} {\bf{-restore\_signal}} \{RESTORE high\}} \tn % Row 2 \SetRowColor{LightBackground} \mymulticolumn{3}{x{8.4cm}}{{\bf{map\_retention\_cell}} -domain PD1 {\bf{-lib}}\_cells} \tn \hhline{>{\arrayrulecolor{DarkBackground}}---} \SetRowColor{LightBackground} \mymulticolumn{3}{x{8.4cm}}{Retention FF will maintain the state of sequential elements in a shutdown block. \newline Retention supplies must be "Always-ON" as long as the FF need to hold their value} \tn \hhline{>{\arrayrulecolor{DarkBackground}}---} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{8.4cm}}{\bf\textcolor{white}{Power State Table - PST}} \tn \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{Once you know more about what you are trying to define, specify the design switching characteristics in a power state table. \newline % Row Count 3 (+ 3) This requires knowing (or deciding) the operational voltages for each power domain, and the supplies being used. \newline % Row Count 6 (+ 3) The PST defines clearly {\bf{all legal voltage states and power state combinations}} for a design, hence it becomes the center of the design power intent as it {\bf{captures the dynamic voltage scaling (DVS/DVFS) and shutdown scenarios}}.% Row Count 11 (+ 5) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{{\bf{add\_port\_state \textless{}port\_name\textgreater{} \{-state \{name \textless{}nom\textgreater{}|\textless{}min nom max\textgreater{}|\textless{}off\textgreater{}\}\}}} \newline {\emph{Defines all possible state information to a supply port}} \newline {\bf{create\_pst \textless{}table\_name\textgreater{} -supplies \{list\}}} \newline {\emph{Creates a PST using a specific order of supply nets}} \newline {\bf{add\_pst\_state \textless{}state\_name\textgreater{} -pst \textless{}table\_name\textgreater{} -state \textless{}supply\_states\textgreater{}}} \newline {\emph{Defines valid combination of supply net values for each possible state of the design}}} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{8.4cm}}{\bf\textcolor{white}{Create Block Level UPF}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{To specify driver supply set on input ports and receiver supply set on output port ,one can use {\bf{set\_port\_attributes}} command(SPA),} \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{{\bf{set\_port\_attributes}} -driver\_supply\_set | -receiver\_supply\_set VDD\_set} \tn % Row Count 5 (+ 2) % Row 2 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{To specify supply net on ports if no corresponding supply set is defined, use \seqsplit{set\_related\_supply\_net(SRSN):}} \tn % Row Count 8 (+ 3) % Row 3 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{{\bf{ set\_related\_supply\_net}} –object\_list A –power VDD} \tn % Row Count 10 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}-} \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{Idea here is to create boundary power constraints for IO ports of blocks to guide block level implementation. \newline Also when no SRSN/SPA is applied user cn specify default supply to be used to power ports: \newline {\bf{set\_port\_attributes -elements \{ . \} -attribute \seqsplit{related\_supply\_default\_primary} TRUE}}} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{8.4cm}}{\bf\textcolor{white}{Importance of Power State Table}} \tn \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{Recommendation to use the supply\_net names for create\_pst command to keep PST matrix readable. \newline % Row Count 2 (+ 2) Power Management cell insertion is based on PST and UPF constraints: \newline % Row Count 4 (+ 2) {\bf{Level shifter cells are inserted based upon the PST}} \newline % Row Count 6 (+ 2) {\bf{Isolation cells are inserted based upon the UPF constraints}} \newline % Row Count 8 (+ 2) {\bf{Retention cells are inserted based on constraints}} \newline % Row Count 10 (+ 2) Correctness of the design is checked against PST.% Row Count 11 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{8.4cm}}{\bf\textcolor{white}{Always-On Logic}} \tn \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{Some logic needs to stay active during shutdown \newline % Row Count 1 (+ 1) 1-Path to enable pins of ISO/ELS \newline % Row Count 2 (+ 1) 2-Power switches \newline % Row Count 3 (+ 1) 3-Retention registers \newline % Row Count 4 (+ 1) 4-Feedthrough paths \newline % Row Count 5 (+ 1) Always-on logic remains powered within shutdown block \newline % Row Count 7 (+ 2) 1-Single-rail AO cells \newline % Row Count 8 (+ 1) 2-Dual-rail AO cells% Row Count 9 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{8.4cm}}{\bf\textcolor{white}{PST Example}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{p{8.4cm}}{\vspace{1px}\centerline{\includegraphics[width=5.1cm]{/web/www.cheatography.com/public/uploads/kamezian_1601145528_PST.JPG}}} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{8.4cm}}{\bf\textcolor{white}{PST Example}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{p{8.4cm}}{\vspace{1px}\centerline{\includegraphics[width=5.1cm]{/web/www.cheatography.com/public/uploads/kamezian_1601145927_PST2.JPG}}} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{8.4cm}}{\bf\textcolor{white}{Supply Sets}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{{\bf{create\_power\_domain}} doesn't require the use of {\bf{set\_domain\_supply\_net}} as pre-defined handles {\bf{primary.power}} and {\bf{primary.ground}} are automatically created. \newline Hence : \newline {\bf{set\_isolation}} doesn't require use of {\bf{-isolation\_power\_net}} or {\bf{-isolation\_ground\_net}} options \newline {\bf{set\_retention}} doesn't require use of {\bf{-rentention\_power\_net}} or {\bf{-retention\_ground\_net}} options \newline \newline {\bf{set\_isolation}} {\bf{-source}} SS\_VDD1 {\bf{-sink}} SS\_VDD3 -\textgreater{} using source/sink provides finer control for inserting isolation cells to only on ports where the driver supply is related to a given supply set and load supply is related to another supply set. {\bf{Works for only for supply sets}} \newline \newline {\bf{set\_isolation}} {\bf{-diff\_supply\_only true}} will insert iso cells only for ports where driver and load usea different supply. {\bf{Works for both supply sets and supply nets.}}} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{p{0.8 cm} p{0.8 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Supply Sets - 2 use models}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{2}{x{8.4cm}}{{\bf{{\emph{Explicit:}}}} {\bf{create\_supply\_set mySS1 -function \{power myVDD\} -function \{ground myVSS\} }}} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} \mymulticolumn{2}{x{8.4cm}}{{\bf{{\emph{Implicit:}}}} Supply set handles automatically created with the {\bf{create\_power\_domain}} command} \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} \mymulticolumn{2}{x{8.4cm}}{Predefined handles are : {\bf{PD1.primary PD1.default\_isolation PD1.default\_retention}}} \tn % Row Count 6 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{8.4cm}}{Supply sets provide an {\bf{abstract way of bundling supply nets}} and doing the front-end implementation {\bf{without knowing the supply net and port names}}. Physical net and port information is refined at the back-end. This {\bf{helps}} improve the {\bf{re-usability of your IP since the IP is implemented without the actual nets and ports}} and thus is more portable. \newline {\bf{Complete supply network information is not needed when you do your front end implementation.}}} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{8.4cm}}{\bf\textcolor{white}{Supply Set Handles-{\bf{Explicit vs Implicit}}}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{p{8.4cm}}{\vspace{1px}\centerline{\includegraphics[width=5.1cm]{/web/www.cheatography.com/public/uploads/kamezian_1601157210_supplyset.jpg}}} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} % That's all folks \end{multicols*} \end{document}