Home.Verilog.Digital Design.Digital Basics.Python.RF Basics.
Custom Search

Feedback ? Send it to admin@fullchipdesign.com or join me at fullchip@gmail.com

Legal Disclaimer

Chip Designing for ASIC/ FPGA Design engineers and Students
FULLCHIPDESIGN
Digital-logic Design...  Dream for many students… start learning front-end…

Legal Disclaimer

PICS
Topics @TYH :- 4G LTE Tutorial, GVIM editor, Smart-Phone, Cloud Computing
FORUM
Verilog Tutorial.
Digital Basics Tutorial.

Python learn with examples

Suggested approach is to learn examples in the given sequence. Also discussed are few fundamentals. Click here to go to examples

Few fundamentals to know before we code in Python:

1:- Import system modules like sys, os, string, time etc. before you start writing code. Importing ‘sys’ and ‘os’ covers majority of the Python core constructs. 

2:- Indenting or tab is most important in Python and should be strictly maintained.

3:- Reserved word ‘def’ is used for defining a function in Python.

4:- Reserved word ‘class’ is used to group functions.

5:- Command line arguments lists as string with ‘sys.argv’

 

 

 

 

 

Following list of programs are discussed in this sec

Open and read file from within the python program as a single string.

Command line arguments lists as string with ‘sys.argv’.

 

Use of  glob module in Python code 

 

Read file using classes, global variables and

functions. Program to open and write file.

 

Specify files to be written from the command

line. File writes using classes and global

variables

 

Steps for conditional statements, converting

string to hexadecimal value, strip of white space

at end ,converting 12 bit hexadecimal values to

12 bit signed values.

 

Advanced program to read file, filter text, conversion to HEX, conversion from Hexadecimal to Signed Magnitude

 

Advanced python code to cover UNIX shell commands, read lines from a text file, ‘sysargv’ command line operations, use of class and multiple functions. 

 

Write a program to generate diamond pattern.

 

Python error’s with complete code examples:-

TypeError: __init__() takes exactly 2 arguments (1 given),

TypeError: 'str' object is not callable,

TypeError: not all arguments converted during string formatting,

AttributeError:  ** instance has no attribute **

 

Implement Python function calls to different classes.

 

Python read binary files, use of struct.unpack.  

File read operations.

Class & global var.

File write op's.

Glob module.

Conditional stms.

String 2 hex.

UNIX in Python.

Diamond Pattern.

TypeError - arg.

TyprError - str.

TypeError - strconv.

AttributeError.

Function call.

Read bin files.

Verilog.
Digital Design.
Digital Basics.
Python.
RF Basics.