Skip to content

Basic PCI FPGA driver interfaced from user mode via char device

Notifications You must be signed in to change notification settings

Matviy/FPGA_Driver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minimal Linux PCI FPGA Driver Module, allows reading/writing arbitrary registers via char device.
Usually, you'd just mmap() the PCI resource, but this is for fun.

root@localhost:~/fpga_module# python3 test.py
Write Tests:
['0xaa', '0xbb', '0xcc', '0xdd']
['0x11', '0x22', '0xcc', '0xdd']

Read Tests:
Register: CLOCK_LATCH_FREQ Value: 24999955
Register: LED_FLASH_RATE Value: 255
Register: FAN_1_SPEED Value: 5000
Register: FAN_2_SPEED Value: 5000
Register: TEMP_SENSOR_LEFT Value: 45
Register: TEMP_SENSOR_RIGHT Value: 40
Register: SCRATCH Value: 3721142801
root@localhost:~/fpga_module#

Can easily be extended to support driving I2C/SMBus cores...etc.

About

Basic PCI FPGA driver interfaced from user mode via char device

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published