Skip to content
  • Projects
  • Groups
  • Snippets
  • Help

release / riscv-demo

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Settings
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • riscv-demo
  • examples
  • fft
  • gen_table_2.sh
  • Martin's avatar
    Release 2022.1 · a22edae1
    Martin committed Sep 07, 2022
    a22edae1 Browse Files
gen_table_2.sh 192 Bytes
BlameHistoryPermalink
Edit
1 2 3 4 5 6 7 8 9 10 11 12
#!/bin/sh

bc -l <<EOF
pi    = 4 * a(1)
max_m = $TABLE_SIZE
max_n = 2 ^ max_m

for(i = 0; i < max_n; i++)
{
    print "    {", c(2 * i * pi / max_n), ",", -s(2 * i * pi / max_n), "},\n"
}
EOF