Implementing external axi lite slave using axi slave interconnect ip

I am trying to implement external axi-lite slave with microblaze as the master. The slave module is the top module of the ISE project. All the axi slave signals are brought to the top level using axi-slave interconnect ip in microblaze. I am implementing this for ML605 board. I have also written a c code for driving the AXI-lite signals( read/write) from microblaze(master) side. The elf file is added to the ISE project. I generate a combined bit file and check the functunality. BUt the issue is that the execution does not go beyond idle state where the slave waits for AXI_ARVALID signal. What may be the issue. I have attached the top level vhdl code,  c code and xps screenshot.
-- axi_slave_top.vhd
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use ieee.numeric_std.all ;
library UNISIM;
use UNISIM.VCOMPONENTS.ALL;
entity axi_slave_top is
port (
RS232_Uart_1_sout : out std_logic;
RS232_Uart_1_sin : in std_logic;
RESET : in std_logic;
CLK_P : in std_logic;
CLK_N : in std_logic;
led_1 : out std_logic;
led_2 : out std_logic
end axi_slave_top;
architecture STRUCTURE of axi_slave_top is
component axi_master is
port (
RS232_Uart_1_sout : out std_logic;
RS232_Uart_1_sin : in std_logic;
RESET : in std_logic;
CLK_P : in std_logic;
CLK_N : in std_logic;
axi_ext_slave_conn_0_M_AXI_AWADDR_pin : out std_logic_vector(31 downto 0);
axi_ext_slave_conn_0_M_AXI_AWVALID_pin : out std_logic;
axi_ext_slave_conn_0_M_AXI_AWREADY_pin : in std_logic;
axi_ext_slave_conn_0_M_AXI_WDATA_pin : out std_logic_vector(31 downto 0);
axi_ext_slave_conn_0_M_AXI_WSTRB_pin : out std_logic_vector(3 downto 0);
axi_ext_slave_conn_0_M_AXI_WVALID_pin : out std_logic;
axi_ext_slave_conn_0_M_AXI_WREADY_pin : in std_logic;
axi_ext_slave_conn_0_M_AXI_BRESP_pin : in std_logic_vector(1 downto 0);
axi_ext_slave_conn_0_M_AXI_BVALID_pin : in std_logic;
axi_ext_slave_conn_0_M_AXI_BREADY_pin : out std_logic;
axi_ext_slave_conn_0_M_AXI_ARADDR_pin : out std_logic_vector(31 downto 0);
axi_ext_slave_conn_0_M_AXI_ARVALID_pin : out std_logic;
axi_ext_slave_conn_0_M_AXI_ARREADY_pin : in std_logic;
axi_ext_slave_conn_0_M_AXI_RDATA_pin : in std_logic_vector(31 downto 0);
axi_ext_slave_conn_0_M_AXI_RRESP_pin : in std_logic_vector(1 downto 0);
axi_ext_slave_conn_0_M_AXI_RVALID_pin : in std_logic;
axi_ext_slave_conn_0_M_AXI_RREADY_pin : out std_logic;
axi_ext_slave_conn_0_ACLK_pin : out std_logic
end component;
attribute BOX_TYPE : STRING;
attribute BOX_TYPE of axi_master : component is "user_black_box";
type state is (idle, read_transaction_in_progress , write_transaction_in_progress , write_response_in_progress , complete);
signal current_state : state;
signal S_AXI_ACLK : std_logic;
signal S_AXI_ARESETN : std_logic;
-- Write Address Channel
signal S_AXI_AWADDR : std_logic_vector(31 downto 0);
signal S_AXI_AWVALID : std_logic;
signal S_AXI_AWREADY : std_logic;
-- Write Data Channel
signal S_AXI_WDATA : std_logic_vector(31 downto 0);
signal S_AXI_WSTRB : std_logic_vector(3 downto 0);
signal S_AXI_WVALID : std_logic;
signal S_AXI_WREADY : std_logic;
-- Read Address Channel
signal S_AXI_ARADDR : std_logic_vector(31 downto 0);
signal S_AXI_ARVALID : std_logic;
signal S_AXI_ARREADY : std_logic;
-- Read Data Channel
signal S_AXI_RDATA : std_logic_vector(31 downto 0);
signal S_AXI_RRESP : std_logic_vector(1 downto 0);
signal S_AXI_RVALID : std_logic;
signal S_AXI_RREADY : std_logic;
-- Write Response Channel
signal S_AXI_BRESP : std_logic_vector(1 downto 0);
signal S_AXI_BVALID : std_logic;
signal S_AXI_BREADY : std_logic;
signal combined_S_AXI_AWVALID_S_AXI_ARVALID : std_logic_vector(1 downto 0) ;
SIGNAL register_1 : std_logic_vector( 31 downto 0) ;
begin
axi_master_i : axi_master
port map (
RS232_Uart_1_sout => RS232_Uart_1_sout,
RS232_Uart_1_sin => RS232_Uart_1_sin,
RESET => RESET,
CLK_P => CLK_P,
CLK_N => CLK_N,
axi_ext_slave_conn_0_M_AXI_AWADDR_pin => s_AXI_AWADDR,
axi_ext_slave_conn_0_M_AXI_AWVALID_pin => S_AXI_AWVALID,
axi_ext_slave_conn_0_M_AXI_AWREADY_pin => S_AXI_AWREADY,
axi_ext_slave_conn_0_M_AXI_WDATA_pin => S_AXI_WDATA,
axi_ext_slave_conn_0_M_AXI_WSTRB_pin => S_AXI_WSTRB,
axi_ext_slave_conn_0_M_AXI_WVALID_pin => S_AXI_WVALID,
axi_ext_slave_conn_0_M_AXI_WREADY_pin => S_AXI_WREADY,
axi_ext_slave_conn_0_M_AXI_BRESP_pin => S_AXI_BRESP,
axi_ext_slave_conn_0_M_AXI_BVALID_pin => S_AXI_BVALID,
axi_ext_slave_conn_0_M_AXI_BREADY_pin => S_AXI_BREADY,
axi_ext_slave_conn_0_M_AXI_ARADDR_pin => S_AXI_ARADDR,
axi_ext_slave_conn_0_M_AXI_ARVALID_pin => S_AXI_ARVALID,
axi_ext_slave_conn_0_M_AXI_ARREADY_pin => S_AXI_ARREADY,
axi_ext_slave_conn_0_M_AXI_RDATA_pin => S_AXI_RDATA,
axi_ext_slave_conn_0_M_AXI_RRESP_pin => S_AXI_RRESP,
axi_ext_slave_conn_0_M_AXI_RVALID_pin => S_AXI_RVALID,
axi_ext_slave_conn_0_M_AXI_RREADY_pin => S_AXI_RREADY,
axi_ext_slave_conn_0_ACLK_pin => S_AXI_ACLK
combined_S_AXI_AWVALID_S_AXI_ARVALID <= S_AXI_AWVALID & S_AXI_ARVALID;
state_machine_decisions : process (S_AXI_ACLK )
begin
if S_AXI_aClk'event and S_AXI_aClk = '1' then
if reset = '1' then
register_1 <= x"44556677";
led_1 <= '0' ;
led_2 <= '1' ;
current_state <= idle;
else
case current_state is
when idle =>
led_1 <= '1';
led_2 <= '0';
case comb ined_S_AXI_AWVALID_S_AXI_ARVALID is
when "01" => current_state <= read_transaction_in_progress;
when "10" => current_state <= write_transaction_in_progress;
when others => NULL;
end case ;
current_state <= idle ;
when read_transaction_in_progress =>
current_state <= read_transaction_in_progress;
led_2 <= '1' ;
S_AXI_ARREADY <= S_AXI_ARVALID;
S_AXI_RVALID <= '1';
S_AXI_RRESP <= "00";
if S_AXI_RREADY = '1' then
current_state <= complete;
end if;
case (to_integer(unsigned(S_AXI_AWADDR(31 downto 0)))) is
when 0 => S_AXI_RDATA <= register_1;
when others => S_AXI_RDATA <= (others => '0');
end case ;
when write_transaction_in_progress =>
current_state <= write_transaction_in_progress;
S_AXI_AWREADY <= S_AXI_AWVALID;
S_AXI_WREADY <= '1';
-- S_AXI_RRESP <= "00";
if S_AXI_WVALID = '1' then
current_state <= write_response_in_progress;
case (to_integer(unsigned(S_AXI_AWADDR(31 downto 0)))) is
when 0 => register_1 <= S_AXI_WDATA;
when others => null;
end case;
end if;
when write_response_in_progress =>
current_state <= write_response_in_progress;
S_AXI_BVALID <= '1';
S_AXI_BRESP <= "00";
if S_AXI_BREADY = '1' then
current_state <= complete;
end if;
when complete =>
led_2 <= '0' ;
led_1 <= '0';
case combined_S_AXI_AWVALID_S_AXI_ARVALID is
when "00" => current_state <= idle;
when others => current_state <= complete;
end case;
when others => null;
end case;
end if;
end if ;
end process;
end architecture STRUCTURE;
#include <stdio.h>
#include "xil_io.h"
#define CUSTOM_IP_BASEADDR 0x7c400000
#define REGISTER_1_OFFSET 0x00
// Function prototypes
void set_custom_ip_register(int baseaddr, int offset, int value);
int get_custom_ip_register(int baseaddr, int offset);
int main (void)
int temp3;
int temp4;
printf("Test Project\n");
printf("reading from first register...");
temp3 = get_custom_ip_register(CUSTOM_IP_BASEADDR, REGISTER_1_OFFSET);
printf("Register 1 = 0x%02X\n\r", temp3);
return 0;
void set_custom_ip_register(int baseaddr, int offset, int value)
Xil_Out32(baseaddr + offset, value);
int get_custom_ip_register(int baseaddr, int offset)
int temp = 0;
temp = Xil_In32(baseaddr + offset);
return (temp);
 

when idle =>
led_1 <= '1';
led_2 <= '0';
case comb ined_S_AXI_AWVALID_S_AXI_ARVALID is
when "01" => current_state <= read_transaction_in_progress;
when "10" => current_state <= write_transaction_in_progress;
when others => NULL;
end case ;
current_state <= idle ;
You assign idle to current_state after you figure out what kind of transaction is happening. This will override your previous decision.
Also it is possible (at least in axi theory) there will be simultaneous read/write so separate out handling of two AxVALID conditions.

Similar Messages

  • Hello once again.. i have formatted my external Hard drive it using exFAT, now my windows cant detect my device, can u plzz help me the whole purpose is getting ruined, i use Windows 7 ultimate 64 bit

    hello once again.. i have formatted my external Hard drive it using exFAT, now my windows cant detect my device, can u plzz help me the whole purpose is getting ruined, i use Windows 7 ultimate 64 bit

    This is a problem with the Mac OS X implementation of exFAT. I've had the same problem.
    Best is to use a Windows box to format the drive exFAT. Then it can be read by both Windows and Mac OS.
    But aren't Macs supposed to "Just Work"? Not in this case.

  • Implementing External facing portal

    Hi,
         Some can explain in detail how to implement external facing portal.I am using EP7.0. I need implementation methodology or related document.
    Thanks,
    Kundan

    Hi Sreeni,
                     Thanks for your replay.Actually i have this document but i am confuse to move further.Can you explain little bit on these points
    1.      Define user profiles (system administrator).
    Set up the portal to accept anonymous users, and define the users and groups to which anonymous and self-registered users are mapped.----
           2.      Assign content to users (user administrator).
    Select the content to be accessible to anonymous and self-registered users, and assign these users to the content-----?.
           3.      Configure the navigation cache (system administrator).
    To improve performance, the portal caches navigation hierarchies and nodes, so that the portal can retrieve the hierarchy from the cache instead of creating it for each request.
    By default, caching is turned off. After the portal is set up and tested, turn on and configure caching by setting the appropriate J2EE parameters.
           4.      Create/modify navigation iViews (developer).
    Create your own navigation iViews, or modify the default light navigation iViews to fit your companyu2019s needs. You can use the Navigation tag library to build JSP-based navigation iViews.
           5.      Customize the light framework page (content administrator).
    Replace the navigation iViews in the light framework page with your customized navigation iViews.
           6.      Customize styles (system administrator).
    The Theme Editor includes styles that are used in the default light navigation iViews.
           7.      Assign the light framework page to users (system administrator).
    Using desktop display rules, assign the light framework page to anonymous and self-registered users, as well as other users who need it.
    You can assign the framework pages based on the URL alias, role, or group, or the useru2019s network bandwidth.
    Thanks,
    Kundan

  • Can I put my library on an external hard drive and use it between two computers?

    Can I put my library on an external hard drive and use it between two computers? I have two MBP; I will refer to one as computer A and to the other as computer B. I would like to be able to plug in my external hard drive, boot up iTunes, and if there were any changes made to the library previous to its last time accessed on this compluter, they show up on that computer, regardless of being imported on the other.
    A hypothetical example: I import three albums called 1, 2, and 3 on computer A over a week or so. I take the external hard drive and plug it into computer B. The entire library which was visible on A, is visible on B, including albums 1, 2, and 3.
    Is this possible? If so, what files need to be copied onto the external? I'm trying some different combinations, trial and error basically. Hopefully someone knows and can answer before I mess up my library. I also want to do this to free up space on my computer. All importing will be done from disc.

    iTunes/Preferences/Advanced : point your iTunes to the new location of the Library.
    Set "Share on local network" in the Sharing tab, and you or everyone on the local network can play your music.
    You make a backup first of the Library.
    Move the follwing to the new location:
    /Users/your username/Music/iTunes/iTunes Music
    have fun.

  • How do i format an external hard drive for use on both windows and mac book air?

    how do i format an external hard drive for use on both windows pc and mac book air?

    Use exFAT on the PC.
    (71374)

  • I have just started using WD external hard drives, I use it to save my movies and music on. On more than one occasion, when I connect to my MacBook it erases everything on had on there. Can someone please help with this problem?

    I have just started using WD external hard drives, I use it to save my movies and music on. On more than one occasion, when I connect it to my MacBook it erases everything I had save on the hard drive. Can someone please help me with this problem? I am super tired of having to put all of my movies and music on the hard drive just to have it erased again. The products I am using are WD 4TB My Book and 2 TB My Passport external hard drives. When it happens, there is always an icon that reads, EFI, along with the My Book icon. Thank you for your assisstance.

    dwgar1322 wrote:
    I have just started using WD external hard drives, I use it to save my movies and music on. On more than one occasion, when I connect it to my MacBook it erases everything I had save on the hard drive. Can someone please help me with this problem? I am super tired of having to put all of my movies and music on the hard drive just to have it erased again. The products I am using are WD 4TB My Book and 2 TB My Passport external hard drives. When it happens, there is always an icon that reads, EFI, along with the My Book icon. Thank you for your assisstance.
    Yes, you have WD software installed  REMOVE IT !! 
    WD has warned its customers about their huge mistake that their software doesnt work on Mavericks and causes data loss.
    (also dont use WD drives anymore)
    Read all about it here:
    https://discussions.apple.com/thread/5475136?start=255&tstart=0
    See their website on removing the destructive WD software here:
    http://community.wd.com/t5/External-Drives-for-Mac/External-Drives-for-Mac-Exper iencing-Data-Loss-with-Maverick-OS/td-p/613775
    Western Digital External Hard Drives Experiencing Data Loss On OS X Mavericks
    http://www.cultofmac.com/252826/western-digital-external-hard-drives-experiencin g-data-loss-on-os-x-mavericks/

  • Previously windows used external drive to be used in mac (and windows)

    i´ve just bought a macbook and planned to use a couple of external drives i previously used on my pc with time machine and whatnot. only it seems they are write-protected in mac os, so they can´t be used as back-up drives. do i have to format them again using mac, or do it in windows, or is there a way around this? and can it be done so both mac and windows recognizes it as writable?
    thanks

    Dave Sawyer wrote:
    They're probably formatted NTFS, which Mac OS X can read but not write. There are third-party NTFS drivers, one open-source and one commercial, but you can just reformat the drive as FAT32 (MS-DOS format in Disk Utility) and it will work just fine with both your Mac and Windows systems.
    If the OPs intent is to use it with Time Machine, the external drive needs to be formatted HFS+ (Mac OS Extended (Journaled) via Disk Utility. I believe there is a Windows app that permits viewing of HFS+ drives. Since you have a 'couple' of external HDDs, it's probably best to use a dedicated HDD just for TM backups.

  • How to transfer data from macbook pro to an external hard drive, im using (WD 1TB 3.0) ???. I cannot copy anything from my mac to it not a single file.

    how to transfer data from macbook pro to an external hard drive, im using (WD 1TB 3.0) ???. I cannot copy anything from my mac to it not a single file.

    ok - since you'll be sharing it with a PC - connect it to your windows pc - then format from there - instead of NTFS format - choose exFAT.
    or, you can read the link below on how to do it in dos mode.
    http://answers.microsoft.com/en-us/windows/forum/windows_7-files/how-can-i-forma t-external-drive-in-exfat-not-in/0f6bf19a-19d6-4470-ae05-53ddf26bb476?msgId=1860 eae3-3488-4eea-8326-f87b89d9851b
    once you've formatted it - you can now use it in both your macbook and windows computer.

  • Which format for external hard drive to use with time machine backup and connect to windows laptop?

    Hi!  I have an external hard drive on which I have transferred my iTunes library (just mine - not others).  I have also a folder containing just films (some but not all of which are in iTunes too)  Everything has been working just fine until yesterday I noticed that Time Machine was not including the external hard drive in back up as it wasn't formatted.  So I have moved everything back to the Mac hard drive and and ready to format the external hard drive - but understand that if I do the contents cannot be opened from a windows laptop ...  is that right?  Is there are format I could choose that would allow Time Machine to back up and allow Windows to open as well (the idea being that I take the external hard drive with me on holidays etc!!)  Many thanks for any advice. 

    ok - I understand.  I have managed so far to format the drive (on windows) to exFAT file system - which apparently works with both Windows and Mac - but you're  correct - it will not be included in time machine backup as I have checked the back up files and Samsung is not showing.  Reckon I'm onto having to buy yet another portable hard drive just for windows - or of course buy myself a new mac book!!  Can I ask you please - does the drive have to be clear of everything before I change the format - or can I change it with the files still in there?  Also, got any quick ways duplicating the files onto another External Hard drive (for use on the windows laptop)  At the moment the files are taking 2/3 hours + to copy over!  Thank you! 

  • I need to move the iTunes library to an External Hard Drive to free up space on iMac.  Need suggestions on type of External Hard Drive to use.  A Multimedia Hard Drive like LaCie LaCinema Classic HD Multimedia Hard Drive OR a Large Desktop Hard Drive?

    I need to move an iTunes library to an External Hard Drive to free up space on iMac.  I Need suggestions on type of External Hard Drive to use.  Should you use a Multimedia Hard Drive like LaCie LaCinema Classic HD Multimedia Hard Drive OR a standard Large Desktop Hard Drive like Western Digital/Seagate/LaCie?

    There is no benefit to the multi-media feature on the first drive you mentioned. If you are going to look at differences between certain drives, I'd look at the differences in reliability first.

  • How can i format my external hard drive to write files from Mac without loosing the files that i alredy have on my external hard when i used it with windows?

    How can i format my external hard drive to write files from Mac without loosing the files that i alredy have on my external hard when i used it with windows?
    I have been using Windows to write files to my 1TB WD external hard drive and I do not want to format to loose the files capacity of around 500GB
    Someone, Please help

    Hi Allen,
    Is there any way to store the back up to Mac and restore after formating?

  • My HD is almost full. I need to add space. Can I use an external HD to continue using my startup disc as it is?

    My HD is almost full. I need to add space. Can I use an external HD to continue using my startup disc as it is?
    I create music and have run out of space. the message says 'your startup disc is almost full', and i just thought maybe buying an external hard drive and using it as the startup disc or whatever would do the trick. Does anyone know? Thanks!

    External hard drives are relatively inexpensive...see some of those on OWC, www.macsales.com
    You can use a large external drive to provide additional space by simply saving material to that volume instead of the startup disk.  You can also partition the external drive to use part for Time Machine backups, and another partition for extended space.  Or a third partition for a clone of the boot system made by Carbon Copy Cloner or SuperDuper, both free downloads, so should the internal drive have problems you could always boot from the external partition.
    All of that can be done from Disk Utility.
    Keep in mind that Mac OS X gets very unhappy when there is less than 15% of the startup disk space free.

  • Cannot reinstate catalog after returning PC (Windows 7) to factory settings (because of worm infection). Catalog was backed up on external drive but not using PSE backup facility. Cannot find and *.tly file. Is this hopeless?

    Cannot reinstate catalog after returning PC (Windows 7) to factory settings (because of worm infection). Catalog was backed up on external drive but not using PSE backup facility. Cannot find and *.tly file. Is this hopeless?

    If you made backups of all of your photos and your catalog file using some third-party method (i.e. not using the PSE catalog backup command), then you should be able to restore everything.
    Step 1. Put the photos in the EXACT SAME LOCATION as before. For example, if they were in subfolders of C:\Users\<username>\Documents, then they must go into the exact same subfolders of C:\Users\<username>\Documents.
    Step 2. Move the catalog file to wherever you want it to be, and then double-click on it.

  • I have just bought an iMac, and when I had my PC I had all my mp3 music on external hard drive and used to stream using software called ps3 server and tveristy which used to pick up on my Roberts radio via network wi fi hiw do I get iMac to do it

    I have just bought an iMac, and when I had my PC I had all my mp3 music on external hard drive and used to stream using software called ps3 server and tveristy which used to pick up on my Roberts radio via network wi fii and on my iPad via AirPlay. How can I do the same with iMac as this software isn't compatible

    To install apps from developers Apple doesn't recognize go to Security and Privacy in the System Preferences and change Allow apps downloaded from anywhere

  • How do I move iTunes library to an external hard drive to use less space?

    How do I move iTunes library to an external hard drive to use less space?

    Our iTunes guru Terence Devlin advises the following:
    1. Quit iTunes
    2. Drag the iTunes folder from your internal hd - located in ~/Music folder - to your external hd. DO NOT delete the original one from your internal hd... yet!
    3. When the transfer is complete, press and hold the Option(alt) key and fire up iTunes.
    4. A "Choose iTunes Library" window will come up. Click on the "Choose Library" button.
    5. Navigate to where the iTunes folder is located in the external hd.
    6. Within the iTunes folder, select the iTunes Library file and click Choose...
    That's it. iTunes will now display all your playlists, songs, movies, podcasts etc. At this point, should you wish, you can delete the iTunes folder from the internal hd to free up space.
    More info:
    http://support.apple.com/kb/HT1751
    Or if you prefer a more complicated explanation:
    http://www.ilounge.com/index.php/articles/comments/moving-your-itunes-library-to -a-new-hard-drive

Maybe you are looking for