Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

awready and wready set high in master without slave value #57

Open
sazam0 opened this issue May 18, 2023 · 0 comments
Open

awready and wready set high in master without slave value #57

sazam0 opened this issue May 18, 2023 · 0 comments

Comments

@sazam0
Copy link

sazam0 commented May 18, 2023

I am a newbie to axi-lite. I was trying to mimic the example figure in the documentation.
I have 1x1 crossbar. My master awchannel and wchannel are the following. From the slave side I assign awready and wready to 0. But I see these signals asserts themselves in master. Is it bug, or am I missing something?

// w_en signal is external signal from testbench.
// aw channel
always_ff @(posedge clk) begin
   if (rst) begin
		awaddr  <= 32'h0;
		awvalid <= 1'b0;
		su_addr <= DEFAULT_VAL;
   end
	else if(w_en) begin
		awvalid <= 1'b1;
		awaddr <= su_addr;
	end
	else awvalid <= 1'b0;
end 

// wchannel
always_ff @(posedge clk) begin
   if(rst) begin
		wvalid <= 1'b0;
		su_data <= DEFAULT_VAL;
	end
   else if(w_en) begin
		 wvalid <= 1'b1;
		 wdata <= su_data;
	  end
	else wvalid <= 1'b0;
end

Screenshot from 2023-05-18 13-04-14

@sazam0 sazam0 changed the title awready and wready set high without salve value awready and wready set high in master without salve value May 18, 2023
@sazam0 sazam0 changed the title awready and wready set high in master without salve value awready and wready set high in master without slave value May 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant