使用示例:
Inline math:
Block math:
只要将代码用```包住,代码块就会被识别为代码
```c
#include "huffman.h"
// Postcondition: out[x].frequency > 0
void filter(
/* input */ Symbol in[INPUT_SYMBOL_SIZE],
/* output */ Symbol out[INPUT_SYMBOL_SIZE],
/* output */ int *n) {
#pragma HLS INLINE off
ap_uint<SYMBOL_BITS> j = 0;
for(int i = 0; i < INPUT_SYMBOL_SIZE; i++) {
#pragma HLS pipeline II=1
if(in[i].frequency != 0) {
out[j].frequency = in[i].frequency;
out[j].value = in[i].value;
j++;
}
}
*n = j;
}
```
#include "huffman.h"
// Postcondition: out[x].frequency > 0
void filter(
/* input */ Symbol in[INPUT_SYMBOL_SIZE],
/* output */ Symbol out[INPUT_SYMBOL_SIZE],
/* output */ int *n) {
#pragma HLS INLINE off
ap_uint<SYMBOL_BITS> j = 0;
for(int i = 0; i < INPUT_SYMBOL_SIZE; i++) {
#pragma HLS pipeline II=1
if(in[i].frequency != 0) {
out[j].frequency = in[i].frequency;
out[j].value = in[i].value;
j++;
}
}
*n = j;
}
在行文中使用下述格式引用图片,将图片下方的备注写在[]
之间
![Figure 5.1: Part a) is a data flow graph for a 2 point DFT/FFT. Part b) shows the same compu-tation, but viewed as a butterfly structure. This is a common representation for the computation of an FFT in the digital signal processing domain.](images/2pointFFT.jpg)
{% hint style='info' %}
Important info: this note needs to be highlighted
{% endhint %}
{% hint style='info' %} Important info: this note needs to be highlighted {% endhint %}
{% hint style='tip' %}
Important tip: this note needs to be highlighted
{% endhint %}
{% hint style='tip' %} Important tip: this note needs to be highlighted {% endhint %}
{% hint style='danger' %}
Important danger: this note needs to be highlighted
{% endhint %}
{% hint style='danger' %} Important danger: this note needs to be highlighted {% endhint %}
{% hint style='working' %}
Important working: this note needs to be highlighted
{% endhint %}
{% hint style='working' %} Important working: this note needs to be highlighted {% endhint %}
在行文中使用下述格式引用参考文献即可
[[45](./BIBLIOGRAPHY.md#45), [55](./BIBLIOGRAPHY.md#55)]