0% found this document useful (0 votes)
256 views2 pages

TCL Assignment 1

This document contains instructions for writing several TCL scripts: 1) A script to generate a pattern using TCL and take user input for special characters and length. 2) A script containing a procedure to calculate the Fibonacci series up to 100. 3) A script to swap IP address values and extract information from a noise report file into separate files.

Uploaded by

Jecs
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
0% found this document useful (0 votes)
256 views2 pages

TCL Assignment 1

This document contains instructions for writing several TCL scripts: 1) A script to generate a pattern using TCL and take user input for special characters and length. 2) A script containing a procedure to calculate the Fibonacci series up to 100. 3) A script to swap IP address values and extract information from a noise report file into separate files.

Uploaded by

Jecs
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 2

TCL- Practice scripts

1) Generate Following pattern using TCL scripts.

2) Generate same pattern with taking user input i.e .place of * take special character from user and in place of 7
take length of the pattern from user. ( use proc )

3) Write a Proc to find the Fibonaci series up to 100 nos.

4) Swap 30 & 40 in IP address 192.30.40.1 using TCL script?

5) How to check whether a string is palindrome or not using TCL script?

6) Write a TCL code to convert list to string and string to list.

7) Write a script to multiply two numbers without using multiplication operator.

8) Write a script to find number of vowels in a string.

9) Write a script - Factorial value with and without using recursion.

10) Write a script Increment each element in a list ? eg: 1 2 3 =>2 3 4

11) Write a Program to take input from user and update the same in new file.
12 ) From the below noise report separate out Pin names net names width height and slack and print them
separately.(Refer Color code)
(Save below file in noise.rpt before processing)
Report : noise
-nworst_pins 10
-nosplit
-low
-above
Design : block5
Version: O-2018.06-SP1
Date : Thu Sep 26 06:19:22 2019
****************************************
analysis mode: report_at_endpoint
slack type: height
noise_region: above_low
pin name (net name) width height slack
-----------------------------------------------------
rp_ppi_pkt_buffer/rp_mem_2ps1024x256_ecc_wrapper/mem_2ps1024x144_inst1/DA[15]
(rp_ppi_pkt_buffer/rp_mem_2ps1024x256_ecc_wrapper/n617) 0.128 0.187 0.137
rp_ppi_pkt_buffer/rp_mem_2ps1024x256_ecc_wrapper/mem_2ps1024x144_inst1/DA[72]
(rp_ppi_pkt_buffer/rp_mem_2ps1024x256_ecc_wrapper/n525) 0.123 0.157 0.167
rp_ppi_pkt_buffer/rp_mem_2ps1024x256_ecc_wrapper/mem_2ps1024x144_inst1/SI_CNTRB
(rp_ppi_pkt_buffer/rp_mem_2ps1024x256_ecc_wrapper/n36) 0.223 0.140 0.184
antprot_in__315/I (rxmac_ppi_if_mri_rxstatus[37]) 0.206 0.107 0.217
antprot_in__419/I (n1716) 0.314 0.102 0.222
antprot_in__324/I (rxmac_ppi_if_mri_rxstatus[44]) 0.219 0.089 0.235
antprot_in__336/I (rxmac_ppi_if_mri_rxstatus[64]) 0.191 0.086 0.238
rp_ppi_pkt_buffer/rp_mem_2ps1024x256_ecc_wrapper/mem_2ps1024x144_inst1/SI_CNTRA
(rp_ppi_pkt_buffer/rp_mem_2ps1024x256_ecc_wrapper/n37) 0.298 0.085 0.239
antprot_in__314/I (rxmac_ppi_if_mri_rxstatus[38]) 0.248 0.083 0.241

rp_ppi_pkt_classifier/non_hpp_mode_logic_etype_lpm_core/instan_pipe_2__stage_non0_instan_lpm_search_pipe
_stage/to_next_stage_peek_data_reg_13_/SI
(rp_ppi_pkt_classifier/non_hpp_mode_logic_etype_lpm_core/stage_peek_data_2__12_) 0.088 0.219

13) Save result of above program in noise.txt and csv file.

You might also like