element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Avnet Boards Forums
  • Products
  • Dev Tools
  • Avnet & Tria Boards Community
  • Avnet Boards Forums
  • More
  • Cancel
Avnet Boards Forums
MicroZed Hardware Design MicroZed Vivado Design Issue
  • Forum
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Avnet Boards Forums to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Verified Answer
  • Replies 9 replies
  • Subscribers 342 subscribers
  • Views 1053 views
  • Users 0 members are here
Related

MicroZed Vivado Design Issue

raymadigan
raymadigan over 9 years ago

I am not sure what to do at this point.  I  have tried everything I can think of except a new MicroZed board.

I have a design that uses a custom AXI Lite IP.   Basically I want to allocate N registers and have N/2 be read/write and the other N/2 be read only.  The read only registers will be written to by my application. 

I have build the design and none of my changes have any effect when I run the application on my uZed.  I have commented out the entire process that writes the register to the AXI output pins.  This change has no effect on the application, it still runs as the original AXI Lite IP.

I have asked countless times in the Vivado, Design Entry, Zynq forums and nobody has an idea of how to overcome this problem.

I have a very very early uZed.  Is there any suggestions to overcome this issue.

Is there a test I can run to determine where the issue might be.

I have a very similar problem with an AXI Stream Master IP I am trying to build.

  • Sign in to reply
  • Cancel
Parents
  • raymadigan
    0 raymadigan over 9 years ago

    I made the following change to the vhdl

    t-- Implement memory mapped register select and read logic generation
    t-- Slave register read enable is asserted when valid address is available
    t-- and the slave is ready to accept the read address.
    tslv_reg_rden <= axi_arready and S_AXI_ARVALID and (not axi_rvalid) ;

    tprocess (slv_reg0, slv_reg1, slv_reg2, slv_reg3, axi_araddr, S_AXI_ARESETN, slv_reg_rden)
    tvariable loc_addr :std_logic_vector(OPT_MEM_ADDR_BITS downto 0);
    tbegin
    t    -- Address decoding for reading registers
    t    loc_addr := axi_araddr(ADDR_LSB + OPT_MEM_ADDR_BITS downto ADDR_LSB);
    t    case loc_addr is
    t      when b"00" =>
    t        reg_data_out <= (others => '0'); --slv_reg0;
    //and at the end of the same process
    t      when others =>
    t        reg_data_out  <= (others => '0');
    t    end case;
    tend process;

    The 0'th register and all registers greater then register 3 should be zero

    If I change my main to this:
        int foo = CCMLITEDEMO_mReadReg(&BaseAddress, 0);
        printf("Reg 0: %d
    r", foo);

        CCMLITEDEMO_mWriteReg(&BaseAddress, 0, 54321);
        int bar = CCMLITEDEMO_mReadReg(&BaseAddress, 0);
        printf("Reg 0: %d
    r", bar);

        CCMLITEDEMO_mWriteReg(&BaseAddress, 24 , 98765);
        bar = CCMLITEDEMO_mReadReg(&BaseAddress, 24);
        printf("Reg 6: %d
    r", bar);

    the output is:

    Hello World
    Reg 0: 1136656384
    Reg 0: 54321
    Reg 6: 98765

    Register 6 should be zero, there is no register 6 defined in the vhdl.

    All I can assume is a different VHDL is running on the board that implements all registers.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • raymadigan
    0 raymadigan over 9 years ago

    I made the following change to the vhdl

    t-- Implement memory mapped register select and read logic generation
    t-- Slave register read enable is asserted when valid address is available
    t-- and the slave is ready to accept the read address.
    tslv_reg_rden <= axi_arready and S_AXI_ARVALID and (not axi_rvalid) ;

    tprocess (slv_reg0, slv_reg1, slv_reg2, slv_reg3, axi_araddr, S_AXI_ARESETN, slv_reg_rden)
    tvariable loc_addr :std_logic_vector(OPT_MEM_ADDR_BITS downto 0);
    tbegin
    t    -- Address decoding for reading registers
    t    loc_addr := axi_araddr(ADDR_LSB + OPT_MEM_ADDR_BITS downto ADDR_LSB);
    t    case loc_addr is
    t      when b"00" =>
    t        reg_data_out <= (others => '0'); --slv_reg0;
    //and at the end of the same process
    t      when others =>
    t        reg_data_out  <= (others => '0');
    t    end case;
    tend process;

    The 0'th register and all registers greater then register 3 should be zero

    If I change my main to this:
        int foo = CCMLITEDEMO_mReadReg(&BaseAddress, 0);
        printf("Reg 0: %d
    r", foo);

        CCMLITEDEMO_mWriteReg(&BaseAddress, 0, 54321);
        int bar = CCMLITEDEMO_mReadReg(&BaseAddress, 0);
        printf("Reg 0: %d
    r", bar);

        CCMLITEDEMO_mWriteReg(&BaseAddress, 24 , 98765);
        bar = CCMLITEDEMO_mReadReg(&BaseAddress, 24);
        printf("Reg 6: %d
    r", bar);

    the output is:

    Hello World
    Reg 0: 1136656384
    Reg 0: 54321
    Reg 6: 98765

    Register 6 should be zero, there is no register 6 defined in the vhdl.

    All I can assume is a different VHDL is running on the board that implements all registers.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube