Skip to content

Martoni/CIC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cascacaded Integrator Comb filter

Generate Verilog

To generate module in verilog do :

$ cd CIC
$ sbt
sbt:CIC> show discoveredMainClasses
[info] compiling 1 Scala source to /home/fabienm/myfpga/CIC/target/scala-2.12/classes ...
[info] * cic.CICDriver
[success] Total time: 5 s, completed 16 juil. 2021 07:26:55
sbt:CIC> runMain cic.CICDriver
[info] running cic.CICDriver 
Generate CIC verilog
Elaborating design...
Done elaborating.
[success] Total time: 3 s, completed 16 juil. 2021 07:27:05
sbt:CIC> 

Run tests

Prepare assets

  • First unflat sample file :
$ cd assets/
$ xz -d colamonptitfrere_12.5Ms.csv.xz
  • then convert it to numpy data format :
$  python ../toolbox/csv2np.py --csv=colamonptitfrere_12.5Ms.csv --np=colamonptitfrere_12.5Ms
  • and finally to pdm data format :
$ python ../toolbox/csv2np.py --np=colamonptitfrere_12.5Ms.npy --pdm=colamonptitfrere_12.5Ms.pdm

Launch test

$sbt -mem 16384 "testOnly cic.BasicTest -- -DwriteVcd=1"

About

Cascaded integrator-comb written in Chisel HDL

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •