Comments (3)
Hi Jeebu,
That is probably a very common thing to do, but unfortunately there isn't really any documentation for this. Here's a rough outline of the steps you should take, and don't hesitate to ask for more help. The easiest way is probably to just extend an existing system, like or1200-generic, to have something up and running quickly.
First, you have the choice of adding your core directly to the or1200-generic system or to add it as a separate core. The benefit of adding it as a separate core is that other systems can benefit from it, but you can start with putting your files directly under the or1200-generic directory to get started quicker.
- Add the peripheral core files to or1200-generic.core
- Add your peripheral core to data/wb_intercon.conf (this is also where you choose whick base address that your core will have in the memory map)
- Regenerate wb_intercon.v by running ../../cores/wb_intercon/wb_intercon_gen data/wb_intercon.conf bench/verilog/wb_intercon.v
- Add an instantiation of your core in orpsoc_top.v (the wishbone wires that your core should connect to are declared in wb_intercon.vh, which is included by orpsoc_top.v
That is roughly what needs to be done. Sorry again for the lack of documentation. We'll have to fix that
//Olof
from fusesoc.
Thanks olof, learned it after playing with the system for a couple of days time.. I just wanted to confirm that the method i followed was correct. There was a bug in the wishbone interface of my peripheral due to which data transfers failed. Now the peripheral is plugged in..
Thanks once again
Cheers
Jeebu
from fusesoc.
Hi Jeebu,
Good to hear that it worked out. For your information, there is a Wishbone master BFM (wb_bfm_master.v) in orpsoc-cores that you can use in your test bench to test the wishbone interface of your cores. We are using it in several of the memory controllers already so you can check for example the wb_intercon test bench to see how to use it.
from fusesoc.
Related Issues (20)
- Question: Different cores from the same provider HOT 1
- Question: `env` section problem. HOT 3
- Invalid choice: 'migrate-capi1-to-capi2' HOT 1
- Setting vivado parameters using core file HOT 1
- Generator instance that depends on other cores HOT 8
- Bugs of flags only with numeric
- Librarys from git
- fusesoc is not working for tool=QuestaSim in Linux RedHat. HOT 2
- Reseting cache HOT 2
- script order with conditional statements
- Using multiple revisions of the same library in a project
- Is there any way to pass a *value* to an `Edatool`'s`tool_options` attribute via the command line HOT 2
- Fusesoc yosys target creates fusesoc error and a partially complete Makefile
- Variables in script arguments HOT 1
- Dependencies and target-specific files HOT 2
- provide schema as json
- What is the file_type for SDF file HOT 2
- Trouble with Simulation Kernel.
- enhancement: Add option to create a list of all files in the project HOT 1
- Problem with provider version of a core and fuesoc cache
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fusesoc.