eladin
Newbie level 4
- Joined
- Nov 1, 2010
- Messages
- 6
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,322
Dear every one,
I am working on a project using verilog and xilinx ISE.
I want to use as many generic modules as I can to ease the work (am i thinking correctly? is it better to work with generic?), and I Want to use the generic modules I make in the schematic editor, but I dont know how to change the generic parameter for different modules. e.g.
------------------------------------------------
this is a 2 to 1 mux, N bits wide, N being 8 by default
module Mux_2_to_1_N8bits #(parameter N=8)(
input [7:0] input_1,
input [7:0] input_2,
input select,
output reg [7:0] output_1
);
always @(*)
begin
if (select == 0)
output_1 <= input_1;
else
output_1 <= input_2;
end
endmodule
now what I want to be able to do, is create several instances of this mux in the schematic editor, but with different values of N, how do i do that?
Thank you
I am working on a project using verilog and xilinx ISE.
I want to use as many generic modules as I can to ease the work (am i thinking correctly? is it better to work with generic?), and I Want to use the generic modules I make in the schematic editor, but I dont know how to change the generic parameter for different modules. e.g.
------------------------------------------------
this is a 2 to 1 mux, N bits wide, N being 8 by default
module Mux_2_to_1_N8bits #(parameter N=8)(
input [7:0] input_1,
input [7:0] input_2,
input select,
output reg [7:0] output_1
);
always @(*)
begin
if (select == 0)
output_1 <= input_1;
else
output_1 <= input_2;
end
endmodule
now what I want to be able to do, is create several instances of this mux in the schematic editor, but with different values of N, how do i do that?
Thank you