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.
is there an easy way to truncate the beginning or the end of a file?
I tought I can find a special position in file and then truncate the rest of it resp. cut everything above.
I'm not sure if can modify a file on the fly in SKILL,
at least I never have done this.
You can open a file read it's contents and copy the contents you
want to a new file.
Have a look at the
- SKILL Language User Guide
o I/O and File Handling
* Working with File Offsets (fileTell, fileSeek)
In reply to Bernd:
Thanks for the hint.
I was poking around with fileTell &fileSeek, but it seemed too complicated to open a file then copy all the data until the 5th last line was reached. I can't even figure out, howto check if EOF is rechead within a while-loop or so.
Maybe there is a better solution for my problem:
I need to read and write some values into a config file like the windows ini-files:
In reply to useratcad:
Something like that?
procedure( BFreadConfig( t_inFile "t" ) let( ( l_keyValueList p_inPort t_key t_line t_value ) p_inPort = infile( t_inFile ) when( p_inPort while( gets( t_line p_inPort ) when( t_line && t_line != "" && t_line != "\n" l_keyValueList = parseString( t_line "=" ) t_key = car( l_keyValueList ) t_value = cadr( l_keyValueList ) printf( "Key: %s, Value: %s\n" t_key t_value ) ) ;; close when ) ;; close while) ;; close when close( p_inPort ) ) ;; close let) ;; cloes procedureprocedure( BFmodifyConfig( t_outFile t_key t_value "ttt" ) let( ( l_keyValueList p_inPort t_line p_outPort t_tmpFile ) t_tmpFile = strcat( t_outFile ".tmp" )system( strcat( "cp " t_outFile " " t_tmpFile ) )p_inPort = infile( t_tmpFile ) p_outPort = outfile( t_outFile ) when( p_inPort while( gets( t_line p_inPort ) if( t_line && t_line != "" && t_line != "\n" then l_keyValueList = parseString( t_line "=" ) car( l_keyValueList ) if( t_key == car( l_keyValueList ) then fprintf( p_outPort "%s=%s\n" t_key t_value ) else fprintf( p_outPort t_line ) ) ;; close if else fprintf( p_outPort t_line ) ) ;; close if ) ;; close while) ;; close when close( p_inPort )close( p_outPort )system( strcat( "rm -f " t_tmpFile ) ) ) ;; close let) ;; cloes procedure
Thanks a lot, that helps definitly