-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathAll.py
More file actions
29 lines (19 loc) · 669 Bytes
/
All.py
File metadata and controls
29 lines (19 loc) · 669 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import os
FileCounts = 150
path_Mod = '/home/home2/students/afzalikusha/CGRA/Multiplier_Ref' ;
path_DC = '/home/home2/students/afzalikusha/CGRA/DC/Dadda_DC_Scripts'
for i in range (FileCounts):
path_dir = path + ..........
os.chdir(path_dir)
fid = open('Sobel.txt','r')
newLines = fid.read()
fid.close()
fid2 = open('Sobel_App.v','w')
for i in range(DFG_nodes):
Unum = "W U" + str(i) + " "
newLines = re.sub(Unum, "W"+ str(Config[i]) + " U" + str(i) + " ", newLines)
newLines = re.sub('Sobel', 'Sobel_App', newLines)
fid2.write(newLines)
fid2.close()
pr = os.system('vcs -O4 *.v')
pr = os.system('./simv')