URL
https://opencores.org/ocsvn/tcp_socket/tcp_socket/trunk
Details |
Compare with Previous |
View Log
Line No. |
Rev |
Author |
Line |
1 |
4 |
jondawson |
#!/usr/bin/env python
|
2 |
|
|
import os.path
|
3 |
|
|
|
4 |
|
|
divider = open(os.path.join("fpu", "divider", "divider.v")).read()
|
5 |
|
|
multiplier = open(os.path.join("fpu", "multiplier", "multiplier.v")).read()
|
6 |
|
|
adder = open(os.path.join("fpu", "adder", "adder.v")).read()
|
7 |
|
|
int_to_float = open(os.path.join("fpu", "int_to_float", "int_to_float.v")).read()
|
8 |
|
|
float_to_int = open(os.path.join("fpu", "float_to_int", "float_to_int.v")).read()
|
9 |
|
|
output_file = open(os.path.join("chips", "compiler", "fpu.py"), "w")
|
10 |
|
|
|
11 |
|
|
output_file.write("divider = \"\"\"%s\"\"\"\n"%divider)
|
12 |
|
|
output_file.write("multiplier = \"\"\"%s\"\"\"\n"%multiplier)
|
13 |
|
|
output_file.write("adder = \"\"\"%s\"\"\"\n"%adder)
|
14 |
|
|
output_file.write("int_to_float = \"\"\"%s\"\"\"\n"%int_to_float)
|
15 |
|
|
output_file.write("float_to_int = \"\"\"%s\"\"\"\n"%float_to_int)
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.