- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, I added a simple component LCD12864 into nios system.Then I got the address space from system.h:#define LCD12864_BASE 0x00000800#define LCD12864_SPAN 16But I don't know:1) Why SPAN=16.2) What contents in the space: LCD12864_BASE=? LCD12864_BASE+1=? LCD12864_BASE+2=? ... LCD12864_BASE+15=?Looking for your help.Thanks in advanceLiuJN
- Tags:
- Define
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The answer is in these two pieces of code: else if (avs_chipselect & avs_write)
begin
case (avs_address)
0: coe_e <= avs_writedata;
1: coe_rw <= avs_writedata;
2: coe_rs <= avs_writedata;
3: coe_data_o <= avs_writedata;
endcase
end
and if (avs_chipselect & avs_read)
begin
if (avs_address == 3)
readdata_r <= coe_data_i;
else
readdata_r <= 8'b0;
end
else
readdata_r <= 8'b0;
assign avs_readdata = {24'b0, readdata_r};
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you very much,Daixiwen.Can you tell me more about it:1)Does the address space contain only conduit_end?2)Is there any paper describe it in detail?Thank you more.LiuJN.
I am sorry that I dont know why my post can only display in one line.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It depends on your component. This one connects the avalon bus to the external conduit in a rather direct way, but other components could do some processing or provide internal memory instead.
The main documentation about the Avalon bus is the specification (http://www.altera.com/literature/manual/mnl_avalon_spec.pdf).- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page