Download chips/yosys/tests/techmap/mcm/synth.patch from STAR-future/Trinity-SciData: direct link, hf CLI and curl.
- Browser
- Download file 1.39 kB
-
https://huggingface.co/datasets/STAR-future/Trinity-SciData/resolve/main/chips/yosys/tests/techmap/mcm/synth.patch
- Command line
-
hf download hf://datasets/STAR-future/Trinity-SciData/chips/yosys/tests/techmap/mcm/synth.patch
-
curl -L -o synth.patch https://huggingface.co/datasets/STAR-future/Trinity-SciData/resolve/main/chips/yosys/tests/techmap/mcm/synth.patch
1.39 kB
| --- a/synth.cpp | |
| +++ b/synth.cpp | |
| #include "synth.h" | |
| #include "ac1.h" | |
| +#include <algorithm> | |
| #include <string> | |
| #include <vector> | |
| #include <climits> | |
| void synthesize(coeff_t c, adder ad); | |
| adder *get_adder(coeff_t c); | |
| void ac1_decompose_cheapest(); | |
| -void print_set(char *nam, full_addmap_t &s, int max_nprint = MAX_NPRINT, ostream &ostr = cerr); | |
| -void print_set(char *nam, cfset_t &s, int max_nprint = MAX_NPRINT, ostream &ostr = cerr); | |
| +void print_set(const char *nam, full_addmap_t &s, int max_nprint = MAX_NPRINT, ostream &ostr = cerr); | |
| +void print_set(const char *nam, cfset_t &s, int max_nprint = MAX_NPRINT, ostream &ostr = cerr); | |
| int MAX_TARGET_DEPTH(coeff_t t) { | |
| if(DEPTH_LIMITS.find(t)==DEPTH_LIMITS.end()) return MAX_DEPTH; | |
| --- a/bhm.cpp | |
| +++ b/bhm.cpp | |
| /****************************************************************************/ | |
| -void print_set(char *nam, cfset_t &s, int max_nprint, ostream &ostr) { | |
| +void print_set(const char *nam, cfset_t &s, int max_nprint, ostream &ostr) { | |
| int nprinted = 0; | |
| ostr << nam << " "; | |
| FORALL(s, i) { | |
| } | |
| } | |
| -void print_set(char *nam, full_addmap_t &s, int max_nprint, ostream &ostr) { | |
| +void print_set(const char *nam, full_addmap_t &s, int max_nprint, ostream &ostr) { | |
| int nprinted = 0; | |
| ostr << nam << " "; | |
| FORALL_FAM(s, i) { | |