Sponsored Content
Full Discussion: bus bit blasting
Top Forums Shell Programming and Scripting bus bit blasting Post 302366895 by pitagi on Friday 30th of October 2009 05:46:09 PM
Old 10-30-2009
bus bit blasting

I have a file containing bus notations [39:6] which need to be expanded.

Example:

file contains a line like below :

assign gam_ci_raddr[39:6] = `GTTBTOP.gt2gti1.gt2sqidi1.gam_ci_raddr[39:6];

What needed is

assign gam_ci_raddr[39] = `GTTBTOP.gt2gti1.gt2sqidi1.gam_ci_raddr[39];
assign gam_ci_raddr[38] = `GTTBTOP.gt2gti1.gt2sqidi1.gam_ci_raddr[38];
assign gam_ci_raddr[37] = `GTTBTOP.gt2gti1.gt2sqidi1.gam_ci_raddr[37];
...
...
assign gam_ci_raddr[6] = `GTTBTOP.gt2gti1.gt2sqidi1.gam_ci_raddr[6];

appreciate the help
 

3 More Discussions You Might Find Interesting

1. Programming

copying or concatinating string from 1st bit, leaving 0th bit

Hello, If i have 2 strings str1 and str2, i would like to copy/concatenate str2 to str1, from 1st bit leaving the 0th bit. How do i do it? (2 Replies)
Discussion started by: jazz
2 Replies

2. Shell Programming and Scripting

How to handle 64 bit arithmetic operation at 32 bit compiled perl interpreter?H

Hi, Here is the issue. From the program snippet I have Base: 0x1800000000, Size: 0x3FFE7FFFFFFFF which are of 40 and 56 bits. SO I used use bignum to do the math but summing them up I always failed having correct result. perl interpreter info, perl, v5.8.8 built for... (0 Replies)
Discussion started by: rrd1986
0 Replies

3. Windows & DOS: Issues & Discussions

Which version of Windows Vista to install with a product key? 32-bit or 64-bit?

Hello everyone. I bought a dell laptop (XPS M1330) online which came without a hard drive. There is a Windows Vista Ultimate OEMAct sticker with product key at the bottom case. I checked dell website (here) for this model and it says this model supports both 32 and 64-bit version of Windows... (4 Replies)
Discussion started by: milhan
4 Replies
PCITWEAK(1)						      General Commands Manual						       PCITWEAK(1)

NAME
pcitweak - read/write PCI config space SYNOPSIS
pcitweak -l pcitweak -r PCI-ID [-b|-h] offset pcitweak -w PCI-ID [-b|-h] offset value DESCRIPTION
Pcitweak is a utility that can be used to examine or change registers in the PCI configuration space. On most platforms pcitweak can only be run by the root user. OPTIONS
-l Probe the PCI buses and print a line for each detected device. Each line contains the bus location (bus:device:function), chip vendor/device, card (subsystem) vendor/card, revision, class and header type. All values printed are in hexadecimal. -r PCI-ID Read the PCI configuration space register at offset for the PCI device at bus location PCI-ID. PCI-ID should be given in the form bus:device:function, with each value in hexadecimal. By default, a 32-bit register is read. -w PCI-ID Write value to the PCI configuration space register at offset for the PCI device at bus location PCI-ID. PCI-ID should be given in the form bus:device:function, with each value in hexadecimal. By default, a 32-bit register is written. -b Read or write an 8-bit value (byte). -h Read or write a 16-bit value (halfword). SEE ALSO
scanpci(1) AUTHORS
David Dawes (dawes@xfree86.org). XFree86 Version 4.7.0 PCITWEAK(1)
All times are GMT -4. The time now is 07:58 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy