You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: DirectProgramming/C++SYCL_FPGA/Tutorials/Features/printf/README.md
+15-2
Original file line number
Diff line number
Diff line change
@@ -124,6 +124,10 @@ PRINTF("Hello: %d\n", 123);
124
124
```
125
125
make fpga_emu
126
126
```
127
+
* Compile for simulation (medium compile time, targets simulated FPGA device):
128
+
```
129
+
make fpga_sim
130
+
```
127
131
* Generate the optimization report:
128
132
```
129
133
make report
@@ -160,6 +164,10 @@ PRINTF("Hello: %d\n", 123);
160
164
```
161
165
nmake fpga_emu
162
166
```
167
+
* Compile for simulation (medium compile time, targets simulated FPGA device):
168
+
```
169
+
nmake fpga_sim
170
+
```
163
171
* Generate the optimization report:
164
172
```
165
173
nmake report
@@ -185,7 +193,12 @@ From the report, you can find the compilation information of the design and the
185
193
./printf.fpga_emu (Linux)
186
194
printf.fpga_emu.exe (Windows)
187
195
```
188
-
2. Run the sample on the FPGA device:
196
+
2. Run the sample on the FPGA simulator:
197
+
```
198
+
./printf.fpga_sim (Linux)
199
+
printf.fpga_sim.exe (Windows)
200
+
```
201
+
3. Run the sample on the FPGA device:
189
202
```
190
203
./printf.fpga (Linux)
191
204
printf.fpga.exe (Windows)
@@ -208,7 +221,7 @@ Result11: ABCD
208
221
209
222
## Known issues and limitations
210
223
211
-
There are some known issues with the `experimental::printf()` and that's why the function is in the experimental namespace. The following limitations exist when using `experimental::printf()` on FPGA hardware:
224
+
There are some known issues with the `experimental::printf()` and that's why the function is in the experimental namespace. The following limitations exist when using `experimental::printf()` on FPGA simulation and hardware:
212
225
213
226
* Printing string literals %s is not supported yet. You can put the string directly in the format as a workaround. For example: `PRINTF("Hello, World!\n")`.
214
227
* Printing pointer address %p is not supported yet.
0 commit comments