How can I get irsim to generate the clock for me?
A very useful irsim command is the “clock” command. Suppose your clock-pin is called “clk”, then you can do this: clock clk 1 0 h reset c Which is equivalent to the following sequence of commands: h reset h clk s l clk s Note how simple it is to realize a clock cycle, a single “c” is enough. That makes .cmd files much easier for bigger designs. If you need a different clock shape, modify the sequence of 1s and 0s in the clock command. Back to Top How do I use vectors in irsim Vector statements are very powerful. Here is an example: vector in in[7] in[6] in[5] in[4] in[3] in[2] in[1] in[0] ana in clk reset set in 11110000 You can use the “set” command to conveniently assign values to a complete bus of wires. That saves a lot of time and also makes the waveforms much easier to analyze. Unfortunately the set command only supports binary values.