Skip to content

ryanmjacobs/fpcvt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fpcvt (CS 152A) build status

Two's complement to floating point conversion

waveform

Simulation

$ cd src/
$ iverilog main_tb.v -o main.vvp
$ vvp main.vvp
VCD info: dumpfile main_tb.vcd opened for output.
in  = 000000101100 (44)
out =     00101011 (44)
s,e,v
0,2,11

...

in  = 000000101111 (47)
out =     00101100 (48)
s,e,v
0,2,12

Viewing the waveform

$ gtkwave main_tb.vcd

Copyright © 2018 Ryan Jacobs, Kevin Yi