Overclock.net - Overclocking.net
     
 
Home Gallery Reviews Blogs Register Today's Posts Mark Forums Read Members List


Go Back   Overclock.net - Overclocking.net > Software, Programming and Coding > Coding and Programming > Application Programming

Reply
 
LinkBack Thread Tools
Old 02-07-09   #1 (permalink)
Overclocker
 
Darkknight512's Avatar
 
intel ati

Join Date: Apr 2008
Location: Toronto, Ontario
Posts: 1,584

Rep: 142 Darkknight512 is acknowledged by manyDarkknight512 is acknowledged by many
Unique Rep: 118
Trader Rating: 0
Default C++ Program help

I am trying to get back into programming and would like to know how I would go about calculating all the clocks from the bclock on a P4 - Core 2 and I would want to know how the DRAM:FSB ratio is calculated.

I have made basic programs and I know how I'm going to build the program I just need the formulas.

System: X-Caliber
CPU
Intel Core 2 Duo E4600 @3.0 Ghz
Motherboard
Gigabyte P35 DS3L
Memory
3gb 533 mhz DDR2 (Dual Channel) @560 Mhz
Graphics Card
ATI Radeon HD3850 512MB 720/950
Hard Drive
160 Hitachi HDD
Sound Card
Intergrated 5.1 Audio (Realtek ACL888)
Power Supply
460 watt Coolermaster
Case
Coolermaster Elite
CPU cooling
Stock (MX-2)
GPU cooling
Stock - (Fan Speed [%] = Temp [C]) - Load 70C
OS
Windows Vista - Ultimate (x86)
Monitor
LG E700B 17" CRT

Last edited by Darkknight512 : 02-07-09 at 06:54 PM
Darkknight512 is offline   Reply With Quote
Old 02-08-09   #2 (permalink)
Programmer
 
Grandlo's Avatar
 
intel nvidia

Join Date: Jan 2009
Location: California
Posts: 296

Rep: 41 Grandlo is acknowledged by some
Unique Rep: 33
Trader Rating: 0
Default

this is less of a programming question more of a hardware question, it's a driver level thing. those are probably stored in registers in the cpu or northbridge and you'd need to know the instructions(amd) or which memory mapped register or port to read/write to for intel system. i was interested in writing some stuff like this a while back but didn't have the time to do the proper research. if you find any good documentation/faq's please keep me posted.

it'd be much easier to write this software for amd system jsut becasue the cpu handles things so it's accessable via instructions.
__________________
System: Time Waste
CPU
Q9550 @4.0 1.38V, 1.33VTT
Motherboard
Lanparty DK P35-T2RS
Memory
4gb DDR2 1066
Graphics Card
GTX 260 core 216 (55nm)
Hard Drive
Segate 640gb 7200/32m
Power Supply
PC P&C Silencer 750
Case
Armor
CPU cooling
Apogee GTZ
GPU cooling
MCW60
OS
XP Pro 32bit
Monitor
Acer 22LCD
Grandlo is offline   Reply With Quote
Old 02-08-09   #3 (permalink)
Programmer
 
Grandlo's Avatar
 
intel nvidia

Join Date: Jan 2009
Location: California
Posts: 296

Rep: 41 Grandlo is acknowledged by some
Unique Rep: 33
Trader Rating: 0
Default

man I completely misunderstood your question. I thought you were wanting to make a program like clockgen or systool lol! the FSB:RAM ratio isn't calculated at all, it's just a given. you have the FSB clock and the FSB:RAM ratio and the CPU Multiplier with those three values you can calculate the CPU clock and the RAM clock.

I tend to use the terms base clock and FSB interchangibly for simplicity I'll just not do that from here out..

FSB = BC(base clock)*4

CPU_FREQ = BC * CPU_MULT

RAM_CLOCK = BC * RAM / FSB
---> where RAM and FSB are the numbers from ration FSB:RAM ratio

but also remember that ram is DDR(double data rate) thus the effective frequency is

RAM_EFF_FREQ = RAM_CLOCK * 2
__________________
System: Time Waste
CPU
Q9550 @4.0 1.38V, 1.33VTT
Motherboard
Lanparty DK P35-T2RS
Memory
4gb DDR2 1066
Graphics Card
GTX 260 core 216 (55nm)
Hard Drive
Segate 640gb 7200/32m
Power Supply
PC P&C Silencer 750
Case
Armor
CPU cooling
Apogee GTZ
GPU cooling
MCW60
OS
XP Pro 32bit
Monitor
Acer 22LCD
Grandlo is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools



All times are GMT -5. The time now is 11:02 PM.


Overclock.net is a Carbon Neutral Site Creative Commons License

Terms of Service / Forum Rules | Privacy Policy | DMCA Info | Advertising | Become an Official Vendor
Copyright © 2009 Shogun Interactive Development. Most rights reserved.
Page generated in 0.13454 seconds with 8 queries