12.07.2015 Views

Simulator Configuration Guide for Synopsys Models

Simulator Configuration Guide for Synopsys Models

Simulator Configuration Guide for Synopsys Models

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Simulator</strong> <strong>Configuration</strong> <strong>Guide</strong>Chapter 8: Using Scirocco with <strong>Synopsys</strong> <strong>Models</strong>$2 ~ /\=/ || ($0 ~ /^$/ && pin_type ~ /3/) {if (pin_type == 1) {direction = "in "}else if (pin_type == 2) {direction = "out "}else if (pin_type == 3) {direction = "inout"}else {next}current_signal = $1 " "gsub(/\{/, "", current_signal)gsub(/\'/, "", current_signal)}current_test = current_signalgsub(/[0-9]+ /, " ", current_test)n = split(current_signal, array_a, "[a-zA-Z]")current_number = array_a[n]gsub(/ /, "", current_number)if (prev_signal ~ /[0-9]+ /) {if (current_test == prev_test) {if (is_it_a_vector == "No") {data_start = prev_number}if ((current_number == prev_number - 1) || (current_number == prev_number + 1)){is_it_a_vector = "Yes"}prev_signal = current_signalprev_test = current_testprev_number = current_numbernext}else {if (is_it_a_vector == "Yes") {total = prev_number + data_startif (prev_number > data_start) {data_end = data_startdata_start = prev_number}else {data_end = prev_number}data_type = "_vector (" data_start " " "downto " data_end ")"prev_signal = prev_test}}}if (prev_signal != "") {gsub(/ /, "", prev_signal)n = split(prev_signal, array_c, "[a-zA-z0-9_]")y = 20 - nif (y > 0) {<strong>for</strong> (i = 1; i

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!