Verilog in PSoC3 - Sharing Variables

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hey,

   

So I'm trying to have code set some variables(an array,to be specific) in a verilog file,and the verilog code will then process that data,and clock out that processed data.How do I go about doing so?

0 Likes
1 Solution
Anonymous
Not applicable
        by code setting variables I mean C code setting variables in some way which the verilog file can use them.   

View solution in original post

0 Likes
3 Replies
Anonymous
Not applicable

I only have a few hours of Verilog experience,so I'll ask a few stupid questions on your replies.Just saying. 😛

0 Likes
Anonymous
Not applicable
        by code setting variables I mean C code setting variables in some way which the verilog file can use them.   
0 Likes
Anonymous
Not applicable

 CPU (software) and hardware interaction (this is what you want) will work through status and control registers. For example you can instance a control register which will provide an api for cpu access and a digital out bus on the hardware side.

0 Likes