Cadence® system design and verification solutions, integrated under our System Development Suite, provide the simulation, acceleration, emulation, and management capabilities.
System Development Suite Related Products A-Z
Cadence® digital design and signoff solutions provide a fast path to design closure and better predictability, helping you meet your power, performance, and area (PPA) targets.
Full-Flow Digital Solution Related Products A-Z
Cadence® custom, analog, and RF design solutions can help you save time by automating many routine tasks, from block-level and mixed-signal simulation to routing and library characterization.
Overview Related Products A-Z
Driving efficiency and accuracy in advanced packaging, system planning, and multi-fabric interoperability, Cadence® package implementation products deliver the automation and accuracy.
Cadence® PCB design solutions enable shorter, more predictable design cycles with greater integration of component design and system-level simulation for a constraint-driven flow.
An open IP platform for you to customize your app-driven SoC design.
Comprehensive solutions and methodologies.
Helping you meet your broader business goals.
A global customer support infrastructure with around-the-clock help.
24/7 Support - Cadence Online Support
Locate the latest software updates, service request, technical documentation, solutions and more in your personalized environment.
Cadence offers various software services for download. This page describes our offerings, including the Allegro FREE Physical Viewer.
Get the most out of your investment in Cadence technologies through a wide range of training offerings.
This course combines our Allegro PCB Editor Basic Techniques, followed by Allegro PCB Editor Intermediate Techniques.
Virtuoso Analog Design Environment Verifier 16.7
Learn learn to perform requirements-driven analog verification using the Virtuoso ADE Verifier tool.
Exchange ideas, news, technical information, and best practices.
The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information.
It's not all about the technlogy. Here we exchange ideas on the Cadence Academic Network and other subjects of general interest.
Cadence is a leading provider of system design tools, software, IP, and services.
Hi all !
My code to check if an angle betwween two segments is 90 degrees or not. here it is :
first_seg = car(cline_seg)second_seg = nthelem(2,cline_seg)x11=caar(first_seg->startEnd) y11=cadar(first_seg->startEnd)x12=car(lastelem(first_seg->startEnd))y12=lastelem(lastelem(first_seg->startEnd))x21=caar(second_seg->startEnd) y21=cadar(second_seg->startEnd)x22=car(lastelem(second_seg->startEnd))y22=lastelem(lastelem(second_seg->startEnd))
a = axlDistance(x11:y11, x12:y12)b = axlDistance(x21:y21, x22:y22)c = axlDistance(x11:y11, x22:y22)if(c*c == (a*a + b*b) thenfprintf(writeOutFile, "Location (%L %L)\n", x12,y12));end if ...................................
the result are: " E- *Error* range: argument #1 should be a number (type template = "n") - nil ". I think axlDistance command have got error, but only command a = axlDistance(x11:y11, x12:y12) is OK. How can I fix it? Please help me.
PS: x11,y11 --------------------x12,y12 x21,y21--------------------x22,y22
(x11, y11) (x12,y12) = (-19885.0 26245.0) (-19885.0 26400.0) (x21, y21) (x22,y22) = (-19885.0 26400.0) (-19985.0 26500.0)
why use axlDistance at all? Use the dot product. If the dot product of the two segments equals zero then the segments are at right-angles to each other.
procedure( calcDotProduct( ptA ptB ptC ptD)prog(( dot_product)dot_product = 0.0 ; cosine of angle between segments -- segs are perpendicular when == 0ptA.x = xCoord( ptA)ptA.y = yCoord( ptA)ptB.x = xCoord( ptB)ptB.y = yCoord( ptB)ptC.x = xCoord( ptC)ptC.y = yCoord( ptC)ptD.x = xCoord( ptD)ptD.y = yCoord( ptD);rintf("ptA.x= %n ptA.y= %n ptB.x= %n ptB.y= %n\n", ptA.x ptA.y ptB.x ptB.y);rintf("ptC.x= %n ptC.y= %n ptD.x= %n ptD.y= %n\n", ptC.x ptC.y ptD.x ptD.y)dot_product = (ptB.y - ptA.y)*(ptD.y - ptC.y) + (ptB.x - ptA.x)*(ptD.x - ptC.x);rintf("dot product= %1.6f\n", dot_product)return( dot_product));end-prog);end-procedure
rusty former Cadence guru
In reply to knuhcrek:
Your code really help me so much, my skill now works OK. thank you very much.