Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
skyfaye said:With verilog, pretty much everything's "global". You can use hierarchical reference to access any variable in any module.
For example:
module glb_var_mod; // define all global vars in this module
reg glb_x = 1'b1;
endmodule
module dut;
glb_var_mod.glb_x = 1'b0; // change value of a global var
endmodule
- Hung
With verilog, pretty much everything's "global". You can use hierarchical reference to access any variable in any module.
For example:
module glb_var_mod; // define all global vars in this module
reg glb_x = 1'b1;
endmodule
module dut;
glb_var_mod.glb_x = 1'b0; // change value of a global var
endmodule
- Hung