hst10 / pylog Goto Github PK
View Code? Open in Web Editor NEWPyLog: An Algorithm-Centric FPGA Programming and Synthesis Flow
PyLog: An Algorithm-Centric FPGA Programming and Synthesis Flow
Parent issue: #1
An empty init.py marks its directory as a module.
I propose the code to be restructured into
Readme.md
......
pylog/optimizer.py
pylog/pylog.py
tests/......
......
In pylog/pylog.py, optimizer.py can be now imported by absolute import statement
import pylog.optimizer
This enhancement much clarifies the import statements.
https://github.com/UCLA-VAST/soda is an example.
Code in python as follows
if (len>4):
limit=3
elif (len>2):
limit=2
elif (len==2):
limit=1
else:
limit=0
generates
if (len > 4)
{
int limit = 3;
}
else
{
if (len > 2)
{
limit = 2;
}
else
{
if (len == 2)
{
limit = 1;
}
else
{
limit = 0;
}
}
}
in C. Should be
int limit
if (len > 4)
{
limit = 3;
}
else
{
if (len > 2)
{
limit = 2;
}
else
{
if (len == 2)
{
limit = 1;
}
else
{
limit = 0;
}
}
}
pynq-z2 is the ECE527-class-use-board. Supporting this can also help me get familiar with the sysgen code base.
This issue is supposed to be an aggregate list of the TODOs in code clean up efforts (not prioritized at this moment but we might want to work on this some time in the future). In the meantime, please feel free to reply to this thread (if you can't modify it) to add items you deem necessary.
Separate path and other environment variables to an individual configuration file. Developers are expected to not commit it when they make modification to it during local development.
TEMPLATE_DIR
variable in sysgen.pyAdd .gitignore
Add a style linter configuration file into the project to govern the style automated check.
There seem to be redundant new line after every for loop in the generated C code. Remove them in the compiler logic if there are.
see example code:
https://github.com/Xilinx/Vitis_Accel_Examples/blob/f72dff9eea45a76e9ee0713774589624e2b52c9f/sys_opt/slr_assign/Makefile#L89
Vitis doc, page 323
ug1393-vitis-application-acceleration.pdf
https://www.xilinx.com/cgi-bin/docs/rdoc?v=2020.1;d=ug1399-vitis-hls.pdf
host code modification
https://xilinx.github.io/Vitis_Accel_Examples/master/html/mult_compute_units.html
host side for xrt:
https://pynq.readthedocs.io/en/v2.5.1/pynq_alveo.html
host side for soc:
https://pynq.readthedocs.io/en/v2.1/pynq_libraries.html
Hi @hst10 , may i know ur pylot support one tranied NN model from pytorch to hls code process for U200 board? if yes, how to set up this env. thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.