Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

assign group signals in MaxPlus?

Status
Not open for further replies.

wwwrabbit

Member level 1
Joined
Jul 17, 2003
Messages
36
Helped
0
Reputation
0
Reaction score
1
Trophy points
1,286
Activity points
344
In Altera MaxPlus, I have designed the following module. in wave editor, I use "Enter nodes from SNF". how can I initial "initCnt" as b0101, in stead of initial "initCnt0,initCnt1,initCnt2,initCnt3" individually?
another question: may I initial initCnt inside module? like "initial initCnt = 4'b0101;"
thanks

odule test ( clk1, clk2, clk3, initCnt, count );
input clk1, clk2, clk3;
input[3:0] initCnt;
output[3:0] count;

reg [3:0] count1;
reg [3:0] count2;
reg [3:0] count3;

always@( posedge clk1 )
count1 = count1 + 1;

always@( posedge clk2 )
count2 = count2 + 1;

always@( posedge clk3 )
count3 = count3 + 1;

assign count = count1 + count2 + count3 + initCnt;

endmodule
 

my max plus not installed here but I think it should work... doesn't it accept initial initCnt = 4'b0101; ?
 

Hi,

I don't think that MaxplusII accept initialization for sumulation purpose. It only accept synthesisable code.

In the waveform window, I add the signals and initcnt was add "grouped".
If it is not the case for you, you have to select the 4 signals, then right clic, choose "Enter Group ...", then chose the binary radix.
after that, select the initcnt waveform and clic on the group assignment icon (bottom left of the window, a bold G). Enter your binary value and that's all :wink:

if you want to change the radix, double clic on the initcnt signal and select the new radix.

8)
 

Thanks you guys. I got it. :oops:
I got the idea from your inspire. I made a mistake. I used EDIT NODES, I should use OVERWRITE item.

Thanks again. :)

By the way, can MaxPlus can convert schematic to Verilog HDL? :?:
 

Not Max plus

But Quartus can do it. look at **broken link removed**

And I think that Quartus is able to import .gdf files.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top